--- 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/"157eb61d395f237526d11950bbc5a1fa" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - e1d916af-ece8-40ab-89a0-91fec9678281 X-Runtime: - '0.018525' 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/sites.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/"6eeec342423fe5777a3bdb54452c56c3" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - 3c30096b-fb59-43c3-843e-0c2cc371e6b0 X-Runtime: - '0.027518' Content-Length: - '1120' body: encoding: UTF-8 string: '[{"_id":"55b8f2ea4469646440000002","created_at":"2015-07-29T15:36:10Z","updated_at":"2015-07-29T15:36:10Z","name":"LocomotiveCMS","handle":"www","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":["www.example.com"],"memberships":[{"_id":"55b8f2ea4469646440000005","created_at":null,"updated_at":null,"role":"admin","account_id":"55b8f2ea4469646440000000","name":"John Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null},{"_id":"55b8f2ea4469646440000006","created_at":"2015-07-29T15:36:10Z","updated_at":"2015-07-29T15:36: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":"55b8f2ea4469646440000009","created_at":null,"updated_at":null,"role":"admin","account_id":"55b8f2ea4469646440000000","name":"John Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null}]' http_version: recorded_at: Wed, 29 Jul 2015 15:36:34 GMT - request: method: post uri: http://localhost:3000/locomotive/api/v3/sites.json body: encoding: UTF-8 string: auth_token=v6XDp282UyPDeM6DgA-S&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: - 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: 201 message: Created headers: Content-Type: - application/json Etag: - W/"f825eb243163965cd70aaa8ba669b1f1" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - 5b0caa6f-bd2c-4cb6-99b2-516b5f3cab6d X-Runtime: - '0.172455' Content-Length: - '533' body: encoding: UTF-8 string: '{"_id":"55b8f303446964641a000003","created_at":"2015-07-29T15:36:35Z","updated_at":"2015-07-29T15:36:35Z","name":"Acme","handle":"acme","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":[],"memberships":[{"_id":"55b8f303446964641a000004","created_at":null,"updated_at":null,"role":"admin","account_id":"55b8f2ea4469646440000000","name":"John Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null}' http_version: recorded_at: Wed, 29 Jul 2015 15:36:35 GMT - request: method: delete uri: http://localhost:3000/locomotive/api/v3/sites/55b8f303446964641a000003.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/"f825eb243163965cd70aaa8ba669b1f1" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - 26885055-03da-4592-b8c3-cbe6ae7a73c0 X-Runtime: - '0.184265' Content-Length: - '533' body: encoding: UTF-8 string: '{"_id":"55b8f303446964641a000003","created_at":"2015-07-29T15:36:35Z","updated_at":"2015-07-29T15:36:35Z","name":"Acme","handle":"acme","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":[],"memberships":[{"_id":"55b8f303446964641a000004","created_at":null,"updated_at":null,"role":"admin","account_id":"55b8f2ea4469646440000000","name":"John Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null}' http_version: recorded_at: Wed, 29 Jul 2015 15:36:35 GMT recorded_with: VCR 2.9.3