locomotivecms_coal 1.0.0.rc1 → 1.0.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +4 -4
- data/lib/locomotive/coal/error.rb +12 -0
- data/lib/locomotive/coal/version.rb +1 -1
- data/spec/fixtures/coal_cassettes/client.yml +98 -128
- data/spec/fixtures/coal_cassettes/content_assets.yml +33 -33
- data/spec/fixtures/coal_cassettes/content_entries.yml +227 -227
- data/spec/fixtures/coal_cassettes/content_types.yml +95 -95
- data/spec/fixtures/coal_cassettes/current_site.yml +35 -33
- data/spec/fixtures/coal_cassettes/memberships.yml +36 -35
- data/spec/fixtures/coal_cassettes/my_account.yml +69 -68
- data/spec/fixtures/coal_cassettes/pages.yml +51 -51
- data/spec/fixtures/coal_cassettes/sites.yml +34 -30
- data/spec/fixtures/coal_cassettes/snippets.yml +32 -32
- data/spec/fixtures/coal_cassettes/theme_assets.yml +35 -35
- data/spec/fixtures/coal_cassettes/token.yml +32 -25
- data/spec/fixtures/coal_cassettes/translations.yml +32 -32
- data/spec/fixtures/coal_cassettes/version.yml +13 -13
- data/spec/unit/error_spec.rb +8 -0
- metadata +3 -3
@@ -23,23 +23,23 @@ http_interactions:
|
|
23
23
|
Content-Type:
|
24
24
|
- application/json
|
25
25
|
Etag:
|
26
|
-
- W/"
|
26
|
+
- W/"120917583ae3f64355d682b690f7cb40"
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
X-Request-Id:
|
30
|
-
-
|
30
|
+
- e47d860b-f453-48f1-893c-d5c19084a28a
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.017475'
|
33
33
|
Content-Length:
|
34
34
|
- '32'
|
35
35
|
body:
|
36
36
|
encoding: UTF-8
|
37
|
-
string: '{"token":"
|
37
|
+
string: '{"token":"E2aoXzMxkFsLnCcmCcc_"}'
|
38
38
|
http_version:
|
39
|
-
recorded_at:
|
39
|
+
recorded_at: Sat, 21 Nov 2015 22:31:00 GMT
|
40
40
|
- request:
|
41
41
|
method: get
|
42
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/pages.json?auth_token=
|
42
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/pages.json?auth_token=E2aoXzMxkFsLnCcmCcc_
|
43
43
|
body:
|
44
44
|
encoding: US-ASCII
|
45
45
|
string: ''
|
@@ -49,7 +49,7 @@ http_interactions:
|
|
49
49
|
X-Locomotive-Account-Email:
|
50
50
|
- admin@locomotivecms.com
|
51
51
|
X-Locomotive-Account-Token:
|
52
|
-
-
|
52
|
+
- E2aoXzMxkFsLnCcmCcc_
|
53
53
|
X-Locomotive-Locale:
|
54
54
|
- en
|
55
55
|
Accept-Encoding:
|
@@ -64,27 +64,27 @@ http_interactions:
|
|
64
64
|
Content-Type:
|
65
65
|
- application/json
|
66
66
|
Etag:
|
67
|
-
- W/"
|
67
|
+
- W/"701b58eb67b1131aa8b3c8aeab5e817b"
|
68
68
|
Cache-Control:
|
69
69
|
- max-age=0, private, must-revalidate
|
70
70
|
X-Request-Id:
|
71
|
-
-
|
71
|
+
- 5dc6e8a6-a6c3-4575-80d2-68fb8524c271
|
72
72
|
X-Runtime:
|
73
|
-
- '0.
|
73
|
+
- '0.030010'
|
74
74
|
Content-Length:
|
75
|
-
- '
|
75
|
+
- '1280'
|
76
76
|
body:
|
77
77
|
encoding: UTF-8
|
78
|
-
string: '[{"_id":"
|
79
|
-
page","parent_id":null,"position":0,"handle":null,"depth":0,"response_type":"text/html","listed":true,"published":true,"translated_in":["en"],"slug":"index","fullpath":"index","localized_fullpaths":{"en":""},"redirect":false,"redirect_url":"","redirect_type":301,"templatized":false,"templatized_from_parent":false,"content_type":null,"is_layout":false,"allow_layout":true,"template":"Content
|
80
|
-
of the home page","editable_elements":[],"seo_title":null,"meta_keywords":null,"meta_description":null},{"_id":"
|
81
|
-
not found","parent_id":null,"position":1,"handle":null,"depth":0,"response_type":"text/html","listed":true,"published":true,"translated_in":["en"],"slug":"404","fullpath":"404","localized_fullpaths":{"en":"404"},"redirect":false,"redirect_url":"","redirect_type":301,"templatized":false,"templatized_from_parent":false,"content_type":null,"is_layout":false,"allow_layout":true,"template":"Content
|
78
|
+
string: '[{"_id":"5650f08c87f6436c94000007","created_at":"2015-11-21T22:30:36Z","updated_at":"2015-11-21T22:30:36Z","title":"Home
|
79
|
+
page","parent_id":null,"position":0,"handle":null,"depth":0,"response_type":"text/html","listed":true,"published":true,"translated_in":["en"],"cache_enabled":true,"slug":"index","fullpath":"index","localized_fullpaths":{"en":""},"redirect":false,"redirect_url":"","redirect_type":301,"templatized":false,"templatized_from_parent":false,"content_type":null,"is_layout":false,"allow_layout":true,"template":"Content
|
80
|
+
of the home page","editable_elements":[],"seo_title":null,"meta_keywords":null,"meta_description":null},{"_id":"5650f08c87f6436c94000008","created_at":"2015-11-21T22:30:36Z","updated_at":"2015-11-21T22:30:36Z","title":"Page
|
81
|
+
not found","parent_id":null,"position":1,"handle":null,"depth":0,"response_type":"text/html","listed":true,"published":true,"translated_in":["en"],"cache_enabled":true,"slug":"404","fullpath":"404","localized_fullpaths":{"en":"404"},"redirect":false,"redirect_url":"","redirect_type":301,"templatized":false,"templatized_from_parent":false,"content_type":null,"is_layout":false,"allow_layout":true,"template":"Content
|
82
82
|
of the 404 page","editable_elements":[],"seo_title":null,"meta_keywords":null,"meta_description":null}]'
|
83
83
|
http_version:
|
84
|
-
recorded_at:
|
84
|
+
recorded_at: Sat, 21 Nov 2015 22:31:00 GMT
|
85
85
|
- request:
|
86
86
|
method: get
|
87
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/pages/fullpaths.json?auth_token=
|
87
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/pages/fullpaths.json?auth_token=E2aoXzMxkFsLnCcmCcc_
|
88
88
|
body:
|
89
89
|
encoding: US-ASCII
|
90
90
|
string: ''
|
@@ -94,7 +94,7 @@ http_interactions:
|
|
94
94
|
X-Locomotive-Account-Email:
|
95
95
|
- admin@locomotivecms.com
|
96
96
|
X-Locomotive-Account-Token:
|
97
|
-
-
|
97
|
+
- E2aoXzMxkFsLnCcmCcc_
|
98
98
|
X-Locomotive-Locale:
|
99
99
|
- en
|
100
100
|
Accept-Encoding:
|
@@ -109,33 +109,33 @@ http_interactions:
|
|
109
109
|
Content-Type:
|
110
110
|
- application/json
|
111
111
|
Etag:
|
112
|
-
- W/"
|
112
|
+
- W/"c2ddbd80985a8cba4f1221be3c2df60c"
|
113
113
|
Cache-Control:
|
114
114
|
- max-age=0, private, must-revalidate
|
115
115
|
X-Request-Id:
|
116
|
-
-
|
116
|
+
- 4aed4455-e50c-48d5-8a95-c6167687376b
|
117
117
|
X-Runtime:
|
118
|
-
- '0.
|
118
|
+
- '0.024727'
|
119
119
|
Content-Length:
|
120
120
|
- '107'
|
121
121
|
body:
|
122
122
|
encoding: UTF-8
|
123
|
-
string: '[{"_id":"
|
123
|
+
string: '[{"_id":"5650f08c87f6436c94000007","fullpath":"index"},{"_id":"5650f08c87f6436c94000008","fullpath":"404"}]'
|
124
124
|
http_version:
|
125
|
-
recorded_at:
|
125
|
+
recorded_at: Sat, 21 Nov 2015 22:31:01 GMT
|
126
126
|
- request:
|
127
127
|
method: post
|
128
128
|
uri: http://localhost:3000/locomotive/sample/api/v3/pages.json
|
129
129
|
body:
|
130
130
|
encoding: UTF-8
|
131
|
-
string: auth_token=
|
131
|
+
string: auth_token=E2aoXzMxkFsLnCcmCcc_&page%5Bparent%5D=index&page%5Bslug%5D=about-us&page%5Btemplate%5D=Locomotive+rocks%21&page%5Btitle%5D=About+us
|
132
132
|
headers:
|
133
133
|
Accept:
|
134
134
|
- application/json
|
135
135
|
X-Locomotive-Account-Email:
|
136
136
|
- admin@locomotivecms.com
|
137
137
|
X-Locomotive-Account-Token:
|
138
|
-
-
|
138
|
+
- E2aoXzMxkFsLnCcmCcc_
|
139
139
|
Content-Type:
|
140
140
|
- application/x-www-form-urlencoded
|
141
141
|
Accept-Encoding:
|
@@ -150,35 +150,35 @@ http_interactions:
|
|
150
150
|
Content-Type:
|
151
151
|
- application/json
|
152
152
|
Etag:
|
153
|
-
- W/"
|
153
|
+
- W/"0ad4f3e8c5c41e6442712c8568c8d5fe"
|
154
154
|
Cache-Control:
|
155
155
|
- max-age=0, private, must-revalidate
|
156
156
|
X-Request-Id:
|
157
|
-
-
|
157
|
+
- 2c613d30-f1ec-4313-882e-0c3acaeef31e
|
158
158
|
X-Runtime:
|
159
|
-
- '0.
|
159
|
+
- '0.052798'
|
160
160
|
Content-Length:
|
161
|
-
- '
|
161
|
+
- '666'
|
162
162
|
body:
|
163
163
|
encoding: UTF-8
|
164
|
-
string: '{"_id":"
|
165
|
-
us","parent_id":"
|
164
|
+
string: '{"_id":"5650f0a587f6436cbc00002d","created_at":"2015-11-21T22:31:01Z","updated_at":"2015-11-21T22:31:01Z","title":"About
|
165
|
+
us","parent_id":"5650f08c87f6436c94000007","position":0,"handle":null,"depth":1,"response_type":"text/html","listed":true,"published":false,"translated_in":["en"],"cache_enabled":true,"slug":"about-us","fullpath":"about-us","localized_fullpaths":{"en":"about-us"},"redirect":false,"redirect_url":"","redirect_type":301,"templatized":false,"templatized_from_parent":false,"content_type":null,"is_layout":false,"allow_layout":true,"template":"Locomotive
|
166
166
|
rocks!","editable_elements":[],"seo_title":null,"meta_keywords":null,"meta_description":null}'
|
167
167
|
http_version:
|
168
|
-
recorded_at:
|
168
|
+
recorded_at: Sat, 21 Nov 2015 22:31:01 GMT
|
169
169
|
- request:
|
170
170
|
method: put
|
171
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/pages/
|
171
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/pages/5650f0a587f6436cbc00002d.json
|
172
172
|
body:
|
173
173
|
encoding: UTF-8
|
174
|
-
string: auth_token=
|
174
|
+
string: auth_token=E2aoXzMxkFsLnCcmCcc_&page%5Btemplate%5D=Locomotive+rocks.+period
|
175
175
|
headers:
|
176
176
|
Accept:
|
177
177
|
- application/json
|
178
178
|
X-Locomotive-Account-Email:
|
179
179
|
- admin@locomotivecms.com
|
180
180
|
X-Locomotive-Account-Token:
|
181
|
-
-
|
181
|
+
- E2aoXzMxkFsLnCcmCcc_
|
182
182
|
X-Locomotive-Locale:
|
183
183
|
- en
|
184
184
|
Content-Type:
|
@@ -195,25 +195,25 @@ http_interactions:
|
|
195
195
|
Content-Type:
|
196
196
|
- application/json
|
197
197
|
Etag:
|
198
|
-
- W/"
|
198
|
+
- W/"bf788f2ae366c8a7e70e7e88a2c06d83"
|
199
199
|
Cache-Control:
|
200
200
|
- max-age=0, private, must-revalidate
|
201
201
|
X-Request-Id:
|
202
|
-
-
|
202
|
+
- 39dc5254-6ff4-4a1e-b302-34dd9dffb99c
|
203
203
|
X-Runtime:
|
204
|
-
- '0.
|
204
|
+
- '0.038577'
|
205
205
|
Content-Length:
|
206
|
-
- '
|
206
|
+
- '673'
|
207
207
|
body:
|
208
208
|
encoding: UTF-8
|
209
|
-
string: '{"_id":"
|
210
|
-
us","parent_id":"
|
209
|
+
string: '{"_id":"5650f0a587f6436cbc00002d","created_at":"2015-11-21T22:31:01Z","updated_at":"2015-11-21T22:31:01Z","title":"About
|
210
|
+
us","parent_id":"5650f08c87f6436c94000007","position":0,"handle":null,"depth":1,"response_type":"text/html","listed":true,"published":false,"translated_in":["en"],"cache_enabled":true,"slug":"about-us","fullpath":"about-us","localized_fullpaths":{"en":"about-us"},"redirect":false,"redirect_url":"","redirect_type":301,"templatized":false,"templatized_from_parent":false,"content_type":null,"is_layout":false,"allow_layout":true,"template":"Locomotive
|
211
211
|
rocks. period","editable_elements":[],"seo_title":null,"meta_keywords":null,"meta_description":null}'
|
212
212
|
http_version:
|
213
|
-
recorded_at:
|
213
|
+
recorded_at: Sat, 21 Nov 2015 22:31:01 GMT
|
214
214
|
- request:
|
215
215
|
method: delete
|
216
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/pages/
|
216
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/pages/5650f0a587f6436cbc00002d.json?auth_token=E2aoXzMxkFsLnCcmCcc_
|
217
217
|
body:
|
218
218
|
encoding: US-ASCII
|
219
219
|
string: ''
|
@@ -223,7 +223,7 @@ http_interactions:
|
|
223
223
|
X-Locomotive-Account-Email:
|
224
224
|
- admin@locomotivecms.com
|
225
225
|
X-Locomotive-Account-Token:
|
226
|
-
-
|
226
|
+
- E2aoXzMxkFsLnCcmCcc_
|
227
227
|
Accept-Encoding:
|
228
228
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
229
229
|
User-Agent:
|
@@ -236,20 +236,20 @@ http_interactions:
|
|
236
236
|
Content-Type:
|
237
237
|
- application/json
|
238
238
|
Etag:
|
239
|
-
- W/"
|
239
|
+
- W/"bf788f2ae366c8a7e70e7e88a2c06d83"
|
240
240
|
Cache-Control:
|
241
241
|
- max-age=0, private, must-revalidate
|
242
242
|
X-Request-Id:
|
243
|
-
-
|
243
|
+
- d785c8f4-22cb-479b-a541-00740552fb7d
|
244
244
|
X-Runtime:
|
245
|
-
- '0.
|
245
|
+
- '0.039751'
|
246
246
|
Content-Length:
|
247
|
-
- '
|
247
|
+
- '673'
|
248
248
|
body:
|
249
249
|
encoding: UTF-8
|
250
|
-
string: '{"_id":"
|
251
|
-
us","parent_id":"
|
250
|
+
string: '{"_id":"5650f0a587f6436cbc00002d","created_at":"2015-11-21T22:31:01Z","updated_at":"2015-11-21T22:31:01Z","title":"About
|
251
|
+
us","parent_id":"5650f08c87f6436c94000007","position":0,"handle":null,"depth":1,"response_type":"text/html","listed":true,"published":false,"translated_in":["en"],"cache_enabled":true,"slug":"about-us","fullpath":"about-us","localized_fullpaths":{"en":"about-us"},"redirect":false,"redirect_url":"","redirect_type":301,"templatized":false,"templatized_from_parent":false,"content_type":null,"is_layout":false,"allow_layout":true,"template":"Locomotive
|
252
252
|
rocks. period","editable_elements":[],"seo_title":null,"meta_keywords":null,"meta_description":null}'
|
253
253
|
http_version:
|
254
|
-
recorded_at:
|
254
|
+
recorded_at: Sat, 21 Nov 2015 22:31:01 GMT
|
255
255
|
recorded_with: VCR 2.9.3
|
@@ -23,23 +23,23 @@ http_interactions:
|
|
23
23
|
Content-Type:
|
24
24
|
- application/json
|
25
25
|
Etag:
|
26
|
-
- W/"
|
26
|
+
- W/"120917583ae3f64355d682b690f7cb40"
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
X-Request-Id:
|
30
|
-
-
|
30
|
+
- 7ea64e94-d6ee-4f5c-8069-fe2c99261cdc
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.017257'
|
33
33
|
Content-Length:
|
34
34
|
- '32'
|
35
35
|
body:
|
36
36
|
encoding: UTF-8
|
37
|
-
string: '{"token":"
|
37
|
+
string: '{"token":"E2aoXzMxkFsLnCcmCcc_"}'
|
38
38
|
http_version:
|
39
|
-
recorded_at:
|
39
|
+
recorded_at: Sat, 21 Nov 2015 22:31:00 GMT
|
40
40
|
- request:
|
41
41
|
method: get
|
42
|
-
uri: http://localhost:3000/locomotive/api/v3/sites.json?auth_token=
|
42
|
+
uri: http://localhost:3000/locomotive/api/v3/sites.json?auth_token=E2aoXzMxkFsLnCcmCcc_
|
43
43
|
body:
|
44
44
|
encoding: US-ASCII
|
45
45
|
string: ''
|
@@ -49,7 +49,7 @@ http_interactions:
|
|
49
49
|
X-Locomotive-Account-Email:
|
50
50
|
- admin@locomotivecms.com
|
51
51
|
X-Locomotive-Account-Token:
|
52
|
-
-
|
52
|
+
- E2aoXzMxkFsLnCcmCcc_
|
53
53
|
Accept-Encoding:
|
54
54
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
55
55
|
User-Agent:
|
@@ -62,34 +62,36 @@ http_interactions:
|
|
62
62
|
Content-Type:
|
63
63
|
- application/json
|
64
64
|
Etag:
|
65
|
-
- W/"
|
65
|
+
- W/"3a8a8abe91f933f0044deaa41db1e962"
|
66
66
|
Cache-Control:
|
67
67
|
- max-age=0, private, must-revalidate
|
68
68
|
X-Request-Id:
|
69
|
-
-
|
69
|
+
- 1870bfe2-f33b-41f9-8a52-7803eff9fcd5
|
70
70
|
X-Runtime:
|
71
|
-
- '0.
|
71
|
+
- '0.059006'
|
72
72
|
Content-Length:
|
73
|
-
- '
|
73
|
+
- '1524'
|
74
74
|
body:
|
75
75
|
encoding: UTF-8
|
76
|
-
string: '[{"_id":"
|
77
|
-
Doe","
|
76
|
+
string: '[{"_id":"5650f08c87f6436c94000002","created_at":"2015-11-21T22:30:36Z","updated_at":"2015-11-21T22:30:36Z","name":"LocomotiveCMS","handle":"www","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"cache_enabled":false,"locales":["en"],"domains":["www.example.com"],"memberships":[{"_id":"5650f08c87f6436c94000005","created_at":null,"updated_at":null,"role":"admin","account_id":"5650f08c87f6436c94000000","name":"John
|
77
|
+
Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"content_version":1448145036,"template_version":1448145036,"picture_thumbnail_url":null,"preview_url":"http://localhost:3000/locomotive/www/preview","sign_in_url":"http://localhost:3000/locomotive/sign_in"},{"_id":"5650f08c87f6436c94000006","created_at":"2015-11-21T22:30:36Z","updated_at":"2015-11-21T22:31:00Z","name":"Sample
|
78
|
+
site","handle":"sample","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"cache_enabled":false,"locales":["en"],"domains":["sample.example.com"],"memberships":[{"_id":"5650f08c87f6436c94000009","created_at":null,"updated_at":null,"role":"admin","account_id":"5650f08c87f6436c94000000","name":"John
|
79
|
+
Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"content_version":1448145060,"template_version":1448145058,"picture_thumbnail_url":null,"preview_url":"http://localhost:3000/locomotive/sample/preview","sign_in_url":"http://localhost:3000/locomotive/sign_in"}]'
|
78
80
|
http_version:
|
79
|
-
recorded_at:
|
81
|
+
recorded_at: Sat, 21 Nov 2015 22:31:00 GMT
|
80
82
|
- request:
|
81
83
|
method: post
|
82
84
|
uri: http://localhost:3000/locomotive/api/v3/sites.json
|
83
85
|
body:
|
84
86
|
encoding: UTF-8
|
85
|
-
string: auth_token=
|
87
|
+
string: auth_token=E2aoXzMxkFsLnCcmCcc_&site%5Bhandle%5D=acme&site%5Blocales%5D%5B%5D=en&site%5Bname%5D=Acme
|
86
88
|
headers:
|
87
89
|
Accept:
|
88
90
|
- application/json
|
89
91
|
X-Locomotive-Account-Email:
|
90
92
|
- admin@locomotivecms.com
|
91
93
|
X-Locomotive-Account-Token:
|
92
|
-
-
|
94
|
+
- E2aoXzMxkFsLnCcmCcc_
|
93
95
|
Content-Type:
|
94
96
|
- application/x-www-form-urlencoded
|
95
97
|
Accept-Encoding:
|
@@ -104,23 +106,24 @@ http_interactions:
|
|
104
106
|
Content-Type:
|
105
107
|
- application/json
|
106
108
|
Etag:
|
107
|
-
- W/"
|
109
|
+
- W/"1e7b3b53216ac2d81db62af9f5c21b67"
|
108
110
|
Cache-Control:
|
109
111
|
- max-age=0, private, must-revalidate
|
110
112
|
X-Request-Id:
|
111
|
-
-
|
113
|
+
- d4426626-4211-498d-9d6d-91d2159c9de5
|
112
114
|
X-Runtime:
|
113
|
-
- '0.
|
115
|
+
- '0.131513'
|
114
116
|
Content-Length:
|
115
|
-
- '
|
117
|
+
- '744'
|
116
118
|
body:
|
117
119
|
encoding: UTF-8
|
118
|
-
string: '{"_id":"
|
120
|
+
string: '{"_id":"5650f0a487f6436cbc000028","created_at":"2015-11-21T22:31:00Z","updated_at":"2015-11-21T22:31:00Z","name":"Acme","handle":"lush-dawn-5649","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"cache_enabled":false,"locales":["en"],"domains":[],"memberships":[{"_id":"5650f0a487f6436cbc000029","created_at":null,"updated_at":null,"role":"admin","account_id":"5650f08c87f6436c94000000","name":"John
|
121
|
+
Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"content_version":0,"template_version":1448145060,"picture_thumbnail_url":null,"preview_url":"http://localhost:3000/locomotive/lush-dawn-5649/preview","sign_in_url":"http://localhost:3000/locomotive/sign_in"}'
|
119
122
|
http_version:
|
120
|
-
recorded_at:
|
123
|
+
recorded_at: Sat, 21 Nov 2015 22:31:00 GMT
|
121
124
|
- request:
|
122
125
|
method: delete
|
123
|
-
uri: http://localhost:3000/locomotive/api/v3/sites/
|
126
|
+
uri: http://localhost:3000/locomotive/api/v3/sites/5650f0a487f6436cbc000028.json?auth_token=E2aoXzMxkFsLnCcmCcc_
|
124
127
|
body:
|
125
128
|
encoding: US-ASCII
|
126
129
|
string: ''
|
@@ -130,7 +133,7 @@ http_interactions:
|
|
130
133
|
X-Locomotive-Account-Email:
|
131
134
|
- admin@locomotivecms.com
|
132
135
|
X-Locomotive-Account-Token:
|
133
|
-
-
|
136
|
+
- E2aoXzMxkFsLnCcmCcc_
|
134
137
|
Accept-Encoding:
|
135
138
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
136
139
|
User-Agent:
|
@@ -143,18 +146,19 @@ http_interactions:
|
|
143
146
|
Content-Type:
|
144
147
|
- application/json
|
145
148
|
Etag:
|
146
|
-
- W/"
|
149
|
+
- W/"1e7b3b53216ac2d81db62af9f5c21b67"
|
147
150
|
Cache-Control:
|
148
151
|
- max-age=0, private, must-revalidate
|
149
152
|
X-Request-Id:
|
150
|
-
-
|
153
|
+
- c6474f4e-002f-485d-b834-3ec9db5047a3
|
151
154
|
X-Runtime:
|
152
|
-
- '0.
|
155
|
+
- '0.102743'
|
153
156
|
Content-Length:
|
154
|
-
- '
|
157
|
+
- '744'
|
155
158
|
body:
|
156
159
|
encoding: UTF-8
|
157
|
-
string: '{"_id":"
|
160
|
+
string: '{"_id":"5650f0a487f6436cbc000028","created_at":"2015-11-21T22:31:00Z","updated_at":"2015-11-21T22:31:00Z","name":"Acme","handle":"lush-dawn-5649","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"cache_enabled":false,"locales":["en"],"domains":[],"memberships":[{"_id":"5650f0a487f6436cbc000029","created_at":null,"updated_at":null,"role":"admin","account_id":"5650f08c87f6436c94000000","name":"John
|
161
|
+
Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"content_version":0,"template_version":1448145060,"picture_thumbnail_url":null,"preview_url":"http://localhost:3000/locomotive/lush-dawn-5649/preview","sign_in_url":"http://localhost:3000/locomotive/sign_in"}'
|
158
162
|
http_version:
|
159
|
-
recorded_at:
|
163
|
+
recorded_at: Sat, 21 Nov 2015 22:31:00 GMT
|
160
164
|
recorded_with: VCR 2.9.3
|
@@ -23,23 +23,23 @@ http_interactions:
|
|
23
23
|
Content-Type:
|
24
24
|
- application/json
|
25
25
|
Etag:
|
26
|
-
- W/"
|
26
|
+
- W/"120917583ae3f64355d682b690f7cb40"
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
X-Request-Id:
|
30
|
-
-
|
30
|
+
- 4eae4a97-dd60-436a-88f1-6edd44c7f699
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.017439'
|
33
33
|
Content-Length:
|
34
34
|
- '32'
|
35
35
|
body:
|
36
36
|
encoding: UTF-8
|
37
|
-
string: '{"token":"
|
37
|
+
string: '{"token":"E2aoXzMxkFsLnCcmCcc_"}'
|
38
38
|
http_version:
|
39
|
-
recorded_at:
|
39
|
+
recorded_at: Sat, 21 Nov 2015 22:31:02 GMT
|
40
40
|
- request:
|
41
41
|
method: get
|
42
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/snippets.json?auth_token=
|
42
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/snippets.json?auth_token=E2aoXzMxkFsLnCcmCcc_
|
43
43
|
body:
|
44
44
|
encoding: US-ASCII
|
45
45
|
string: ''
|
@@ -49,7 +49,7 @@ http_interactions:
|
|
49
49
|
X-Locomotive-Account-Email:
|
50
50
|
- admin@locomotivecms.com
|
51
51
|
X-Locomotive-Account-Token:
|
52
|
-
-
|
52
|
+
- E2aoXzMxkFsLnCcmCcc_
|
53
53
|
X-Locomotive-Locale:
|
54
54
|
- ''
|
55
55
|
Accept-Encoding:
|
@@ -68,29 +68,29 @@ http_interactions:
|
|
68
68
|
Cache-Control:
|
69
69
|
- max-age=0, private, must-revalidate
|
70
70
|
X-Request-Id:
|
71
|
-
-
|
71
|
+
- 3e37c92f-728f-4f73-95cd-ed3741b8cbf3
|
72
72
|
X-Runtime:
|
73
|
-
- '0.
|
73
|
+
- '0.025702'
|
74
74
|
Content-Length:
|
75
75
|
- '2'
|
76
76
|
body:
|
77
77
|
encoding: UTF-8
|
78
78
|
string: "[]"
|
79
79
|
http_version:
|
80
|
-
recorded_at:
|
80
|
+
recorded_at: Sat, 21 Nov 2015 22:31:02 GMT
|
81
81
|
- request:
|
82
82
|
method: post
|
83
83
|
uri: http://localhost:3000/locomotive/sample/api/v3/snippets.json
|
84
84
|
body:
|
85
85
|
encoding: UTF-8
|
86
|
-
string: auth_token=
|
86
|
+
string: auth_token=E2aoXzMxkFsLnCcmCcc_&snippet%5Bname%5D=Footer&snippet%5Bslug%5D=footer&snippet%5Btemplate%5D=Locomotive+rocks%21
|
87
87
|
headers:
|
88
88
|
Accept:
|
89
89
|
- application/json
|
90
90
|
X-Locomotive-Account-Email:
|
91
91
|
- admin@locomotivecms.com
|
92
92
|
X-Locomotive-Account-Token:
|
93
|
-
-
|
93
|
+
- E2aoXzMxkFsLnCcmCcc_
|
94
94
|
Content-Type:
|
95
95
|
- application/x-www-form-urlencoded
|
96
96
|
Accept-Encoding:
|
@@ -105,34 +105,34 @@ http_interactions:
|
|
105
105
|
Content-Type:
|
106
106
|
- application/json
|
107
107
|
Etag:
|
108
|
-
- W/"
|
108
|
+
- W/"6fd1f8f58519ef71254fe50d4d56924f"
|
109
109
|
Cache-Control:
|
110
110
|
- max-age=0, private, must-revalidate
|
111
111
|
X-Request-Id:
|
112
|
-
-
|
112
|
+
- 10a0da9c-44aa-49fc-8362-f77567158951
|
113
113
|
X-Runtime:
|
114
|
-
- '0.
|
114
|
+
- '0.037070'
|
115
115
|
Content-Length:
|
116
116
|
- '169'
|
117
117
|
body:
|
118
118
|
encoding: UTF-8
|
119
|
-
string: '{"_id":"
|
119
|
+
string: '{"_id":"5650f0a687f6436cbc000033","created_at":"2015-11-21T22:31:02Z","updated_at":"2015-11-21T22:31:02Z","name":"Footer","slug":"footer","template":"Locomotive
|
120
120
|
rocks!"}'
|
121
121
|
http_version:
|
122
|
-
recorded_at:
|
122
|
+
recorded_at: Sat, 21 Nov 2015 22:31:02 GMT
|
123
123
|
- request:
|
124
124
|
method: put
|
125
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/snippets/
|
125
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/snippets/5650f0a687f6436cbc000033.json
|
126
126
|
body:
|
127
127
|
encoding: UTF-8
|
128
|
-
string: auth_token=
|
128
|
+
string: auth_token=E2aoXzMxkFsLnCcmCcc_&snippet%5Btemplate%5D=Locomotive+rocks.+period
|
129
129
|
headers:
|
130
130
|
Accept:
|
131
131
|
- application/json
|
132
132
|
X-Locomotive-Account-Email:
|
133
133
|
- admin@locomotivecms.com
|
134
134
|
X-Locomotive-Account-Token:
|
135
|
-
-
|
135
|
+
- E2aoXzMxkFsLnCcmCcc_
|
136
136
|
Content-Type:
|
137
137
|
- application/x-www-form-urlencoded
|
138
138
|
Accept-Encoding:
|
@@ -147,24 +147,24 @@ http_interactions:
|
|
147
147
|
Content-Type:
|
148
148
|
- application/json
|
149
149
|
Etag:
|
150
|
-
- W/"
|
150
|
+
- W/"325fba36719f0a2bff11a2e9ee5e33f4"
|
151
151
|
Cache-Control:
|
152
152
|
- max-age=0, private, must-revalidate
|
153
153
|
X-Request-Id:
|
154
|
-
-
|
154
|
+
- b9308197-8d1a-41b4-a922-073787811d07
|
155
155
|
X-Runtime:
|
156
|
-
- '0.
|
156
|
+
- '0.034344'
|
157
157
|
Content-Length:
|
158
158
|
- '176'
|
159
159
|
body:
|
160
160
|
encoding: UTF-8
|
161
|
-
string: '{"_id":"
|
161
|
+
string: '{"_id":"5650f0a687f6436cbc000033","created_at":"2015-11-21T22:31:02Z","updated_at":"2015-11-21T22:31:02Z","name":"Footer","slug":"footer","template":"Locomotive
|
162
162
|
rocks. period"}'
|
163
163
|
http_version:
|
164
|
-
recorded_at:
|
164
|
+
recorded_at: Sat, 21 Nov 2015 22:31:02 GMT
|
165
165
|
- request:
|
166
166
|
method: delete
|
167
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/snippets/
|
167
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/snippets/5650f0a687f6436cbc000033.json?auth_token=E2aoXzMxkFsLnCcmCcc_
|
168
168
|
body:
|
169
169
|
encoding: US-ASCII
|
170
170
|
string: ''
|
@@ -174,7 +174,7 @@ http_interactions:
|
|
174
174
|
X-Locomotive-Account-Email:
|
175
175
|
- admin@locomotivecms.com
|
176
176
|
X-Locomotive-Account-Token:
|
177
|
-
-
|
177
|
+
- E2aoXzMxkFsLnCcmCcc_
|
178
178
|
Accept-Encoding:
|
179
179
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
180
180
|
User-Agent:
|
@@ -187,19 +187,19 @@ http_interactions:
|
|
187
187
|
Content-Type:
|
188
188
|
- application/json
|
189
189
|
Etag:
|
190
|
-
- W/"
|
190
|
+
- W/"325fba36719f0a2bff11a2e9ee5e33f4"
|
191
191
|
Cache-Control:
|
192
192
|
- max-age=0, private, must-revalidate
|
193
193
|
X-Request-Id:
|
194
|
-
-
|
194
|
+
- 357b0f60-db70-4d47-a92c-3442d9d563da
|
195
195
|
X-Runtime:
|
196
|
-
- '0.
|
196
|
+
- '0.042417'
|
197
197
|
Content-Length:
|
198
198
|
- '176'
|
199
199
|
body:
|
200
200
|
encoding: UTF-8
|
201
|
-
string: '{"_id":"
|
201
|
+
string: '{"_id":"5650f0a687f6436cbc000033","created_at":"2015-11-21T22:31:02Z","updated_at":"2015-11-21T22:31:02Z","name":"Footer","slug":"footer","template":"Locomotive
|
202
202
|
rocks. period"}'
|
203
203
|
http_version:
|
204
|
-
recorded_at:
|
204
|
+
recorded_at: Sat, 21 Nov 2015 22:31:02 GMT
|
205
205
|
recorded_with: VCR 2.9.3
|