--- http_interactions: - request: method: post uri: http://123:abc@localhost:3003/oauth/token body: encoding: UTF-8 string: grant_type=client_credentials headers: User-Agent: - Faraday v0.9.1 Content-Type: - application/x-www-form-urlencoded Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 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/"8038f39b5672fab098184d08f2f4bd70" X-Request-Id: - a1ef40d7-78e2-4857-b8ce-92842c4be3be X-Runtime: - '0.016318' Connection: - close Server: - thin body: encoding: UTF-8 string: '{"access_token":"c4b2ebb02eb719e7d5774b611f805a64458a1580ca35915cbee740cadf577b5c","token_type":"bearer","scope":"read write","created_at":1430246610}' http_version: recorded_at: Tue, 28 Apr 2015 18:43:30 GMT - request: method: post uri: http://localhost:3003/api/identifiers body: encoding: UTF-8 string: '' headers: User-Agent: - Faraday v0.9.1 Accept: - application/vnd.exchange.openstax.v1 Content-Type: - application/json Authorization: - Bearer c4b2ebb02eb719e7d5774b611f805a64458a1580ca35915cbee740cadf577b5c Content-Length: - '0' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 response: status: code: 201 message: Created headers: X-Frame-Options: - SAMEORIGIN X-Xss-Protection: - 1; mode=block X-Content-Type-Options: - nosniff Date: - Tue, 28 Apr 2015 18:43:30 GMT Content-Type: - application/json; charset=utf-8 Etag: - W/"c0bf68c3e7bf734f44a55906c592d676" Cache-Control: - max-age=0, private, must-revalidate Set-Cookie: - request_method=POST; path=/ X-Request-Id: - 294c9b50-fc6d-4ecd-aaa6-5acedf48e909 X-Runtime: - '0.054547' Connection: - close Server: - thin body: encoding: UTF-8 string: '{"read":"eab22f0ebf3287a2601060ebf24ac96574618b2d8651ae596ab5b834d1c9b11d","write":"90d7ab96c5d764bc8cf90664b00383234822829d48519cd316a4c1570ff0ae8d"}' http_version: recorded_at: Tue, 28 Apr 2015 18:43:30 GMT - request: method: post uri: http://localhost:3003/api/events/platforms/multiple_choices body: encoding: UTF-8 string: '{"identifier":"90d7ab96c5d764bc8cf90664b00383234822829d48519cd316a4c1570ff0ae8d","resource":"https://example.com/api/exercises/123@1","trial":"1","answer":"answer_string"}' headers: User-Agent: - Faraday v0.9.1 Accept: - application/vnd.exchange.openstax.v1 Authorization: - Bearer c4b2ebb02eb719e7d5774b611f805a64458a1580ca35915cbee740cadf577b5c Content-Type: - application/json Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 response: status: code: 422 message: Unprocessable Entity headers: X-Frame-Options: - SAMEORIGIN X-Xss-Protection: - 1; mode=block X-Content-Type-Options: - nosniff Date: - Tue, 28 Apr 2015 18:43:30 GMT Content-Type: - application/json; charset=utf-8 Cache-Control: - no-cache Set-Cookie: - request_method=POST; path=/ X-Request-Id: - 46e18282-e846-4403-bc7a-38ba52ecf0c2 X-Runtime: - '0.034391' Connection: - close Server: - thin body: encoding: UTF-8 string: '[{"code":"blank","data":{"model":{"id":null,"identifier_id":90,"resource_id":null,"trial":"1","due_at":null,"created_at":null,"updated_at":null},"attribute":"resource"},"kind":"activerecord","message":"can''t be blank","offending_inputs":"resource"}]' http_version: recorded_at: Tue, 28 Apr 2015 18:43:30 GMT recorded_with: VCR 2.9.3