--- http_interactions: - request: method: post uri: http://123:abc@localhost:3003/oauth/token body: encoding: US-ASCII string: grant_type=client_credentials headers: User-Agent: - Faraday v0.9.0 Content-Type: - application/x-www-form-urlencoded Accept: - ! '*/*' response: status: code: 200 message: OK headers: X-Frame-Options: - SAMEORIGIN X-Xss-Protection: - 1; mode=block X-Content-Type-Options: - nosniff Cache-Control: - no-store Pragma: - no-cache Content-Type: - application/json; charset=utf-8 Etag: - W/"a9b0db9b60d09f7ce86486bddc6bd620" X-Request-Id: - b62de81c-8bd7-4548-b970-555e429e996e X-Runtime: - '0.015645' Connection: - close Server: - thin body: encoding: US-ASCII string: ! '{"access_token":"c547f9ee886dcae47e755cead09009b4ff3d1bbd88db7a4fbe39207ab35c794d","token_type":"bearer"}' http_version: recorded_at: Mon, 12 Jan 2015 21:08:53 GMT - request: method: post uri: http://localhost:3003/api/identifiers body: encoding: US-ASCII string: '' headers: User-Agent: - Faraday v0.9.0 Accept: - application/vnd.exchange.openstax.v1 Authorization: - Bearer c547f9ee886dcae47e755cead09009b4ff3d1bbd88db7a4fbe39207ab35c794d Content-Length: - '0' response: status: code: 201 message: Created headers: X-Frame-Options: - SAMEORIGIN X-Xss-Protection: - 1; mode=block X-Content-Type-Options: - nosniff Content-Type: - application/json; charset=utf-8 Etag: - W/"1e022fc97eee729685cc737484251224" Cache-Control: - max-age=0, private, must-revalidate Set-Cookie: - _exercises_session=WU1KU0h4VjlkaUMzdU01M1pwME5pLzVROG1QaHFGbnR0bzlKVXp4aE5HNm5wOG1oQW83QVdZZm1lUS9YT0JOUDVJbGFrMWxlakdTc243Tk4vdHBSL2c9PS0teW8xOVhVYTE0TTlETzdCcWhpek1RZz09--b92be7656418e43b4f27c7e83f4f5cac1b955a64; path=/; HttpOnly - request_method=POST; path=/ X-Request-Id: - 28d45194-711a-413d-a47a-21bbc83aa72b X-Runtime: - '0.040288' Connection: - close Server: - thin body: encoding: US-ASCII string: ! '{"identifier":"34cdf6b6a4b45643b31b5cd63212e95cb55accb36080015048de5e7394f74841"}' http_version: recorded_at: Mon, 12 Jan 2015 21:08:53 GMT - request: method: post uri: http://localhost:3003/api/events/platforms/multiple_choices body: encoding: UTF-8 string: ! '{"identifier":"34cdf6b6a4b45643b31b5cd63212e95cb55accb36080015048de5e7394f74841","resource":"http://exercises.openstax.org/exercises/1234","trial":"1","answer":"answer_string"}' headers: User-Agent: - Faraday v0.9.0 Accept: - application/vnd.exchange.openstax.v1 Authorization: - Bearer c547f9ee886dcae47e755cead09009b4ff3d1bbd88db7a4fbe39207ab35c794d Content-Type: - application/x-www-form-urlencoded response: status: code: 201 message: Created headers: X-Frame-Options: - SAMEORIGIN X-Xss-Protection: - 1; mode=block X-Content-Type-Options: - nosniff Content-Type: - application/json; charset=utf-8 Etag: - W/"a8ac499a2a9e9dbf8c7c3083274494d7" Cache-Control: - max-age=0, private, must-revalidate Set-Cookie: - _exercises_session=YzVmZC9xY01WMnV5R0NTN2VyVXRJN1o3MkFibERUbkdGMitTK2VoNC9qeDVqSTJUY3JIdjRJUk9SM1gzdFZoalcyb3I0TTZVWWJ4SmhnUHBxWkxQS2c9PS0ta0NMM1ZpaDg4aWVTalpIMjRYcFdWUT09--fe66330b75140d7a608e3a93e92ed346ea94a214; path=/; HttpOnly - request_method=POST; path=/ X-Request-Id: - 81931d67-6105-4d89-bdfe-73684beef41f X-Runtime: - '0.080417' Connection: - close Server: - thin body: encoding: US-ASCII string: ! '{"identifier":"34cdf6b6a4b45643b31b5cd63212e95cb55accb36080015048de5e7394f74841","resource":"http://exercises.openstax.org/exercises/1234","trial":"1","created_at":"2015-01-12T21:08:53.550Z","answer_type":"multiple-choice","answer":"answer_string"}' http_version: recorded_at: Mon, 12 Jan 2015 21:08:53 GMT - request: method: post uri: http://localhost:3003/api/events/platforms/multiple_choices body: encoding: UTF-8 string: ! '{"identifier":"34cdf6b6a4b45643b31b5cd63212e95cb55accb36080015048de5e7394f74841","resource":"http://exercises.openstax.org/exercises/1234","trial":"1","answer":"answer_string"}' headers: User-Agent: - Faraday v0.9.0 Accept: - application/vnd.exchange.openstax.v1 Authorization: - Bearer c547f9ee886dcae47e755cead09009b4ff3d1bbd88db7a4fbe39207ab35c794d Content-Type: - application/x-www-form-urlencoded response: status: code: 422 message: Unprocessable Entity headers: X-Frame-Options: - SAMEORIGIN X-Xss-Protection: - 1; mode=block X-Content-Type-Options: - nosniff Content-Type: - application/json; charset=utf-8 Cache-Control: - no-cache Set-Cookie: - _exercises_session=MmlzQS9IZVEzNW1LN1pOTzNsSXFMVkIrVnRLaEJzaTRsNjl6MEI1ZmxWQXlkWnBBOWsvTUxGMjV6U2RLMFlPb2xlMnM2S3FKTjkyb0hJNEtaUTFUY3c9PS0tTFdFVEdRbUEweEluZWU1MjZEYkhqQT09--d606058ac3ab90d11d80a174fe0ff3700c986759; path=/; HttpOnly - request_method=POST; path=/ X-Request-Id: - 91cad2b8-87ce-4063-8b1a-a62d3f28766e X-Runtime: - '0.117100' Connection: - close Server: - thin body: encoding: US-ASCII string: ! '[{"code":"taken","data":{"model":{"id":null,"identifier_id":904,"resource_id":5,"trial":"1","due_at":null,"created_at":null,"updated_at":null},"attribute":"trial"},"kind":"activerecord","message":"has already been taken","offending_inputs":"trial"}]' http_version: recorded_at: Mon, 12 Jan 2015 21:08:53 GMT recorded_with: VCR 2.9.3