--- 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 Content-Length: - '32' Etag: - W/"6ba0e226b40adfde2d656d9027a1335f" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - 55fa53e7-0e78-4353-ba72-cde1ccc36bff X-Runtime: - '0.039202' Connection: - keep-alive Server: - thin body: encoding: UTF-8 string: '{"token":"Z9s7W_-BXyGQsDPFsorr"}' http_version: recorded_at: Mon, 04 May 2015 13:51:28 GMT - request: method: get uri: http://localhost:3000/locomotive/api/v3/sites.json body: encoding: UTF-8 string: auth_token=Z9s7W_-BXyGQsDPFsorr headers: Accept: - application/json X-Locomotive-Account-Email: - admin@locomotivecms.com X-Locomotive-Account-Token: - Z9s7W_-BXyGQsDPFsorr 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 Content-Length: - '1021' Etag: - W/"7447d8e7cdca76d1abcbb9df74b1cab8" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - 0798d382-b16c-42c0-a00d-d4116b953af6 X-Runtime: - '0.037419' Connection: - keep-alive Server: - thin body: encoding: UTF-8 string: '[{"_id":"554779596469644d44010000","created_at":"2015-05-04T13:51:21Z","updated_at":"2015-05-04T13:51:21Z","name":"LocomotiveCMS","handle":"www","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":["www.example.com"],"memberships":[{"_id":"554779596469644d44040000","created_at":null,"updated_at":null,"role":"admin","account_id":"554779596469644d44000000","name":"Admin","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC"},{"_id":"554779596469644d44050000","created_at":"2015-05-04T13:51:21Z","updated_at":"2015-05-04T13:51:21Z","name":"Sample site","handle":"sample","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":["sample.example.com"],"memberships":[{"_id":"554779596469644d44080000","created_at":null,"updated_at":null,"role":"admin","account_id":"554779596469644d44000000","name":"Admin","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC"}]' http_version: recorded_at: Mon, 04 May 2015 13:51:28 GMT - request: method: post uri: http://localhost:3000/locomotive/api/v3/sites.json body: encoding: UTF-8 string: auth_token=Z9s7W_-BXyGQsDPFsorr&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: - Z9s7W_-BXyGQsDPFsorr 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 Content-Length: - '482' Etag: - W/"9ab618d5bc9a66e66ff55a4198096ffc" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - de7f0ba4-53dc-4f96-98b7-d178e4c601dd X-Runtime: - '0.081937' Connection: - keep-alive Server: - thin body: encoding: UTF-8 string: '{"_id":"554779606469643251250300","created_at":"2015-05-04T13:51:28Z","updated_at":"2015-05-04T13:51:28Z","name":"Acme","handle":"acme","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":[],"memberships":[{"_id":"554779606469643251260300","created_at":null,"updated_at":null,"role":"admin","account_id":"554779596469644d44000000","name":"Admin","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC"}' http_version: recorded_at: Mon, 04 May 2015 13:51:28 GMT - request: method: delete uri: http://localhost:3000/locomotive/api/v3/sites/554779606469643251250300.json body: encoding: UTF-8 string: auth_token=Z9s7W_-BXyGQsDPFsorr headers: Accept: - application/json X-Locomotive-Account-Email: - admin@locomotivecms.com X-Locomotive-Account-Token: - Z9s7W_-BXyGQsDPFsorr 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 Content-Length: - '482' Etag: - W/"9ab618d5bc9a66e66ff55a4198096ffc" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - 101dcbef-6d1f-411e-b3cc-ba34ee6ba351 X-Runtime: - '0.081414' Connection: - keep-alive Server: - thin body: encoding: UTF-8 string: '{"_id":"554779606469643251250300","created_at":"2015-05-04T13:51:28Z","updated_at":"2015-05-04T13:51:28Z","name":"Acme","handle":"acme","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":[],"memberships":[{"_id":"554779606469643251260300","created_at":null,"updated_at":null,"role":"admin","account_id":"554779596469644d44000000","name":"Admin","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC"}' http_version: recorded_at: Mon, 04 May 2015 13:51:28 GMT recorded_with: VCR 2.9.3