--- 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.1 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/"671e0a562337a825aa19d4a1e8b75206" X-Request-Id: - 0c7e053f-e805-4c4a-9bf3-a1478d4f00ce X-Runtime: - '0.016269' Connection: - close Server: - thin body: encoding: US-ASCII string: ! '{"access_token":"c0ca319e2588f9f74b8b14c960fd5f4e157a6edf060c36d764a390e082f7f131","token_type":"bearer","scope":"read write","created_at":1431390182}' http_version: recorded_at: Tue, 12 May 2015 00:23:02 GMT - request: method: post uri: http://localhost:3003/api/identifiers body: encoding: US-ASCII string: '' headers: User-Agent: - Faraday v0.9.1 Accept: - application/vnd.exchange.openstax.v1 Content-Type: - application/json Authorization: - Bearer c0ca319e2588f9f74b8b14c960fd5f4e157a6edf060c36d764a390e082f7f131 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 Date: - Tue, 12 May 2015 00:23:02 GMT Content-Type: - application/json; charset=utf-8 Etag: - W/"8e5c3fe6bde08de633da0d6153d8d0cc" Cache-Control: - max-age=0, private, must-revalidate Set-Cookie: - request_method=POST; path=/ X-Request-Id: - 64d5effc-e4a5-4180-a31f-38e3ddff9f8b X-Runtime: - '0.063133' Connection: - close Server: - thin body: encoding: US-ASCII string: ! '{"read":"383cc2fee618697bf70d7cec3298b05733bb007ce9f18032de065b90709c26d4","write":"e26218f6aa93129c2b4fc84b2548264e3256308d53164212b3d0285b40575843"}' http_version: recorded_at: Tue, 12 May 2015 00:23:02 GMT - request: method: post uri: http://localhost:3003/api/events/platforms/gradings body: encoding: UTF-8 string: ! '{"identifier":"e26218f6aa93129c2b4fc84b2548264e3256308d53164212b3d0285b40575843","resource":"https://example.com/api/exercises/123@1","trial":"1","grade":"1.0","grader":"openstax"}' headers: User-Agent: - Faraday v0.9.1 Accept: - application/vnd.exchange.openstax.v1 Authorization: - Bearer c0ca319e2588f9f74b8b14c960fd5f4e157a6edf060c36d764a390e082f7f131 Content-Type: - application/json 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, 12 May 2015 00:23:02 GMT Content-Type: - application/json; charset=utf-8 Cache-Control: - no-cache Set-Cookie: - request_method=POST; path=/ X-Request-Id: - 09a3a36a-5172-46fe-aca0-115a7077df12 X-Runtime: - '0.039371' Connection: - close Server: - thin body: encoding: US-ASCII string: ! '[{"code":"blank","data":{"model":{"id":null,"identifier_id":15,"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, 12 May 2015 00:23:02 GMT recorded_with: VCR 2.9.3