--- http_interactions: - request: method: post uri: http://localhost:3000/locomotive/api/v3/my_account.json body: encoding: UTF-8 string: account%5Bemail%5D=jack%40doe.net&account%5Bname%5D=Jack+Doe&account%5Bpassword%5D=easyone&account%5Bpassword_confirmation%5D=easyone headers: Accept: - application/json Content-Type: - application/x-www-form-urlencoded Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 User-Agent: - Ruby response: status: code: 201 message: Created headers: Content-Type: - application/json Etag: - W/"dce6a314e0a0733cd3d313f6a20efa40" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - 70848878-d96e-4830-b461-8f9036921cbe X-Runtime: - '0.486625' Content-Length: - '254' body: encoding: UTF-8 string: '{"_id":"5650f0a087f6436cbc000000","created_at":"2015-11-21T22:30:56Z","updated_at":"2015-11-21T22:30:56Z","name":"Jack Doe","email":"jack@doe.net","locale":"en","api_key":"92f2e03b57b3f31f485ecf4d99bc94ea20eee862","super_admin":false,"local_admin":false}' http_version: recorded_at: Sat, 21 Nov 2015 22:30:56 GMT - request: method: post uri: http://localhost:3000/locomotive/api/v3/my_account.json body: encoding: UTF-8 string: account%5Bname%5D=Wrong+account headers: Accept: - application/json Content-Type: - application/x-www-form-urlencoded Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 User-Agent: - Ruby response: status: code: 422 message: Unprocessable Entity headers: Content-Type: - application/json Cache-Control: - no-cache X-Request-Id: - 3fab80c5-9da7-4de9-8b9f-5e0ffa3bb1c1 X-Runtime: - '0.600956' Content-Length: - '92' body: encoding: UTF-8 string: '{"error":"Resource invalid","attributes":{"email":["is missing"],"password":["is missing"]}}' http_version: recorded_at: Sat, 21 Nov 2015 22:30:57 GMT - request: method: post uri: http://localhost:3000/locomotive/api/v3/tokens.json body: encoding: UTF-8 string: email=admin%40locomotivecms.com&password=locomotive headers: Accept: - application/json Content-Type: - application/x-www-form-urlencoded Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 User-Agent: - Ruby response: status: code: 201 message: Created headers: Content-Type: - application/json Etag: - W/"120917583ae3f64355d682b690f7cb40" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - 1101bb4a-c567-4209-95ad-d151951e68d6 X-Runtime: - '0.018846' Content-Length: - '32' body: encoding: UTF-8 string: '{"token":"E2aoXzMxkFsLnCcmCcc_"}' http_version: recorded_at: Sat, 21 Nov 2015 22:30:57 GMT - request: method: put uri: http://localhost:3000/locomotive/api/v3/my_account.json body: encoding: UTF-8 string: account%5Bname%5D=John+Doe&auth_token=E2aoXzMxkFsLnCcmCcc_ headers: Accept: - application/json X-Locomotive-Account-Email: - admin@locomotivecms.com X-Locomotive-Account-Token: - E2aoXzMxkFsLnCcmCcc_ Content-Type: - application/x-www-form-urlencoded Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 User-Agent: - Ruby response: status: code: 200 message: OK headers: Content-Type: - application/json Etag: - W/"aa5b3af2d3ff7e0d53fd68d1d077876d" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - dc423123-88c7-4cc7-a7f5-e021ab2abe79 X-Runtime: - '0.040982' Content-Length: - '264' body: encoding: UTF-8 string: '{"_id":"5650f08c87f6436c94000000","created_at":"2015-11-21T22:30:36Z","updated_at":"2015-11-21T22:30:57Z","name":"John Doe","email":"admin@locomotivecms.com","locale":"en","api_key":"d49cd50f6f0d2b163f48fc73cb249f0244c37074","super_admin":false,"local_admin":true}' http_version: recorded_at: Sat, 21 Nov 2015 22:30:57 GMT - request: method: get uri: http://localhost:3000/locomotive/api/v3/my_account.json?auth_token=E2aoXzMxkFsLnCcmCcc_ body: encoding: US-ASCII string: '' headers: Accept: - application/json X-Locomotive-Account-Email: - admin@locomotivecms.com X-Locomotive-Account-Token: - E2aoXzMxkFsLnCcmCcc_ Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 User-Agent: - Ruby response: status: code: 200 message: OK headers: Content-Type: - application/json Etag: - W/"aa5b3af2d3ff7e0d53fd68d1d077876d" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - 92138415-2bf7-452a-b04c-d947488d0b71 X-Runtime: - '0.019667' Content-Length: - '264' body: encoding: UTF-8 string: '{"_id":"5650f08c87f6436c94000000","created_at":"2015-11-21T22:30:36Z","updated_at":"2015-11-21T22:30:57Z","name":"John Doe","email":"admin@locomotivecms.com","locale":"en","api_key":"d49cd50f6f0d2b163f48fc73cb249f0244c37074","super_admin":false,"local_admin":true}' http_version: recorded_at: Sat, 21 Nov 2015 22:30:57 GMT recorded_with: VCR 2.9.3