Clone
---
http_interactions:
- request:
method: post
uri: http://sample.example.com:3000/locomotive/api/tokens.json
body:
encoding: UTF-8
string: email=admin%40locomotivecms.com&password=locomotive
headers: {}
response:
status:
code: 200
message: OK
headers:
Date:
- Tue, 17 Sep 2013 15:12:16 GMT
Status:
- 200 OK
Connection:
- close
Location:
- http://sample.example.com:3000/locomotive/
Content-Type:
- application/json; charset=utf-8
X-Ua-Compatible:
- IE=Edge
Etag:
- '"d1a90b45e031fb4f87663184c2a67dbd"'
Cache-Control:
- max-age=0, private, must-revalidate
Set-Cookie:
- _locomotive_session=7FsbH4bAKgxjSjBqRjSbfW0jGbc; domain=.example.com; path=/;
HttpOnly
X-Request-Id:
- c9a037d922e36ceab77b67fd60df3f1e
X-Runtime:
- '0.036712'
body:
encoding: UTF-8
string: '{"token":"iaWvtP5PhmnyKypXpLbM"}'
http_version:
recorded_at: Tue, 17 Sep 2013 15:12:16 GMT
- request:
method: get
uri: http://sample.example.com:3000/locomotive/api/current_site.json?auth_token=iaWvtP5PhmnyKypXpLbM
body:
encoding: US-ASCII
string: ''
headers: {}
response:
status:
code: 200
message: OK
headers:
Date:
- Tue, 17 Sep 2013 15:12:16 GMT
Status:
- 200 OK
Connection:
- close
Content-Type:
- application/json; charset=utf-8
X-Ua-Compatible:
- IE=Edge
Etag:
- '"44c3f51a8b65cd145a65bd507037a52f"'
Cache-Control:
- max-age=0, private, must-revalidate
Set-Cookie:
- _locomotive_session=ee6akf6apTreFuVEtChqz_5Cr6o; domain=.example.com; path=/;
HttpOnly
X-Request-Id:
- 863cd4b64f4bdd041d455e8a67e3baa9
X-Runtime:
- '0.041135'
body:
encoding: UTF-8
string: '{"id":"5238710587f6431df7000006","_id":"5238710587f6431df7000006","created_at":"2013-09-17T15:11:01Z","updated_at":"2013-09-17T15:11:33Z","name":"locomotive","locales":["en","es"],"timezone":"UTC","subdomain":"sample","domains":["sample.example.com"],"domains_without_subdomain":[],"domain_name":"example.com","memberships":[{"id":"5238710587f6431df7000009","_id":"5238710587f6431df7000009","role":"admin","role_name":"Administrator","can_update":false,"grant_admin":true,"account_id":"5238710587f6431df7000001","name":"Admin","email":"admin@locomotivecms.com"}]}'
http_version:
recorded_at: Tue, 17 Sep 2013 15:12:16 GMT
- request:
method: get
uri: http://sample.example.com:3000/locomotive/api/current_site.json?auth_token=iaWvtP5PhmnyKypXpLbM&locale=es
body:
encoding: US-ASCII
string: ''
headers: {}
response:
status:
code: 200
message: OK
headers:
Date:
- Tue, 17 Sep 2013 15:12:16 GMT
Status:
- 200 OK
Connection:
- close
Content-Type:
- application/json; charset=utf-8
X-Ua-Compatible:
- IE=Edge
Etag:
- '"f3da36b3e0ddaffbc93f97aaae09ae52"'
Cache-Control:
- max-age=0, private, must-revalidate
Set-Cookie:
- _locomotive_session=bCA-MmvjiiXKLvxdvI7uKOQ8ERM; domain=.example.com; path=/;
HttpOnly
X-Request-Id:
- 704fee212896de6aab7877f80a1496b3
X-Runtime:
- '0.040516'
body:
encoding: UTF-8
string: '{"id":"5238710587f6431df7000006","_id":"5238710587f6431df7000006","created_at":"2013-09-17T15:11:01Z","updated_at":"2013-09-17T15:11:33Z","name":"locomotive","locales":["en","es"],"timezone":"UTC","subdomain":"sample","domains":["sample.example.com"],"domains_without_subdomain":[],"domain_name":"example.com","memberships":[{"id":"5238710587f6431df7000009","_id":"5238710587f6431df7000009","role":"admin","role_name":"Administrador","can_update":false,"grant_admin":true,"account_id":"5238710587f6431df7000001","name":"Admin","email":"admin@locomotivecms.com"}]}'
http_version:
recorded_at: Tue, 17 Sep 2013 15:12:16 GMT
- request:
method: get
uri: http://sample.example.com:3000/locomotive/api/content_assets.json?auth_token=iaWvtP5PhmnyKypXpLbM
body:
encoding: US-ASCII
string: ''
headers: {}
response:
status:
code: 200
message: OK
headers:
Date:
- Tue, 17 Sep 2013 15:12:16 GMT
Status:
- 200 OK
Connection:
- close
Content-Type:
- application/json; charset=utf-8
X-Ua-Compatible:
- IE=Edge
Etag:
- '"d751713988987e9331980363e24189ce"'
Cache-Control:
- max-age=0, private, must-revalidate
Set-Cookie:
- _locomotive_session=NoTrZItzrjWEx6zkOl12mE-Of74; domain=.example.com; path=/;
HttpOnly
X-Request-Id:
- fa80e875ffddf7535b6dcbf788e9d11f
X-Runtime:
- '0.097374'
body:
encoding: UTF-8
string: '[]'
http_version:
recorded_at: Tue, 17 Sep 2013 15:12:16 GMT
- request:
method: get
uri: http://sample.example.com:3000/locomotive/api/snippets.json?auth_token=iaWvtP5PhmnyKypXpLbM
body:
encoding: US-ASCII
string: ''
headers: {}
response:
status:
code: 200
message: OK
headers:
Date:
- Tue, 17 Sep 2013 15:12:16 GMT
Status:
- 200 OK
Connection:
- close
Content-Type:
- application/json; charset=utf-8
X-Ua-Compatible:
- IE=Edge
Etag:
- '"d751713988987e9331980363e24189ce"'
Cache-Control:
- max-age=0, private, must-revalidate
Set-Cookie:
- _locomotive_session=YqoQOI94i6WImV7l8m3iBdbDvqY; domain=.example.com; path=/;
HttpOnly
X-Request-Id:
- c804f5386d84109abb4bdb7969088e53
X-Runtime:
- '0.038155'
body:
encoding: UTF-8
string: '[]'
http_version:
recorded_at: Tue, 17 Sep 2013 15:12:16 GMT
- request:
method: get
uri: http://sample.example.com:3000/locomotive/api/content_types.json?auth_token=iaWvtP5PhmnyKypXpLbM
body:
encoding: US-ASCII
string: ''
headers: {}
response:
status:
code: 200
message: OK
headers:
Date:
- Tue, 17 Sep 2013 15:12:16 GMT
Status:
- 200 OK
Connection:
- close
Content-Type:
- application/json; charset=utf-8
X-Ua-Compatible:
- IE=Edge
Etag:
- '"80558e8d8878e660f5cfd6b06152de50"'
Cache-Control:
- max-age=0, private, must-revalidate
Set-Cookie:
- _locomotive_session=sJHSyzsJRwo4YIHE6dCFRaFyJ1A; domain=.example.com; path=/;
HttpOnly
X-Request-Id:
- c614511770e53088c96043ba149bd48f
X-Runtime:
- '0.043328'
body:
encoding: UTF-8
string: '[{"id":"5238712587f643884e000001","_id":"5238712587f643884e000001","created_at":"2013-09-17T15:11:33Z","updated_at":"2013-09-17T15:11:33Z","name":"Products","slug":"products","entries_custom_fields":[{"id":"5238712587f643884e000002","_id":"5238712587f643884e000002","name":"name","label":"name","type":"string","required":true,"localized":true,"unique":false,"position":0},{"id":"5238712587f643884e000003","_id":"5238712587f643884e000003","name":"available","label":"available","type":"boolean","required":false,"localized":false,"unique":false,"position":1}],"description":"My
products collection","label_field_name":"name","order_by":"created_at","order_direction":"asc","order_by_field_name":"created_at","public_submission_enabled":false,"public_submission_account_emails":[]}]'
http_version:
recorded_at: Tue, 17 Sep 2013 15:12:16 GMT
- request:
method: get
uri: http://sample.example.com:3000/locomotive/api/content_types/products/entries.json?auth_token=iaWvtP5PhmnyKypXpLbM
body:
encoding: US-ASCII
string: ''
headers: {}
response:
status:
code: 200
message: OK
headers:
Date:
- Tue, 17 Sep 2013 15:12:16 GMT
Status:
- 200 OK
Connection:
- close
Content-Type:
- application/json; charset=utf-8
X-Ua-Compatible:
- IE=Edge
Etag:
- '"83dfd1167e0b94465530e648860cdcda"'
Cache-Control:
- max-age=0, private, must-revalidate
Set-Cookie:
- _locomotive_session=PtfyO6vYHRNr83z51nlhMvK23yQ; domain=.example.com; path=/;
HttpOnly
X-Request-Id:
- 7e8f978f3c500588268395eac2c93659
X-Runtime:
- '0.050445'
body:
encoding: UTF-8
string: '[{"id":"5238712587f643884e000004","_id":"5238712587f643884e000004","created_at":"2013-09-17T15:11:33Z","updated_at":"2013-09-17T15:11:33Z","_label":"Useless
stuff","_slug":"useless-stuff","_position":0,"_visible":true,"content_type_slug":"products","translated_in":["en"],"name":"Useless
stuff","available":true}]'
http_version:
recorded_at: Tue, 17 Sep 2013 15:12:16 GMT
- request:
method: get
uri: http://sample.example.com:3000/locomotive/api/content_types/products/entries/5238712587f643884e000004.json?auth_token=iaWvtP5PhmnyKypXpLbM&locale=en
body:
encoding: US-ASCII
string: ''
headers: {}
response:
status:
code: 200
message: OK
headers:
Date:
- Tue, 17 Sep 2013 15:12:16 GMT
Status:
- 200 OK
Connection:
- close
Content-Type:
- application/json; charset=utf-8
X-Ua-Compatible:
- IE=Edge
Etag:
- '"30d49d7b032f30c6e560befd964e9d1b"'
Cache-Control:
- max-age=0, private, must-revalidate
Set-Cookie:
- _locomotive_session=ZZBH3XuOUost_vmm43JBys-KIhg; domain=.example.com; path=/;
HttpOnly
X-Request-Id:
- 3d61f6ee3d2663d4edb1edbe290dfb42
X-Runtime:
- '0.034323'
body:
encoding: UTF-8
string: '{"id":"5238712587f643884e000004","_id":"5238712587f643884e000004","created_at":"2013-09-17T15:11:33Z","updated_at":"2013-09-17T15:11:33Z","_label":"Useless
stuff","_slug":"useless-stuff","_position":0,"_visible":true,"content_type_slug":"products","translated_in":["en"],"name":"Useless
stuff","available":true}'
http_version:
recorded_at: Tue, 17 Sep 2013 15:12:16 GMT
- request:
method: get
uri: http://sample.example.com:3000/locomotive/api/pages.json?auth_token=iaWvtP5PhmnyKypXpLbM
body:
encoding: US-ASCII
string: ''
headers: {}
response:
status:
code: 200
message: OK
headers:
Date:
- Tue, 17 Sep 2013 15:12:16 GMT
Status:
- 200 OK
Connection:
- close
Content-Type:
- application/json; charset=utf-8
X-Ua-Compatible:
- IE=Edge
Etag:
- '"a19c8f4823366aaef7a28e95582c9b2d"'
Cache-Control:
- max-age=0, private, must-revalidate
Set-Cookie:
- _locomotive_session=USaWfTUtHpU3_9x1qPCNSXC49H0; domain=.example.com; path=/;
HttpOnly
X-Request-Id:
- 6c6467a58573a93b8e068c44ad2ddece
X-Runtime:
- '0.045967'
body:
encoding: UTF-8
string: '[{"id":"5238710587f6431df7000007","_id":"5238710587f6431df7000007","created_at":"2013-09-17T15:11:01Z","updated_at":"2013-09-17T15:11:34Z","title":"Home
page","slug":"index","position":0,"response_type":"text/html","cache_strategy":"none","redirect":false,"redirect_type":301,"listed":true,"published":true,"templatized":false,"templatized_from_parent":false,"fullpath":"index","localized_fullpaths":{"en":"","es":"es"},"depth":0,"translated_in":["en","es"],"raw_template":"{%
block content %}\r\n New content of the home page\r\n{% endblock %}\r\n\r\n","escaped_raw_template":"{%
block content %}\r\n New content of the home page\r\n{% endblock %}\r\n\r\n","editable_elements":[]},{"id":"5238712687f643884e000006","_id":"5238712687f643884e000006","created_at":"2013-09-17T15:11:34Z","updated_at":"2013-09-17T15:11:34Z","title":"translated","slug":"translated","parent_id":"5238710587f6431df7000007","position":0,"response_type":"text/html","cache_strategy":"none","redirect":false,"redirect_type":301,"listed":true,"published":true,"templatized":false,"templatized_from_parent":false,"fullpath":"translated","localized_fullpaths":{"en":"translated","es":"es/translated"},"depth":1,"translated_in":["en"],"raw_template":"{{
''hello_world'' | translate}}","escaped_raw_template":"{{ 'hello_world'
| translate}}","editable_elements":[]},{"id":"5238712687f643884e000008","_id":"5238712687f643884e000008","created_at":"2013-09-17T15:11:34Z","updated_at":"2013-09-17T15:11:34Z","title":"Latest","slug":"latest","parent_id":"5238712687f643884e000007","position":0,"response_type":"text/html","cache_strategy":"none","redirect":false,"redirect_type":301,"listed":true,"published":true,"templatized":false,"templatized_from_parent":false,"fullpath":"products/latest","localized_fullpaths":{"en":"products/latest","es":"es/products/latest"},"depth":2,"translated_in":["en"],"raw_template":"{%
extends parent %}\r\n{% block content %}\r\n The name of the latest product
is: {{ contents.products.last.name }}\r\n{% endblock %}","escaped_raw_template":"{%
extends parent %}\r\n{% block content %}\r\n The name of the latest product
is: {{ contents.products.last.name }}\r\n{% endblock %}","editable_elements":[]},{"id":"5238710587f6431df7000008","_id":"5238710587f6431df7000008","created_at":"2013-09-17T15:11:01Z","updated_at":"2013-09-17T15:11:34Z","title":"Page
not found","slug":"404","position":1,"response_type":"text/html","cache_strategy":"none","redirect":false,"redirect_type":301,"listed":true,"published":true,"templatized":false,"templatized_from_parent":false,"fullpath":"404","localized_fullpaths":{"en":"404","es":"es/404"},"depth":0,"translated_in":["en","es"],"raw_template":"Content
of the 404 page","escaped_raw_template":"Content of the 404 page","editable_elements":[]},{"id":"5238712687f643884e000007","_id":"5238712687f643884e000007","created_at":"2013-09-17T15:11:34Z","updated_at":"2013-09-17T15:11:34Z","title":"Products","slug":"products","parent_id":"5238710587f6431df7000007","position":1,"response_type":"text/html","cache_strategy":"none","redirect":false,"redirect_type":301,"listed":true,"published":true,"templatized":false,"templatized_from_parent":false,"fullpath":"products","localized_fullpaths":{"en":"products","es":"es/products"},"depth":1,"translated_in":["en","es"],"raw_template":"{%
extends parent %}","escaped_raw_template":"{% extends parent %}","editable_elements":[],"seo_title":"Search
friendly products","meta_keywords":"fancy, products, keywords","meta_description":"Fancy
products description"}]'
http_version:
recorded_at: Tue, 17 Sep 2013 15:12:16 GMT
- request:
method: get
uri: http://sample.example.com:3000/locomotive/api/pages/5238710587f6431df7000007.json?auth_token=iaWvtP5PhmnyKypXpLbM&locale=es
body:
encoding: US-ASCII
string: ''
headers: {}
response:
status:
code: 200
message: OK
headers:
Date:
- Tue, 17 Sep 2013 15:12:16 GMT
Status:
- 200 OK
Connection:
- close
Content-Type:
- application/json; charset=utf-8
X-Ua-Compatible:
- IE=Edge
Etag:
- '"6499def2ece0125f6b4cebb93d09abc9"'
Cache-Control:
- max-age=0, private, must-revalidate
Set-Cookie:
- _locomotive_session=os1IdX2Qa7j3cjE7EBjxmPtdlks; domain=.example.com; path=/;
HttpOnly
X-Request-Id:
- d6b9a31f4195e92587826c5a5e7428d7
X-Runtime:
- '0.063026'
body:
encoding: UTF-8
string: '{"id":"5238710587f6431df7000007","_id":"5238710587f6431df7000007","created_at":"2013-09-17T15:11:01Z","updated_at":"2013-09-17T15:11:34Z","title":"P\u00e1gina
de inicio","slug":"index","position":0,"response_type":"text/html","cache_strategy":"none","redirect":false,"redirect_type":301,"listed":true,"published":true,"templatized":false,"templatized_from_parent":false,"fullpath":"index","localized_fullpaths":{"en":"","es":"es"},"depth":0,"translated_in":["en","es"],"raw_template":"New
content of the home page\r\n","escaped_raw_template":"New content of the home
page\r\n","editable_elements":[]}'
http_version:
recorded_at: Tue, 17 Sep 2013 15:12:16 GMT
- request:
method: get
uri: http://sample.example.com:3000/locomotive/api/pages/5238710587f6431df7000008.json?auth_token=iaWvtP5PhmnyKypXpLbM&locale=es
body:
encoding: US-ASCII
string: ''
headers: {}
response:
status:
code: 200
message: OK
headers:
Date:
- Tue, 17 Sep 2013 15:12:16 GMT
Status:
- 200 OK
Connection:
- close
Content-Type:
- application/json; charset=utf-8
X-Ua-Compatible:
- IE=Edge
Etag:
- '"d04724071150d907283a4aea3a16f368"'
Cache-Control:
- max-age=0, private, must-revalidate
Set-Cookie:
- _locomotive_session=6jSJJJ1yxeA2UbMdjX9DUHVV7PQ; domain=.example.com; path=/;
HttpOnly
X-Request-Id:
- 0f7ab05f0fdcdd19fa113ac048c3b2d2
X-Runtime:
- '0.055709'
body:
encoding: UTF-8
string: '{"id":"5238710587f6431df7000008","_id":"5238710587f6431df7000008","created_at":"2013-09-17T15:11:01Z","updated_at":"2013-09-17T15:11:34Z","title":"P\u00e1gina
no encontrada","slug":"404","position":1,"response_type":"text/html","cache_strategy":"none","redirect":false,"redirect_type":301,"listed":true,"published":true,"templatized":false,"templatized_from_parent":false,"fullpath":"404","localized_fullpaths":{"en":"404","es":"es/404"},"depth":0,"translated_in":["en","es"],"raw_template":"Content
of the 404 page","escaped_raw_template":"Content of the 404 page","editable_elements":[]}'
http_version:
recorded_at: Tue, 17 Sep 2013 15:12:16 GMT
- request:
method: get
uri: http://sample.example.com:3000/locomotive/api/pages/5238712687f643884e000007.json?auth_token=iaWvtP5PhmnyKypXpLbM&locale=es
body:
encoding: US-ASCII
string: ''
headers: {}
response:
status:
code: 200
message: OK
headers:
Date:
- Tue, 17 Sep 2013 15:12:17 GMT
Status:
- 200 OK
Connection:
- close
Content-Type:
- application/json; charset=utf-8
X-Ua-Compatible:
- IE=Edge
Etag:
- '"df564c6fd92a1e7b3d311fc1183d251b"'
Cache-Control:
- max-age=0, private, must-revalidate
Set-Cookie:
- _locomotive_session=p-z-i3E95clgJIglGSO9y66eiyw; domain=.example.com; path=/;
HttpOnly
X-Request-Id:
- e6ee7287990b9599c362b0fcfcd0437b
X-Runtime:
- '0.052470'
body:
encoding: UTF-8
string: '{"id":"5238712687f643884e000007","_id":"5238712687f643884e000007","created_at":"2013-09-17T15:11:34Z","updated_at":"2013-09-17T15:11:34Z","title":"Products","slug":"products","parent_id":"5238710587f6431df7000007","position":1,"response_type":"text/html","cache_strategy":"none","redirect":false,"redirect_type":301,"listed":true,"published":true,"templatized":false,"templatized_from_parent":false,"fullpath":"products","localized_fullpaths":{"en":"products","es":"es/products"},"depth":1,"translated_in":["en","es"],"raw_template":"{%
extends parent %}","escaped_raw_template":"{% extends parent %}","editable_elements":[],"seo_title":"Productos
SEO","meta_keywords":"palabras, clave, productos","meta_description":"Descripci\u00f3n
molona de los productos"}'
http_version:
recorded_at: Tue, 17 Sep 2013 15:12:17 GMT
- request:
method: get
uri: http://sample.example.com:3000/locomotive/api/theme_assets.json?auth_token=iaWvtP5PhmnyKypXpLbM
body:
encoding: US-ASCII
string: ''
headers: {}
response:
status:
code: 200
message: OK
headers:
Date:
- Tue, 17 Sep 2013 15:12:17 GMT
Status:
- 200 OK
Connection:
- close
Content-Type:
- application/json; charset=utf-8
X-Ua-Compatible:
- IE=Edge
Etag:
- '"d751713988987e9331980363e24189ce"'
Cache-Control:
- max-age=0, private, must-revalidate
Set-Cookie:
- _locomotive_session=XdqVrog3Rbgk2OmJFaRYw-DcVmA; domain=.example.com; path=/;
HttpOnly
X-Request-Id:
- c4ac141a9bc254e03bb98bf4eb4414ba
X-Runtime:
- '0.047978'
body:
encoding: UTF-8
string: '[]'
http_version:
recorded_at: Tue, 17 Sep 2013 15:12:17 GMT
- request:
method: get
uri: http://sample.example.com:3000/locomotive/api/translations.json?auth_token=iaWvtP5PhmnyKypXpLbM
body:
encoding: US-ASCII
string: ''
headers: {}
response:
status:
code: 200
message: OK
headers:
Date:
- Tue, 17 Sep 2013 15:12:17 GMT
Status:
- 200 OK
Connection:
- close
Content-Type:
- application/json; charset=utf-8
X-Ua-Compatible:
- IE=Edge
Etag:
- '"5c1b51393d2233a4df57efd63547d153"'
Cache-Control:
- max-age=0, private, must-revalidate
Set-Cookie:
- _locomotive_session=hl2S9ykpEvEVXdsdeRZidiQnTww; domain=.example.com; path=/;
HttpOnly
X-Request-Id:
- bb32086f3b95d4bf31ff3d7f90e44867
X-Runtime:
- '0.097767'
body:
encoding: UTF-8
string: '[{"id":"5238712587f643884e000005","_id":"5238712587f643884e000005","created_at":"2013-09-17T15:11:33Z","updated_at":"2013-09-17T15:11:33Z","key":"hello_world","values":{"en":"Hello
world!","es":"\u00a1Hola, Mundo!"}}]'
http_version:
recorded_at: Tue, 17 Sep 2013 15:12:17 GMT
- request:
method: post
uri: http://sample.example.com:3000/locomotive/api/tokens.json?auth_token=iaWvtP5PhmnyKypXpLbM
body:
encoding: UTF-8
string: email=admin%40locomotivecms.com&password=locomotive
headers: {}
response:
status:
code: 200
message: OK
headers:
Date:
- Tue, 17 Sep 2013 15:12:28 GMT
Status:
- 200 OK
Connection:
- close
Location:
- http://sample.example.com:3000/locomotive/
Content-Type:
- application/json; charset=utf-8
X-Ua-Compatible:
- IE=Edge
Etag:
- '"d1a90b45e031fb4f87663184c2a67dbd"'
Cache-Control:
- max-age=0, private, must-revalidate
Set-Cookie:
- _locomotive_session=bkPZH81b3iow644MLCcIS1qf5r0; domain=.example.com; path=/;
HttpOnly
X-Request-Id:
- 5d8899400ec6f3e4ebe69c8e264fb52b
X-Runtime:
- '0.040288'
body:
encoding: UTF-8
string: '{"token":"iaWvtP5PhmnyKypXpLbM"}'
http_version:
recorded_at: Tue, 17 Sep 2013 15:12:28 GMT
recorded_with: VCR 2.5.0