--- http_interactions: - 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: - 7ea64e94-d6ee-4f5c-8069-fe2c99261cdc X-Runtime: - '0.017257' Content-Length: - '32' body: encoding: UTF-8 string: '{"token":"E2aoXzMxkFsLnCcmCcc_"}' http_version: recorded_at: Sat, 21 Nov 2015 22:31:00 GMT - request: method: get uri: http://localhost:3000/locomotive/api/v3/sites.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/"3a8a8abe91f933f0044deaa41db1e962" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - 1870bfe2-f33b-41f9-8a52-7803eff9fcd5 X-Runtime: - '0.059006' Content-Length: - '1524' body: encoding: UTF-8 string: '[{"_id":"5650f08c87f6436c94000002","created_at":"2015-11-21T22:30:36Z","updated_at":"2015-11-21T22:30:36Z","name":"LocomotiveCMS","handle":"www","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"cache_enabled":false,"locales":["en"],"domains":["www.example.com"],"memberships":[{"_id":"5650f08c87f6436c94000005","created_at":null,"updated_at":null,"role":"admin","account_id":"5650f08c87f6436c94000000","name":"John Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"content_version":1448145036,"template_version":1448145036,"picture_thumbnail_url":null,"preview_url":"http://localhost:3000/locomotive/www/preview","sign_in_url":"http://localhost:3000/locomotive/sign_in"},{"_id":"5650f08c87f6436c94000006","created_at":"2015-11-21T22:30:36Z","updated_at":"2015-11-21T22:31:00Z","name":"Sample site","handle":"sample","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"cache_enabled":false,"locales":["en"],"domains":["sample.example.com"],"memberships":[{"_id":"5650f08c87f6436c94000009","created_at":null,"updated_at":null,"role":"admin","account_id":"5650f08c87f6436c94000000","name":"John Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"content_version":1448145060,"template_version":1448145058,"picture_thumbnail_url":null,"preview_url":"http://localhost:3000/locomotive/sample/preview","sign_in_url":"http://localhost:3000/locomotive/sign_in"}]' http_version: recorded_at: Sat, 21 Nov 2015 22:31:00 GMT - request: method: post uri: http://localhost:3000/locomotive/api/v3/sites.json body: encoding: UTF-8 string: auth_token=E2aoXzMxkFsLnCcmCcc_&site%5Bhandle%5D=acme&site%5Blocales%5D%5B%5D=en&site%5Bname%5D=Acme 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: 201 message: Created headers: Content-Type: - application/json Etag: - W/"1e7b3b53216ac2d81db62af9f5c21b67" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - d4426626-4211-498d-9d6d-91d2159c9de5 X-Runtime: - '0.131513' Content-Length: - '744' body: encoding: UTF-8 string: '{"_id":"5650f0a487f6436cbc000028","created_at":"2015-11-21T22:31:00Z","updated_at":"2015-11-21T22:31:00Z","name":"Acme","handle":"lush-dawn-5649","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"cache_enabled":false,"locales":["en"],"domains":[],"memberships":[{"_id":"5650f0a487f6436cbc000029","created_at":null,"updated_at":null,"role":"admin","account_id":"5650f08c87f6436c94000000","name":"John Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"content_version":0,"template_version":1448145060,"picture_thumbnail_url":null,"preview_url":"http://localhost:3000/locomotive/lush-dawn-5649/preview","sign_in_url":"http://localhost:3000/locomotive/sign_in"}' http_version: recorded_at: Sat, 21 Nov 2015 22:31:00 GMT - request: method: delete uri: http://localhost:3000/locomotive/api/v3/sites/5650f0a487f6436cbc000028.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/"1e7b3b53216ac2d81db62af9f5c21b67" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - c6474f4e-002f-485d-b834-3ec9db5047a3 X-Runtime: - '0.102743' Content-Length: - '744' body: encoding: UTF-8 string: '{"_id":"5650f0a487f6436cbc000028","created_at":"2015-11-21T22:31:00Z","updated_at":"2015-11-21T22:31:00Z","name":"Acme","handle":"lush-dawn-5649","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"cache_enabled":false,"locales":["en"],"domains":[],"memberships":[{"_id":"5650f0a487f6436cbc000029","created_at":null,"updated_at":null,"role":"admin","account_id":"5650f08c87f6436c94000000","name":"John Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"content_version":0,"template_version":1448145060,"picture_thumbnail_url":null,"preview_url":"http://localhost:3000/locomotive/lush-dawn-5649/preview","sign_in_url":"http://localhost:3000/locomotive/sign_in"}' http_version: recorded_at: Sat, 21 Nov 2015 22:31:00 GMT recorded_with: VCR 2.9.3