--- 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/"3b6ceb0d2ba232a8d48dd0dc8f702ef4" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - bbb75b32-ad76-4510-aff8-42f90e84ff08 X-Runtime: - '0.015751' Content-Length: - '32' body: encoding: UTF-8 string: '{"token":"xM_3r1zn2aQAinPFqSvd"}' http_version: recorded_at: Tue, 11 Aug 2015 13:12:38 GMT - request: method: get uri: http://localhost:3000/locomotive/api/v3/sites.json?auth_token=xM_3r1zn2aQAinPFqSvd body: encoding: US-ASCII string: '' headers: Accept: - application/json X-Locomotive-Account-Email: - admin@locomotivecms.com X-Locomotive-Account-Token: - xM_3r1zn2aQAinPFqSvd 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/"e98c3f1e3ad87ab3eb5f6a4ca52de628" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - 741aaebf-68f2-4d90-af1f-1c82104250e5 X-Runtime: - '0.027081' Content-Length: - '1114' body: encoding: UTF-8 string: '[{"_id":"55c9f4a387f6432a1e000002","created_at":"2015-08-11T13:12:03Z","updated_at":"2015-08-11T13:12:04Z","name":"LocomotiveCMS","handle":"www","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":["www.example.com"],"memberships":[{"_id":"55c9f4a487f6432a1e000005","created_at":null,"updated_at":null,"role":"admin","account_id":"55c9f4a387f6432a1e000000","name":"Admin","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null},{"_id":"55c9f4a487f6432a1e000006","created_at":"2015-08-11T13:12:04Z","updated_at":"2015-08-11T13:12:34Z","name":"John Doe","handle":"sample","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":["sample.example.com"],"memberships":[{"_id":"55c9f4a487f6432a1e000009","created_at":null,"updated_at":null,"role":"admin","account_id":"55c9f4a387f6432a1e000000","name":"Admin","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null}]' http_version: recorded_at: Tue, 11 Aug 2015 13:12:38 GMT - request: method: post uri: http://localhost:3000/locomotive/api/v3/sites.json body: encoding: UTF-8 string: auth_token=xM_3r1zn2aQAinPFqSvd&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: - xM_3r1zn2aQAinPFqSvd 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/"5b9a1510813905ff23c637a734d9f247" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - df77e333-7139-4157-8e0f-0e50df0e3e42 X-Runtime: - '0.078447' Content-Length: - '530' body: encoding: UTF-8 string: '{"_id":"55c9f4c687f6432a3b00002d","created_at":"2015-08-11T13:12:38Z","updated_at":"2015-08-11T13:12:38Z","name":"Acme","handle":"acme","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":[],"memberships":[{"_id":"55c9f4c687f6432a3b00002e","created_at":null,"updated_at":null,"role":"admin","account_id":"55c9f4a387f6432a1e000000","name":"Admin","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null}' http_version: recorded_at: Tue, 11 Aug 2015 13:12:39 GMT - request: method: delete uri: http://localhost:3000/locomotive/api/v3/sites/55c9f4c687f6432a3b00002d.json?auth_token=xM_3r1zn2aQAinPFqSvd body: encoding: US-ASCII string: '' headers: Accept: - application/json X-Locomotive-Account-Email: - admin@locomotivecms.com X-Locomotive-Account-Token: - xM_3r1zn2aQAinPFqSvd 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/"5b9a1510813905ff23c637a734d9f247" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - 0e6734ec-6aea-4b1a-ace3-7af614250380 X-Runtime: - '0.071913' Content-Length: - '530' body: encoding: UTF-8 string: '{"_id":"55c9f4c687f6432a3b00002d","created_at":"2015-08-11T13:12:38Z","updated_at":"2015-08-11T13:12:38Z","name":"Acme","handle":"acme","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":[],"memberships":[{"_id":"55c9f4c687f6432a3b00002e","created_at":null,"updated_at":null,"role":"admin","account_id":"55c9f4a387f6432a1e000000","name":"Admin","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null}' http_version: recorded_at: Tue, 11 Aug 2015 13:12:39 GMT recorded_with: VCR 2.9.3