--- http_interactions: - request: method: post uri: http://sample.lvh.me:4000/locomotive/api/tokens.json body: encoding: US-ASCII string: email=john%40doe.net&password=easyone headers: Accept: - application/json Accept-Encoding: - gzip User-Agent: - unirest-ruby/1.1 Content-Length: - '37' Content-Type: - application/x-www-form-urlencoded response: status: code: 200 message: OK headers: Date: - Thu, 26 Mar 2015 12:13:39 GMT Status: - 200 OK Connection: - close Location: - http://sample.lvh.me:4000/locomotive/ Content-Type: - application/json; charset=utf-8 X-Ua-Compatible: - IE=Edge Etag: - '"557f8d72cf11ab5399621eddec942c29"' Cache-Control: - max-age=0, private, must-revalidate Set-Cookie: - _locomotive_session=VquoZyFjWuRKNtfa4Qz8Ow1atCk; domain=.sample.lvh.me; path=/; HttpOnly X-Request-Id: - adbf7f3b2ff1d55b0ab474625d878ddc X-Runtime: - '0.030411' body: encoding: UTF-8 string: '{"token":"9GLRWwc2MGTCF7SHiZSg"}' http_version: recorded_at: Thu, 26 Mar 2015 12:13:39 GMT - request: method: get uri: http://sample.lvh.me:4000/locomotive/api/sites.json?auth_token=9GLRWwc2MGTCF7SHiZSg body: encoding: US-ASCII string: '' headers: Accept: - application/json Accept-Encoding: - gzip User-Agent: - unirest-ruby/1.1 response: status: code: 200 message: OK headers: Date: - Thu, 26 Mar 2015 12:13:39 GMT Status: - 200 OK Connection: - close Content-Type: - application/json; charset=utf-8 X-Ua-Compatible: - IE=Edge Etag: - '"81f71ce948be7560bc720c4e05d4c8d8"' Cache-Control: - max-age=0, private, must-revalidate Set-Cookie: - _locomotive_session=E_E0wjZoHg6guMeaGEFc_IYQ0Q8; domain=.sample.lvh.me; path=/; HttpOnly X-Request-Id: - e972f9729360fa3c30e593df4b3daca0 X-Runtime: - '0.052358' body: encoding: UTF-8 string: '[{"id":"54eb49c12475804b2b000002","_id":"54eb49c12475804b2b000002","created_at":"2015-02-23T15:39:45Z","updated_at":"2015-02-23T15:46:46Z","name":"Sample website","locales":["en","fr","nb"],"timezone":"UTC","subdomain":"sample","domains":["example.org","sample.example.com","sample.lvh.me"],"domains_without_subdomain":["example.org","sample.example.com"],"domain_name":"lvh.me","memberships":[{"id":"54eb49c12475804b2b000003","_id":"54eb49c12475804b2b000003","role":"admin","role_name":"Administrator","can_update":false,"grant_admin":true,"account_id":"54eb49b22475804b2b000001","name":"John","email":"john@doe.net"}],"seo_title":"A simple LocomotiveCMS website","meta_keywords":"some meta keywords","meta_description":"some meta description"}]' http_version: recorded_at: Thu, 26 Mar 2015 12:13:39 GMT - request: method: post uri: http://sample.lvh.me:4000/locomotive/api/sites.json body: encoding: US-ASCII string: site[name]=Acme&site[subdomain]=acme&site[locales][]=en&auth_token=9GLRWwc2MGTCF7SHiZSg headers: Accept: - application/json Accept-Encoding: - gzip User-Agent: - unirest-ruby/1.1 Content-Length: - '87' Content-Type: - application/x-www-form-urlencoded response: status: code: 200 message: OK headers: Date: - Thu, 26 Mar 2015 12:13:39 GMT Status: - 200 OK Connection: - close Location: - http://sample.lvh.me:4000/locomotive/sites/5513f7f3c36511aa6a000001 Content-Type: - application/json; charset=utf-8 X-Ua-Compatible: - IE=Edge Etag: - '"586b513cca532ff623cbcba87ab3f8ef"' Cache-Control: - max-age=0, private, must-revalidate Set-Cookie: - _locomotive_session=j7Fc1aPj5ncc_5vthK1b94dOF3M; domain=.sample.lvh.me; path=/; HttpOnly X-Request-Id: - 09b96eabaf1c19e21637ad5623b2c751 X-Runtime: - '0.136287' body: encoding: UTF-8 string: '{"id":"5513f7f3c36511aa6a000001","_id":"5513f7f3c36511aa6a000001","created_at":"2015-03-26T12:13:39Z","updated_at":"2015-03-26T12:13:39Z","name":"Acme","locales":["en"],"timezone":"UTC","subdomain":"acme","domains":["acme.lvh.me"],"domains_without_subdomain":[],"domain_name":"lvh.me","memberships":[{"id":"5513f7f3c36511aa6a000002","_id":"5513f7f3c36511aa6a000002","role":"admin","role_name":"Administrator","can_update":false,"grant_admin":true,"account_id":"54eb49b22475804b2b000001","name":"John","email":"john@doe.net"}]}' http_version: recorded_at: Thu, 26 Mar 2015 12:13:39 GMT - request: method: delete uri: http://sample.lvh.me:4000/locomotive/api/sites/5513f7f3c36511aa6a000001.json body: encoding: US-ASCII string: auth_token=9GLRWwc2MGTCF7SHiZSg headers: Accept: - application/json Accept-Encoding: - gzip User-Agent: - unirest-ruby/1.1 Content-Length: - '31' Content-Type: - application/x-www-form-urlencoded response: status: code: 200 message: OK headers: Date: - Thu, 26 Mar 2015 12:13:39 GMT Status: - 200 OK Connection: - close X-Message: - '"Site%20was%20successfully%20destroyed."' X-Message-Type: - notice Location: - http://sample.lvh.me:4000/locomotive/sites Content-Type: - application/json; charset=utf-8 X-Ua-Compatible: - IE=Edge Etag: - '"27caa7b4e34cff2c964ef6a71e74238e"' Cache-Control: - max-age=0, private, must-revalidate Set-Cookie: - _locomotive_session=nC_FJh22VAjBWzBkUYv1KxMkBYw; domain=.sample.lvh.me; path=/; HttpOnly X-Request-Id: - 02fc4cae8563ecd906e7e1135e4de00f X-Runtime: - '0.126953' body: encoding: UTF-8 string: '{"id":null,"_id":null,"created_at":"2015-03-26T12:13:39Z","updated_at":"2015-03-26T12:13:39Z","name":"Acme","locales":["en"],"timezone":"UTC","subdomain":"acme","domains":["acme.lvh.me"],"domains_without_subdomain":[],"domain_name":"lvh.me","memberships":[{"id":"5513f7f3c36511aa6a000002","_id":"5513f7f3c36511aa6a000002","role":"admin","role_name":"Administrator","can_update":false,"grant_admin":true,"account_id":"54eb49b22475804b2b000001","name":"John","email":"john@doe.net"}]}' http_version: recorded_at: Thu, 26 Mar 2015 12:13:39 GMT recorded_with: VCR 2.9.3