--- 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/"9e3cdac63725e7e1b6b1f00aa32438de" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - 197c701d-cdc9-4aaa-adf2-e0c9ae97efa1 X-Runtime: - '0.028854' Content-Length: - '254' body: encoding: UTF-8 string: '{"_id":"55b8f302446964641a000001","created_at":"2015-07-29T15:36:34Z","updated_at":"2015-07-29T15:36:34Z","name":"Jack Doe","email":"jack@doe.net","locale":"en","api_key":"a6c20ed6c12c7bcd4cb172be50e04d55c1a02f3c","super_admin":false,"local_admin":false}' http_version: recorded_at: Wed, 29 Jul 2015 15:36:34 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: - e9ccf26a-e5af-4d49-a4e9-e1966cd1da5b X-Runtime: - '0.022062' Content-Length: - '92' body: encoding: UTF-8 string: '{"error":"Resource invalid","attributes":{"email":["is missing"],"password":["is missing"]}}' http_version: recorded_at: Wed, 29 Jul 2015 15:36:34 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/"157eb61d395f237526d11950bbc5a1fa" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - 0badb0bc-5253-49de-8797-c093803532ba X-Runtime: - '0.015612' Content-Length: - '32' body: encoding: UTF-8 string: '{"token":"v6XDp282UyPDeM6DgA-S"}' http_version: recorded_at: Wed, 29 Jul 2015 15:36:34 GMT - request: method: get uri: http://localhost:3000/locomotive/api/v3/my_account.json?auth_token=v6XDp282UyPDeM6DgA-S body: encoding: US-ASCII string: '' headers: Accept: - application/json X-Locomotive-Account-Email: - admin@locomotivecms.com X-Locomotive-Account-Token: - v6XDp282UyPDeM6DgA-S 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/"fafaeb02952b967231b7ce94b78171c0" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - fe08d626-c969-4330-a25f-aa92f90da9bf X-Runtime: - '0.017178' Content-Length: - '261' body: encoding: UTF-8 string: '{"_id":"55b8f2ea4469646440000000","created_at":"2015-07-29T15:36:10Z","updated_at":"2015-07-29T15:36:10Z","name":"Admin","email":"admin@locomotivecms.com","locale":"en","api_key":"d49cd50f6f0d2b163f48fc73cb249f0244c37074","super_admin":false,"local_admin":true}' http_version: recorded_at: Wed, 29 Jul 2015 15:36:34 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=v6XDp282UyPDeM6DgA-S headers: Accept: - application/json X-Locomotive-Account-Email: - admin@locomotivecms.com X-Locomotive-Account-Token: - v6XDp282UyPDeM6DgA-S 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/"90a3d77a13c34daf43fc0149ef56eeec" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - f2bfce29-a064-4854-838d-a144ecdb354f X-Runtime: - '0.022488' Content-Length: - '264' body: encoding: UTF-8 string: '{"_id":"55b8f2ea4469646440000000","created_at":"2015-07-29T15:36:10Z","updated_at":"2015-07-29T15:36:34Z","name":"John Doe","email":"admin@locomotivecms.com","locale":"en","api_key":"d49cd50f6f0d2b163f48fc73cb249f0244c37074","super_admin":false,"local_admin":true}' http_version: recorded_at: Wed, 29 Jul 2015 15:36:34 GMT recorded_with: VCR 2.9.3