locomotivecms_coal 1.0.0.pre.beta.1 → 1.0.0.pre.beta.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/locomotive/coal/resources/concerns/request.rb +24 -1
- data/lib/locomotive/coal/version.rb +1 -1
- data/spec/fixtures/coal_cassettes/client.yml +81 -86
- data/spec/fixtures/coal_cassettes/content_assets.yml +33 -33
- data/spec/fixtures/coal_cassettes/content_entries.yml +225 -225
- data/spec/fixtures/coal_cassettes/content_types.yml +88 -88
- data/spec/fixtures/coal_cassettes/current_site.yml +21 -21
- data/spec/fixtures/coal_cassettes/memberships.yml +34 -34
- data/spec/fixtures/coal_cassettes/my_account.yml +68 -68
- data/spec/fixtures/coal_cassettes/pages.yml +45 -45
- data/spec/fixtures/coal_cassettes/sites.yml +30 -34
- data/spec/fixtures/coal_cassettes/snippets.yml +32 -32
- data/spec/fixtures/coal_cassettes/theme_assets.yml +32 -32
- data/spec/fixtures/coal_cassettes/token.yml +8 -8
- data/spec/fixtures/coal_cassettes/translations.yml +32 -32
- data/spec/fixtures/coal_cassettes/version.yml +10 -10
- metadata +2 -2
@@ -23,23 +23,23 @@ http_interactions:
|
|
23
23
|
Content-Type:
|
24
24
|
- application/json
|
25
25
|
Etag:
|
26
|
-
- W/"
|
26
|
+
- W/"3b6ceb0d2ba232a8d48dd0dc8f702ef4"
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
X-Request-Id:
|
30
|
-
-
|
30
|
+
- f2b95c9b-9579-4bec-9ed2-481774937749
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.015571'
|
33
33
|
Content-Length:
|
34
34
|
- '32'
|
35
35
|
body:
|
36
36
|
encoding: UTF-8
|
37
|
-
string: '{"token":"
|
37
|
+
string: '{"token":"xM_3r1zn2aQAinPFqSvd"}'
|
38
38
|
http_version:
|
39
|
-
recorded_at:
|
39
|
+
recorded_at: Tue, 11 Aug 2015 13:12:34 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=xM_3r1zn2aQAinPFqSvd
|
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
|
+
- xM_3r1zn2aQAinPFqSvd
|
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/"b560f0cd7ca7a3d06fbb90062dc52705"
|
68
68
|
Cache-Control:
|
69
69
|
- max-age=0, private, must-revalidate
|
70
70
|
X-Request-Id:
|
71
|
-
-
|
71
|
+
- 08f2569d-8d75-4b04-b7d8-85a14ac907d3
|
72
72
|
X-Runtime:
|
73
|
-
- '0.
|
73
|
+
- '0.073525'
|
74
74
|
Content-Length:
|
75
75
|
- '1238'
|
76
76
|
body:
|
77
77
|
encoding: UTF-8
|
78
|
-
string: '[{"_id":"
|
78
|
+
string: '[{"_id":"55c9f4a487f6432a1e000007","created_at":"2015-08-11T13:12:04Z","updated_at":"2015-08-11T13:12:04Z","title":"Home
|
79
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":"
|
80
|
+
of the home page","editable_elements":[],"seo_title":null,"meta_keywords":null,"meta_description":null},{"_id":"55c9f4a487f6432a1e000008","created_at":"2015-08-11T13:12:04Z","updated_at":"2015-08-11T13:12:04Z","title":"Page
|
81
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
|
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: Tue, 11 Aug 2015 13:12:34 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=xM_3r1zn2aQAinPFqSvd
|
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
|
+
- xM_3r1zn2aQAinPFqSvd
|
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/"b8082f61c1bbeff9afc417ce8be2c09c"
|
113
113
|
Cache-Control:
|
114
114
|
- max-age=0, private, must-revalidate
|
115
115
|
X-Request-Id:
|
116
|
-
-
|
116
|
+
- c9c185a1-4892-4892-b136-095bf36dea83
|
117
117
|
X-Runtime:
|
118
|
-
- '0.
|
118
|
+
- '0.020004'
|
119
119
|
Content-Length:
|
120
120
|
- '107'
|
121
121
|
body:
|
122
122
|
encoding: UTF-8
|
123
|
-
string: '[{"_id":"
|
123
|
+
string: '[{"_id":"55c9f4a487f6432a1e000007","fullpath":"index"},{"_id":"55c9f4a487f6432a1e000008","fullpath":"404"}]'
|
124
124
|
http_version:
|
125
|
-
recorded_at:
|
125
|
+
recorded_at: Tue, 11 Aug 2015 13:12:34 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=xM_3r1zn2aQAinPFqSvd&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
|
+
- xM_3r1zn2aQAinPFqSvd
|
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/"adc28d2bd4d1eb01dcb7cd5569456207"
|
154
154
|
Cache-Control:
|
155
155
|
- max-age=0, private, must-revalidate
|
156
156
|
X-Request-Id:
|
157
|
-
-
|
157
|
+
- c99e4ac7-0bb3-4d1e-8253-78dfa3df297b
|
158
158
|
X-Runtime:
|
159
|
-
- '0.
|
159
|
+
- '0.071608'
|
160
160
|
Content-Length:
|
161
161
|
- '645'
|
162
162
|
body:
|
163
163
|
encoding: UTF-8
|
164
|
-
string: '{"_id":"
|
165
|
-
us","parent_id":"
|
164
|
+
string: '{"_id":"55c9f4c287f6432a3b000001","created_at":"2015-08-11T13:12:34Z","updated_at":"2015-08-11T13:12:34Z","title":"About
|
165
|
+
us","parent_id":"55c9f4a487f6432a1e000007","position":0,"handle":null,"depth":1,"response_type":"text/html","listed":true,"published":false,"translated_in":["en"],"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: Tue, 11 Aug 2015 13:12:34 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/55c9f4c287f6432a3b000001.json
|
172
172
|
body:
|
173
173
|
encoding: UTF-8
|
174
|
-
string: auth_token=
|
174
|
+
string: auth_token=xM_3r1zn2aQAinPFqSvd&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
|
+
- xM_3r1zn2aQAinPFqSvd
|
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/"a1efe1ca85580a6e82964c2b608f4b58"
|
199
199
|
Cache-Control:
|
200
200
|
- max-age=0, private, must-revalidate
|
201
201
|
X-Request-Id:
|
202
|
-
-
|
202
|
+
- cf417f0f-2a2f-45ed-b3a8-c27848b25ae8
|
203
203
|
X-Runtime:
|
204
|
-
- '0.
|
204
|
+
- '0.056838'
|
205
205
|
Content-Length:
|
206
206
|
- '652'
|
207
207
|
body:
|
208
208
|
encoding: UTF-8
|
209
|
-
string: '{"_id":"
|
210
|
-
us","parent_id":"
|
209
|
+
string: '{"_id":"55c9f4c287f6432a3b000001","created_at":"2015-08-11T13:12:34Z","updated_at":"2015-08-11T13:12:34Z","title":"About
|
210
|
+
us","parent_id":"55c9f4a487f6432a1e000007","position":0,"handle":null,"depth":1,"response_type":"text/html","listed":true,"published":false,"translated_in":["en"],"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: Tue, 11 Aug 2015 13:12:34 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/55c9f4c287f6432a3b000001.json?auth_token=xM_3r1zn2aQAinPFqSvd
|
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
|
+
- xM_3r1zn2aQAinPFqSvd
|
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/"a1efe1ca85580a6e82964c2b608f4b58"
|
240
240
|
Cache-Control:
|
241
241
|
- max-age=0, private, must-revalidate
|
242
242
|
X-Request-Id:
|
243
|
-
-
|
243
|
+
- e6d03da6-d1af-4c70-88c5-3264bf5a6907
|
244
244
|
X-Runtime:
|
245
|
-
- '0.
|
245
|
+
- '0.056284'
|
246
246
|
Content-Length:
|
247
247
|
- '652'
|
248
248
|
body:
|
249
249
|
encoding: UTF-8
|
250
|
-
string: '{"_id":"
|
251
|
-
us","parent_id":"
|
250
|
+
string: '{"_id":"55c9f4c287f6432a3b000001","created_at":"2015-08-11T13:12:34Z","updated_at":"2015-08-11T13:12:34Z","title":"About
|
251
|
+
us","parent_id":"55c9f4a487f6432a1e000007","position":0,"handle":null,"depth":1,"response_type":"text/html","listed":true,"published":false,"translated_in":["en"],"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: Tue, 11 Aug 2015 13:12:34 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/"3b6ceb0d2ba232a8d48dd0dc8f702ef4"
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
X-Request-Id:
|
30
|
-
-
|
30
|
+
- bbb75b32-ad76-4510-aff8-42f90e84ff08
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.015751'
|
33
33
|
Content-Length:
|
34
34
|
- '32'
|
35
35
|
body:
|
36
36
|
encoding: UTF-8
|
37
|
-
string: '{"token":"
|
37
|
+
string: '{"token":"xM_3r1zn2aQAinPFqSvd"}'
|
38
38
|
http_version:
|
39
|
-
recorded_at:
|
39
|
+
recorded_at: Tue, 11 Aug 2015 13:12:38 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=xM_3r1zn2aQAinPFqSvd
|
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
|
+
- xM_3r1zn2aQAinPFqSvd
|
53
53
|
Accept-Encoding:
|
54
54
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
55
55
|
User-Agent:
|
@@ -62,36 +62,34 @@ http_interactions:
|
|
62
62
|
Content-Type:
|
63
63
|
- application/json
|
64
64
|
Etag:
|
65
|
-
- W/"
|
65
|
+
- W/"e98c3f1e3ad87ab3eb5f6a4ca52de628"
|
66
66
|
Cache-Control:
|
67
67
|
- max-age=0, private, must-revalidate
|
68
68
|
X-Request-Id:
|
69
|
-
-
|
69
|
+
- 741aaebf-68f2-4d90-af1f-1c82104250e5
|
70
70
|
X-Runtime:
|
71
|
-
- '0.
|
71
|
+
- '0.027081'
|
72
72
|
Content-Length:
|
73
|
-
- '
|
73
|
+
- '1114'
|
74
74
|
body:
|
75
75
|
encoding: UTF-8
|
76
|
-
string: '[{"_id":"
|
77
|
-
Doe","
|
78
|
-
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
|
79
|
-
Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null}]'
|
76
|
+
string: '[{"_id":"55c9f4a387f6432a1e000002","created_at":"2015-08-11T13:12:03Z","updated_at":"2015-08-11T13:12:04Z","name":"LocomotiveCMS","handle":"www","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":["www.example.com"],"memberships":[{"_id":"55c9f4a487f6432a1e000005","created_at":null,"updated_at":null,"role":"admin","account_id":"55c9f4a387f6432a1e000000","name":"Admin","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null},{"_id":"55c9f4a487f6432a1e000006","created_at":"2015-08-11T13:12:04Z","updated_at":"2015-08-11T13:12:34Z","name":"John
|
77
|
+
Doe","handle":"sample","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":["sample.example.com"],"memberships":[{"_id":"55c9f4a487f6432a1e000009","created_at":null,"updated_at":null,"role":"admin","account_id":"55c9f4a387f6432a1e000000","name":"Admin","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null}]'
|
80
78
|
http_version:
|
81
|
-
recorded_at:
|
79
|
+
recorded_at: Tue, 11 Aug 2015 13:12:38 GMT
|
82
80
|
- request:
|
83
81
|
method: post
|
84
82
|
uri: http://localhost:3000/locomotive/api/v3/sites.json
|
85
83
|
body:
|
86
84
|
encoding: UTF-8
|
87
|
-
string: auth_token=
|
85
|
+
string: auth_token=xM_3r1zn2aQAinPFqSvd&site%5Bhandle%5D=acme&site%5Blocales%5D%5B%5D=en&site%5Bname%5D=Acme
|
88
86
|
headers:
|
89
87
|
Accept:
|
90
88
|
- application/json
|
91
89
|
X-Locomotive-Account-Email:
|
92
90
|
- admin@locomotivecms.com
|
93
91
|
X-Locomotive-Account-Token:
|
94
|
-
-
|
92
|
+
- xM_3r1zn2aQAinPFqSvd
|
95
93
|
Content-Type:
|
96
94
|
- application/x-www-form-urlencoded
|
97
95
|
Accept-Encoding:
|
@@ -106,24 +104,23 @@ http_interactions:
|
|
106
104
|
Content-Type:
|
107
105
|
- application/json
|
108
106
|
Etag:
|
109
|
-
- W/"
|
107
|
+
- W/"5b9a1510813905ff23c637a734d9f247"
|
110
108
|
Cache-Control:
|
111
109
|
- max-age=0, private, must-revalidate
|
112
110
|
X-Request-Id:
|
113
|
-
-
|
111
|
+
- df77e333-7139-4157-8e0f-0e50df0e3e42
|
114
112
|
X-Runtime:
|
115
|
-
- '0.
|
113
|
+
- '0.078447'
|
116
114
|
Content-Length:
|
117
|
-
- '
|
115
|
+
- '530'
|
118
116
|
body:
|
119
117
|
encoding: UTF-8
|
120
|
-
string: '{"_id":"
|
121
|
-
Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null}'
|
118
|
+
string: '{"_id":"55c9f4c687f6432a3b00002d","created_at":"2015-08-11T13:12:38Z","updated_at":"2015-08-11T13:12:38Z","name":"Acme","handle":"acme","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":[],"memberships":[{"_id":"55c9f4c687f6432a3b00002e","created_at":null,"updated_at":null,"role":"admin","account_id":"55c9f4a387f6432a1e000000","name":"Admin","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null}'
|
122
119
|
http_version:
|
123
|
-
recorded_at:
|
120
|
+
recorded_at: Tue, 11 Aug 2015 13:12:39 GMT
|
124
121
|
- request:
|
125
122
|
method: delete
|
126
|
-
uri: http://localhost:3000/locomotive/api/v3/sites/
|
123
|
+
uri: http://localhost:3000/locomotive/api/v3/sites/55c9f4c687f6432a3b00002d.json?auth_token=xM_3r1zn2aQAinPFqSvd
|
127
124
|
body:
|
128
125
|
encoding: US-ASCII
|
129
126
|
string: ''
|
@@ -133,7 +130,7 @@ http_interactions:
|
|
133
130
|
X-Locomotive-Account-Email:
|
134
131
|
- admin@locomotivecms.com
|
135
132
|
X-Locomotive-Account-Token:
|
136
|
-
-
|
133
|
+
- xM_3r1zn2aQAinPFqSvd
|
137
134
|
Accept-Encoding:
|
138
135
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
139
136
|
User-Agent:
|
@@ -146,19 +143,18 @@ http_interactions:
|
|
146
143
|
Content-Type:
|
147
144
|
- application/json
|
148
145
|
Etag:
|
149
|
-
- W/"
|
146
|
+
- W/"5b9a1510813905ff23c637a734d9f247"
|
150
147
|
Cache-Control:
|
151
148
|
- max-age=0, private, must-revalidate
|
152
149
|
X-Request-Id:
|
153
|
-
-
|
150
|
+
- 0e6734ec-6aea-4b1a-ace3-7af614250380
|
154
151
|
X-Runtime:
|
155
|
-
- '0.
|
152
|
+
- '0.071913'
|
156
153
|
Content-Length:
|
157
|
-
- '
|
154
|
+
- '530'
|
158
155
|
body:
|
159
156
|
encoding: UTF-8
|
160
|
-
string: '{"_id":"
|
161
|
-
Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null}'
|
157
|
+
string: '{"_id":"55c9f4c687f6432a3b00002d","created_at":"2015-08-11T13:12:38Z","updated_at":"2015-08-11T13:12:38Z","name":"Acme","handle":"acme","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":[],"memberships":[{"_id":"55c9f4c687f6432a3b00002e","created_at":null,"updated_at":null,"role":"admin","account_id":"55c9f4a387f6432a1e000000","name":"Admin","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null}'
|
162
158
|
http_version:
|
163
|
-
recorded_at:
|
159
|
+
recorded_at: Tue, 11 Aug 2015 13:12:39 GMT
|
164
160
|
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/"3b6ceb0d2ba232a8d48dd0dc8f702ef4"
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
X-Request-Id:
|
30
|
-
-
|
30
|
+
- e1590e5f-7ca3-4ded-b644-9d075619a6c0
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.014182'
|
33
33
|
Content-Length:
|
34
34
|
- '32'
|
35
35
|
body:
|
36
36
|
encoding: UTF-8
|
37
|
-
string: '{"token":"
|
37
|
+
string: '{"token":"xM_3r1zn2aQAinPFqSvd"}'
|
38
38
|
http_version:
|
39
|
-
recorded_at:
|
39
|
+
recorded_at: Tue, 11 Aug 2015 13:12:36 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=xM_3r1zn2aQAinPFqSvd
|
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
|
+
- xM_3r1zn2aQAinPFqSvd
|
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
|
+
- f5e58260-721b-45b4-a300-ab3fbbea9f22
|
72
72
|
X-Runtime:
|
73
|
-
- '0.
|
73
|
+
- '0.033961'
|
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: Tue, 11 Aug 2015 13:12:36 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=xM_3r1zn2aQAinPFqSvd&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
|
+
- xM_3r1zn2aQAinPFqSvd
|
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/"dfdaf0bbe755d1748684d4e440db8772"
|
109
109
|
Cache-Control:
|
110
110
|
- max-age=0, private, must-revalidate
|
111
111
|
X-Request-Id:
|
112
|
-
-
|
112
|
+
- fe3f8e0f-4110-40c3-8e2f-7e1ee7a4f7d9
|
113
113
|
X-Runtime:
|
114
|
-
- '0.
|
114
|
+
- '0.034262'
|
115
115
|
Content-Length:
|
116
116
|
- '169'
|
117
117
|
body:
|
118
118
|
encoding: UTF-8
|
119
|
-
string: '{"_id":"
|
119
|
+
string: '{"_id":"55c9f4c487f6432a3b000003","created_at":"2015-08-11T13:12:36Z","updated_at":"2015-08-11T13:12:36Z","name":"Footer","slug":"footer","template":"Locomotive
|
120
120
|
rocks!"}'
|
121
121
|
http_version:
|
122
|
-
recorded_at:
|
122
|
+
recorded_at: Tue, 11 Aug 2015 13:12:36 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/55c9f4c487f6432a3b000003.json
|
126
126
|
body:
|
127
127
|
encoding: UTF-8
|
128
|
-
string: auth_token=
|
128
|
+
string: auth_token=xM_3r1zn2aQAinPFqSvd&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
|
+
- xM_3r1zn2aQAinPFqSvd
|
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/"789d4099927ac621aaeb992f8df50cb5"
|
151
151
|
Cache-Control:
|
152
152
|
- max-age=0, private, must-revalidate
|
153
153
|
X-Request-Id:
|
154
|
-
-
|
154
|
+
- 622d377f-79e4-4fe3-9616-1981304f6090
|
155
155
|
X-Runtime:
|
156
|
-
- '0.
|
156
|
+
- '0.050726'
|
157
157
|
Content-Length:
|
158
158
|
- '176'
|
159
159
|
body:
|
160
160
|
encoding: UTF-8
|
161
|
-
string: '{"_id":"
|
161
|
+
string: '{"_id":"55c9f4c487f6432a3b000003","created_at":"2015-08-11T13:12:36Z","updated_at":"2015-08-11T13:12:36Z","name":"Footer","slug":"footer","template":"Locomotive
|
162
162
|
rocks. period"}'
|
163
163
|
http_version:
|
164
|
-
recorded_at:
|
164
|
+
recorded_at: Tue, 11 Aug 2015 13:12:36 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/55c9f4c487f6432a3b000003.json?auth_token=xM_3r1zn2aQAinPFqSvd
|
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
|
+
- xM_3r1zn2aQAinPFqSvd
|
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/"789d4099927ac621aaeb992f8df50cb5"
|
191
191
|
Cache-Control:
|
192
192
|
- max-age=0, private, must-revalidate
|
193
193
|
X-Request-Id:
|
194
|
-
-
|
194
|
+
- 68b7565a-36a0-4878-9d2e-43a2134a9f87
|
195
195
|
X-Runtime:
|
196
|
-
- '0.
|
196
|
+
- '0.050372'
|
197
197
|
Content-Length:
|
198
198
|
- '176'
|
199
199
|
body:
|
200
200
|
encoding: UTF-8
|
201
|
-
string: '{"_id":"
|
201
|
+
string: '{"_id":"55c9f4c487f6432a3b000003","created_at":"2015-08-11T13:12:36Z","updated_at":"2015-08-11T13:12:36Z","name":"Footer","slug":"footer","template":"Locomotive
|
202
202
|
rocks. period"}'
|
203
203
|
http_version:
|
204
|
-
recorded_at:
|
204
|
+
recorded_at: Tue, 11 Aug 2015 13:12:36 GMT
|
205
205
|
recorded_with: VCR 2.9.3
|