--- http_interactions: - request: method: post uri: http://localhost:3000/locomotive/api/v3/tokens.json body: encoding: UTF-8 string: email=john%40doe.net&password=asimplepassword 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: 401 message: Unauthorized headers: Content-Type: - application/json X-Error-Detail: - Invalid email or password. Cache-Control: - no-cache X-Request-Id: - 9fd5095f-e1f8-46bd-af70-4937d8952fa9 X-Runtime: - '0.475989' Content-Length: - '40' body: encoding: UTF-8 string: '{"message":"Invalid email or password."}' http_version: recorded_at: Sat, 03 Oct 2015 22:51:13 GMT - request: method: post uri: http://localhost:3000/locomotive/api/v3/my_account.json body: encoding: UTF-8 string: account%5Bemail%5D=john%40doe.net&account%5Bname%5D=John&account%5Bpassword%5D=asimplepassword 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/"f11c118ac1f73d61c33c0fe3b83a4bbe" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - 0d392097-4546-4dea-aed7-aa78812b2cc6 X-Runtime: - '0.076062' Content-Length: - '250' body: encoding: UTF-8 string: '{"_id":"56105be187f6432346000000","created_at":"2015-10-03T22:51:13Z","updated_at":"2015-10-03T22:51:13Z","name":"John","email":"john@doe.net","locale":"en","api_key":"d4e4bcc95dbaa0bc964fe5d759af3e17ae87b55f","super_admin":false,"local_admin":false}' http_version: recorded_at: Sat, 03 Oct 2015 22:51:13 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/"a9163fdeb161e2c161f3a0f3efe49ba1" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - 45b0e958-c517-473e-aabb-6c905328665a X-Runtime: - '0.016623' Content-Length: - '32' body: encoding: UTF-8 string: '{"token":"a2muK9TeBmVrpA5XrYQa"}' http_version: recorded_at: Sat, 03 Oct 2015 22:51:13 GMT - request: method: get uri: http://localhost:3000/locomotive/api/v3/my_account.json?auth_token=a2muK9TeBmVrpA5XrYQa body: encoding: US-ASCII string: '' headers: Accept: - application/json X-Locomotive-Account-Email: - admin@locomotivecms.com X-Locomotive-Account-Token: - a2muK9TeBmVrpA5XrYQa 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/"eca3fa55990117bf008694b4895520d9" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - fc3ee76e-4de2-4487-bfc4-9b51d7842cd7 X-Runtime: - '0.027375' Content-Length: - '261' body: encoding: UTF-8 string: '{"_id":"56105bac87f6432326000000","created_at":"2015-10-03T22:50:20Z","updated_at":"2015-10-03T22:50:20Z","name":"Admin","email":"admin@locomotivecms.com","locale":"en","api_key":"d49cd50f6f0d2b163f48fc73cb249f0244c37074","super_admin":false,"local_admin":true}' http_version: recorded_at: Sat, 03 Oct 2015 22:51:13 GMT - request: method: get uri: http://localhost:3000/locomotive/api/v3/my_account.json?auth_token=a2muK9TeBmVrpA5XrYQa body: encoding: US-ASCII string: '' headers: Accept: - application/json X-Locomotive-Account-Email: - admin@locomotivecms.com X-Locomotive-Account-Token: - a2muK9TeBmVrpA5XrYQa 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/"eca3fa55990117bf008694b4895520d9" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - f29a44e9-95b9-46ca-950c-522f4fc36cee X-Runtime: - '0.013873' Content-Length: - '261' body: encoding: UTF-8 string: '{"_id":"56105bac87f6432326000000","created_at":"2015-10-03T22:50:20Z","updated_at":"2015-10-03T22:50:20Z","name":"Admin","email":"admin@locomotivecms.com","locale":"en","api_key":"d49cd50f6f0d2b163f48fc73cb249f0244c37074","super_admin":false,"local_admin":true}' http_version: recorded_at: Sat, 03 Oct 2015 22:51:13 GMT recorded_with: VCR 2.9.3