locomotivecms_coal 1.0.0.pre.alpha.3 → 1.0.0.pre.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +7 -7
- data/README.md +60 -3
- data/lib/locomotive/coal/client.rb +10 -3
- data/lib/locomotive/coal/error.rb +4 -3
- data/lib/locomotive/coal/resources/concerns/request.rb +3 -3
- data/lib/locomotive/coal/resources/content_entries.rb +9 -0
- data/lib/locomotive/coal/resources/current_site.rb +25 -0
- data/lib/locomotive/coal/resources/memberships.rb +13 -0
- data/lib/locomotive/coal/resources/pages.rb +1 -1
- data/lib/locomotive/coal/resources/snippets.rb +8 -0
- data/lib/locomotive/coal/version.rb +1 -1
- data/lib/locomotive/coal.rb +3 -0
- data/locomotivecms_coal.gemspec +2 -2
- data/spec/fixtures/coal_cassettes/client.yml +117 -160
- data/spec/fixtures/coal_cassettes/content_assets.yml +47 -71
- data/spec/fixtures/coal_cassettes/content_entries.yml +510 -388
- data/spec/fixtures/coal_cassettes/content_types.yml +128 -196
- data/spec/fixtures/coal_cassettes/current_site.yml +124 -0
- data/spec/fixtures/coal_cassettes/memberships.yml +203 -0
- data/spec/fixtures/coal_cassettes/my_account.yml +40 -62
- data/spec/fixtures/coal_cassettes/pages.yml +82 -108
- data/spec/fixtures/coal_cassettes/sites.yml +43 -59
- data/spec/fixtures/coal_cassettes/snippets.yml +48 -70
- data/spec/fixtures/coal_cassettes/theme_assets.yml +46 -70
- data/spec/fixtures/coal_cassettes/token.yml +25 -31
- data/spec/fixtures/coal_cassettes/translations.yml +46 -70
- data/spec/fixtures/coal_cassettes/version.yml +18 -28
- data/spec/integration/resources/content_entries_spec.rb +11 -0
- data/spec/integration/resources/current_site_spec.rb +22 -0
- data/spec/integration/resources/memberships_spec.rb +39 -0
- metadata +16 -6
@@ -22,40 +22,36 @@ http_interactions:
|
|
22
22
|
headers:
|
23
23
|
Content-Type:
|
24
24
|
- application/json
|
25
|
-
Content-Length:
|
26
|
-
- '32'
|
27
25
|
Etag:
|
28
|
-
- W/"
|
26
|
+
- W/"157eb61d395f237526d11950bbc5a1fa"
|
29
27
|
Cache-Control:
|
30
28
|
- max-age=0, private, must-revalidate
|
31
29
|
X-Request-Id:
|
32
|
-
-
|
30
|
+
- a10b22de-e062-47bb-8f2f-0d1f77970776
|
33
31
|
X-Runtime:
|
34
|
-
- '0.
|
35
|
-
|
36
|
-
-
|
37
|
-
Server:
|
38
|
-
- thin
|
32
|
+
- '0.021796'
|
33
|
+
Content-Length:
|
34
|
+
- '32'
|
39
35
|
body:
|
40
36
|
encoding: UTF-8
|
41
|
-
string: '{"token":"
|
37
|
+
string: '{"token":"v6XDp282UyPDeM6DgA-S"}'
|
42
38
|
http_version:
|
43
|
-
recorded_at:
|
39
|
+
recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
|
44
40
|
- request:
|
45
41
|
method: get
|
46
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/pages.json
|
42
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/pages.json?auth_token=v6XDp282UyPDeM6DgA-S
|
47
43
|
body:
|
48
|
-
encoding:
|
49
|
-
string:
|
44
|
+
encoding: US-ASCII
|
45
|
+
string: ''
|
50
46
|
headers:
|
51
47
|
Accept:
|
52
48
|
- application/json
|
53
49
|
X-Locomotive-Account-Email:
|
54
50
|
- admin@locomotivecms.com
|
55
51
|
X-Locomotive-Account-Token:
|
56
|
-
-
|
57
|
-
|
58
|
-
-
|
52
|
+
- v6XDp282UyPDeM6DgA-S
|
53
|
+
X-Locomotive-Locale:
|
54
|
+
- en
|
59
55
|
Accept-Encoding:
|
60
56
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
61
57
|
User-Agent:
|
@@ -67,89 +63,79 @@ http_interactions:
|
|
67
63
|
headers:
|
68
64
|
Content-Type:
|
69
65
|
- application/json
|
70
|
-
Content-Length:
|
71
|
-
- '1242'
|
72
66
|
Etag:
|
73
|
-
- W/"
|
67
|
+
- W/"9ddc04a072b2f761fef7325fcfc6a928"
|
74
68
|
Cache-Control:
|
75
69
|
- max-age=0, private, must-revalidate
|
76
70
|
X-Request-Id:
|
77
|
-
-
|
71
|
+
- 1d0f843a-f7db-4828-aef2-45c30bc6a921
|
78
72
|
X-Runtime:
|
79
|
-
- '0.
|
80
|
-
|
81
|
-
-
|
82
|
-
Server:
|
83
|
-
- thin
|
73
|
+
- '0.024209'
|
74
|
+
Content-Length:
|
75
|
+
- '1238'
|
84
76
|
body:
|
85
77
|
encoding: UTF-8
|
86
|
-
string: '[{"_id":"
|
87
|
-
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":
|
88
|
-
of the home page","editable_elements":[],"seo_title":null,"meta_keywords":null,"meta_description":null},{"_id":"
|
89
|
-
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":
|
78
|
+
string: '[{"_id":"55b8f2ea4469646440000007","created_at":"2015-07-29T15:36:10Z","updated_at":"2015-07-29T15:36:10Z","title":"Home
|
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":"55b8f2ea4469646440000008","created_at":"2015-07-29T15:36:10Z","updated_at":"2015-07-29T15:36:10Z","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"],"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
|
90
82
|
of the 404 page","editable_elements":[],"seo_title":null,"meta_keywords":null,"meta_description":null}]'
|
91
83
|
http_version:
|
92
|
-
recorded_at:
|
84
|
+
recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
|
93
85
|
- request:
|
94
|
-
method:
|
95
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/pages.json
|
86
|
+
method: get
|
87
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/pages/fullpaths.json?auth_token=v6XDp282UyPDeM6DgA-S
|
96
88
|
body:
|
97
|
-
encoding:
|
98
|
-
string:
|
89
|
+
encoding: US-ASCII
|
90
|
+
string: ''
|
99
91
|
headers:
|
100
92
|
Accept:
|
101
93
|
- application/json
|
102
94
|
X-Locomotive-Account-Email:
|
103
95
|
- admin@locomotivecms.com
|
104
96
|
X-Locomotive-Account-Token:
|
105
|
-
-
|
106
|
-
|
107
|
-
-
|
97
|
+
- v6XDp282UyPDeM6DgA-S
|
98
|
+
X-Locomotive-Locale:
|
99
|
+
- en
|
108
100
|
Accept-Encoding:
|
109
101
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
110
102
|
User-Agent:
|
111
103
|
- Ruby
|
112
104
|
response:
|
113
105
|
status:
|
114
|
-
code:
|
115
|
-
message:
|
106
|
+
code: 200
|
107
|
+
message: OK
|
116
108
|
headers:
|
117
109
|
Content-Type:
|
118
110
|
- application/json
|
119
|
-
Content-Length:
|
120
|
-
- '661'
|
121
111
|
Etag:
|
122
|
-
- W/"
|
112
|
+
- W/"a7a760b25ac15a18e96074f99f1fefdb"
|
123
113
|
Cache-Control:
|
124
114
|
- max-age=0, private, must-revalidate
|
125
115
|
X-Request-Id:
|
126
|
-
-
|
116
|
+
- 37883fc1-dc43-4e0f-a014-82df89af3832
|
127
117
|
X-Runtime:
|
128
|
-
- '0.
|
129
|
-
|
130
|
-
-
|
131
|
-
Server:
|
132
|
-
- thin
|
118
|
+
- '0.021907'
|
119
|
+
Content-Length:
|
120
|
+
- '107'
|
133
121
|
body:
|
134
122
|
encoding: UTF-8
|
135
|
-
string: '{"_id":"
|
136
|
-
us","parent_id":{"$oid":"554b767464696416f0060000"},"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":null,"redirect_type":301,"templatized":false,"templatized_from_parent":false,"content_type":null,"is_layout":false,"allow_layout":true,"template":"{%
|
137
|
-
extends ''parent'' %}","editable_elements":[],"seo_title":null,"meta_keywords":null,"meta_description":null}'
|
123
|
+
string: '[{"_id":"55b8f2ea4469646440000007","fullpath":"index"},{"_id":"55b8f2ea4469646440000008","fullpath":"404"}]'
|
138
124
|
http_version:
|
139
|
-
recorded_at:
|
125
|
+
recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
|
140
126
|
- request:
|
141
|
-
method:
|
142
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/pages
|
127
|
+
method: post
|
128
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/pages.json
|
143
129
|
body:
|
144
130
|
encoding: UTF-8
|
145
|
-
string: auth_token=
|
131
|
+
string: auth_token=v6XDp282UyPDeM6DgA-S&page%5Bparent%5D=index&page%5Bslug%5D=about-us&page%5Btemplate%5D=Locomotive+rocks%21&page%5Btitle%5D=About+us
|
146
132
|
headers:
|
147
133
|
Accept:
|
148
134
|
- application/json
|
149
135
|
X-Locomotive-Account-Email:
|
150
136
|
- admin@locomotivecms.com
|
151
137
|
X-Locomotive-Account-Token:
|
152
|
-
-
|
138
|
+
- v6XDp282UyPDeM6DgA-S
|
153
139
|
Content-Type:
|
154
140
|
- application/x-www-form-urlencoded
|
155
141
|
Accept-Encoding:
|
@@ -158,45 +144,43 @@ http_interactions:
|
|
158
144
|
- Ruby
|
159
145
|
response:
|
160
146
|
status:
|
161
|
-
code:
|
162
|
-
message:
|
147
|
+
code: 201
|
148
|
+
message: Created
|
163
149
|
headers:
|
164
150
|
Content-Type:
|
165
151
|
- application/json
|
166
|
-
Content-Length:
|
167
|
-
- '663'
|
168
152
|
Etag:
|
169
|
-
- W/"
|
153
|
+
- W/"01f3b40a6084cec14b10231fa141c446"
|
170
154
|
Cache-Control:
|
171
155
|
- max-age=0, private, must-revalidate
|
172
156
|
X-Request-Id:
|
173
|
-
-
|
157
|
+
- 48de2bc4-7ebd-42ff-b937-103c9c563d5a
|
174
158
|
X-Runtime:
|
175
|
-
- '0.
|
176
|
-
|
177
|
-
-
|
178
|
-
Server:
|
179
|
-
- thin
|
159
|
+
- '0.054169'
|
160
|
+
Content-Length:
|
161
|
+
- '645'
|
180
162
|
body:
|
181
163
|
encoding: UTF-8
|
182
|
-
string: '{"_id":"
|
183
|
-
us","parent_id":
|
184
|
-
rocks
|
164
|
+
string: '{"_id":"55b8f304446964641a00000c","created_at":"2015-07-29T15:36:36Z","updated_at":"2015-07-29T15:36:36Z","title":"About
|
165
|
+
us","parent_id":"55b8f2ea4469646440000007","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
|
+
rocks!","editable_elements":[],"seo_title":null,"meta_keywords":null,"meta_description":null}'
|
185
167
|
http_version:
|
186
|
-
recorded_at:
|
168
|
+
recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
|
187
169
|
- request:
|
188
|
-
method:
|
189
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/pages/
|
170
|
+
method: put
|
171
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/pages/55b8f304446964641a00000c.json
|
190
172
|
body:
|
191
173
|
encoding: UTF-8
|
192
|
-
string: auth_token=
|
174
|
+
string: auth_token=v6XDp282UyPDeM6DgA-S&page%5Btemplate%5D=Locomotive+rocks.+period
|
193
175
|
headers:
|
194
176
|
Accept:
|
195
177
|
- application/json
|
196
178
|
X-Locomotive-Account-Email:
|
197
179
|
- admin@locomotivecms.com
|
198
180
|
X-Locomotive-Account-Token:
|
199
|
-
-
|
181
|
+
- v6XDp282UyPDeM6DgA-S
|
182
|
+
X-Locomotive-Locale:
|
183
|
+
- en
|
200
184
|
Content-Type:
|
201
185
|
- application/x-www-form-urlencoded
|
202
186
|
Accept-Encoding:
|
@@ -210,44 +194,36 @@ http_interactions:
|
|
210
194
|
headers:
|
211
195
|
Content-Type:
|
212
196
|
- application/json
|
213
|
-
Content-Length:
|
214
|
-
- '663'
|
215
197
|
Etag:
|
216
|
-
- W/"
|
198
|
+
- W/"1d1522b9b01d363093ecf72c2f1043f0"
|
217
199
|
Cache-Control:
|
218
200
|
- max-age=0, private, must-revalidate
|
219
201
|
X-Request-Id:
|
220
|
-
-
|
202
|
+
- d25e879a-57c4-4add-a73c-a13421a55bcc
|
221
203
|
X-Runtime:
|
222
|
-
- '0.
|
223
|
-
|
224
|
-
-
|
225
|
-
Server:
|
226
|
-
- thin
|
204
|
+
- '0.033759'
|
205
|
+
Content-Length:
|
206
|
+
- '652'
|
227
207
|
body:
|
228
208
|
encoding: UTF-8
|
229
|
-
string: '{"_id":"
|
230
|
-
us","parent_id":
|
209
|
+
string: '{"_id":"55b8f304446964641a00000c","created_at":"2015-07-29T15:36:36Z","updated_at":"2015-07-29T15:36:36Z","title":"About
|
210
|
+
us","parent_id":"55b8f2ea4469646440000007","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
|
231
211
|
rocks. period","editable_elements":[],"seo_title":null,"meta_keywords":null,"meta_description":null}'
|
232
212
|
http_version:
|
233
|
-
recorded_at:
|
213
|
+
recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
|
234
214
|
- request:
|
235
|
-
method:
|
236
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/pages/
|
215
|
+
method: delete
|
216
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/pages/55b8f304446964641a00000c.json?auth_token=v6XDp282UyPDeM6DgA-S
|
237
217
|
body:
|
238
|
-
encoding:
|
239
|
-
string:
|
218
|
+
encoding: US-ASCII
|
219
|
+
string: ''
|
240
220
|
headers:
|
241
221
|
Accept:
|
242
222
|
- application/json
|
243
223
|
X-Locomotive-Account-Email:
|
244
224
|
- admin@locomotivecms.com
|
245
225
|
X-Locomotive-Account-Token:
|
246
|
-
-
|
247
|
-
X-Locomotive-Locale:
|
248
|
-
- en
|
249
|
-
Content-Type:
|
250
|
-
- application/x-www-form-urlencoded
|
226
|
+
- v6XDp282UyPDeM6DgA-S
|
251
227
|
Accept-Encoding:
|
252
228
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
253
229
|
User-Agent:
|
@@ -259,23 +235,21 @@ http_interactions:
|
|
259
235
|
headers:
|
260
236
|
Content-Type:
|
261
237
|
- application/json
|
262
|
-
Content-Length:
|
263
|
-
- '107'
|
264
238
|
Etag:
|
265
|
-
- W/"
|
239
|
+
- W/"1d1522b9b01d363093ecf72c2f1043f0"
|
266
240
|
Cache-Control:
|
267
241
|
- max-age=0, private, must-revalidate
|
268
242
|
X-Request-Id:
|
269
|
-
-
|
243
|
+
- 32cbdcc3-758e-4298-9f14-d65caffa835c
|
270
244
|
X-Runtime:
|
271
|
-
- '0.
|
272
|
-
|
273
|
-
-
|
274
|
-
Server:
|
275
|
-
- thin
|
245
|
+
- '0.049873'
|
246
|
+
Content-Length:
|
247
|
+
- '652'
|
276
248
|
body:
|
277
249
|
encoding: UTF-8
|
278
|
-
string: '
|
250
|
+
string: '{"_id":"55b8f304446964641a00000c","created_at":"2015-07-29T15:36:36Z","updated_at":"2015-07-29T15:36:36Z","title":"About
|
251
|
+
us","parent_id":"55b8f2ea4469646440000007","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
|
+
rocks. period","editable_elements":[],"seo_title":null,"meta_keywords":null,"meta_description":null}'
|
279
253
|
http_version:
|
280
|
-
recorded_at:
|
254
|
+
recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
|
281
255
|
recorded_with: VCR 2.9.3
|
@@ -22,40 +22,34 @@ http_interactions:
|
|
22
22
|
headers:
|
23
23
|
Content-Type:
|
24
24
|
- application/json
|
25
|
-
Content-Length:
|
26
|
-
- '32'
|
27
25
|
Etag:
|
28
|
-
- W/"
|
26
|
+
- W/"157eb61d395f237526d11950bbc5a1fa"
|
29
27
|
Cache-Control:
|
30
28
|
- max-age=0, private, must-revalidate
|
31
29
|
X-Request-Id:
|
32
|
-
-
|
30
|
+
- e1d916af-ece8-40ab-89a0-91fec9678281
|
33
31
|
X-Runtime:
|
34
|
-
- '0.
|
35
|
-
|
36
|
-
-
|
37
|
-
Server:
|
38
|
-
- thin
|
32
|
+
- '0.018525'
|
33
|
+
Content-Length:
|
34
|
+
- '32'
|
39
35
|
body:
|
40
36
|
encoding: UTF-8
|
41
|
-
string: '{"token":"
|
37
|
+
string: '{"token":"v6XDp282UyPDeM6DgA-S"}'
|
42
38
|
http_version:
|
43
|
-
recorded_at:
|
39
|
+
recorded_at: Wed, 29 Jul 2015 15:36:34 GMT
|
44
40
|
- request:
|
45
41
|
method: get
|
46
|
-
uri: http://localhost:3000/locomotive/api/v3/sites.json
|
42
|
+
uri: http://localhost:3000/locomotive/api/v3/sites.json?auth_token=v6XDp282UyPDeM6DgA-S
|
47
43
|
body:
|
48
|
-
encoding:
|
49
|
-
string:
|
44
|
+
encoding: US-ASCII
|
45
|
+
string: ''
|
50
46
|
headers:
|
51
47
|
Accept:
|
52
48
|
- application/json
|
53
49
|
X-Locomotive-Account-Email:
|
54
50
|
- admin@locomotivecms.com
|
55
51
|
X-Locomotive-Account-Token:
|
56
|
-
-
|
57
|
-
Content-Type:
|
58
|
-
- application/x-www-form-urlencoded
|
52
|
+
- v6XDp282UyPDeM6DgA-S
|
59
53
|
Accept-Encoding:
|
60
54
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
61
55
|
User-Agent:
|
@@ -67,39 +61,37 @@ http_interactions:
|
|
67
61
|
headers:
|
68
62
|
Content-Type:
|
69
63
|
- application/json
|
70
|
-
Content-Length:
|
71
|
-
- '1021'
|
72
64
|
Etag:
|
73
|
-
- W/"
|
65
|
+
- W/"6eeec342423fe5777a3bdb54452c56c3"
|
74
66
|
Cache-Control:
|
75
67
|
- max-age=0, private, must-revalidate
|
76
68
|
X-Request-Id:
|
77
|
-
-
|
69
|
+
- 3c30096b-fb59-43c3-843e-0c2cc371e6b0
|
78
70
|
X-Runtime:
|
79
|
-
- '0.
|
80
|
-
|
81
|
-
-
|
82
|
-
Server:
|
83
|
-
- thin
|
71
|
+
- '0.027518'
|
72
|
+
Content-Length:
|
73
|
+
- '1120'
|
84
74
|
body:
|
85
75
|
encoding: UTF-8
|
86
|
-
string: '[{"_id":"
|
87
|
-
|
76
|
+
string: '[{"_id":"55b8f2ea4469646440000002","created_at":"2015-07-29T15:36:10Z","updated_at":"2015-07-29T15:36:10Z","name":"LocomotiveCMS","handle":"www","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":["www.example.com"],"memberships":[{"_id":"55b8f2ea4469646440000005","created_at":null,"updated_at":null,"role":"admin","account_id":"55b8f2ea4469646440000000","name":"John
|
77
|
+
Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null},{"_id":"55b8f2ea4469646440000006","created_at":"2015-07-29T15:36:10Z","updated_at":"2015-07-29T15:36:34Z","name":"John
|
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}]'
|
88
80
|
http_version:
|
89
|
-
recorded_at:
|
81
|
+
recorded_at: Wed, 29 Jul 2015 15:36:34 GMT
|
90
82
|
- request:
|
91
83
|
method: post
|
92
84
|
uri: http://localhost:3000/locomotive/api/v3/sites.json
|
93
85
|
body:
|
94
86
|
encoding: UTF-8
|
95
|
-
string: auth_token=
|
87
|
+
string: auth_token=v6XDp282UyPDeM6DgA-S&site%5Bhandle%5D=acme&site%5Blocales%5D%5B%5D=en&site%5Bname%5D=Acme
|
96
88
|
headers:
|
97
89
|
Accept:
|
98
90
|
- application/json
|
99
91
|
X-Locomotive-Account-Email:
|
100
92
|
- admin@locomotivecms.com
|
101
93
|
X-Locomotive-Account-Token:
|
102
|
-
-
|
94
|
+
- v6XDp282UyPDeM6DgA-S
|
103
95
|
Content-Type:
|
104
96
|
- application/x-www-form-urlencoded
|
105
97
|
Accept-Encoding:
|
@@ -113,40 +105,35 @@ http_interactions:
|
|
113
105
|
headers:
|
114
106
|
Content-Type:
|
115
107
|
- application/json
|
116
|
-
Content-Length:
|
117
|
-
- '482'
|
118
108
|
Etag:
|
119
|
-
- W/"
|
109
|
+
- W/"f825eb243163965cd70aaa8ba669b1f1"
|
120
110
|
Cache-Control:
|
121
111
|
- max-age=0, private, must-revalidate
|
122
112
|
X-Request-Id:
|
123
|
-
-
|
113
|
+
- 5b0caa6f-bd2c-4cb6-99b2-516b5f3cab6d
|
124
114
|
X-Runtime:
|
125
|
-
- '0.
|
126
|
-
|
127
|
-
-
|
128
|
-
Server:
|
129
|
-
- thin
|
115
|
+
- '0.172455'
|
116
|
+
Content-Length:
|
117
|
+
- '533'
|
130
118
|
body:
|
131
119
|
encoding: UTF-8
|
132
|
-
string: '{"_id":"
|
120
|
+
string: '{"_id":"55b8f303446964641a000003","created_at":"2015-07-29T15:36:35Z","updated_at":"2015-07-29T15:36:35Z","name":"Acme","handle":"acme","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":[],"memberships":[{"_id":"55b8f303446964641a000004","created_at":null,"updated_at":null,"role":"admin","account_id":"55b8f2ea4469646440000000","name":"John
|
121
|
+
Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null}'
|
133
122
|
http_version:
|
134
|
-
recorded_at:
|
123
|
+
recorded_at: Wed, 29 Jul 2015 15:36:35 GMT
|
135
124
|
- request:
|
136
125
|
method: delete
|
137
|
-
uri: http://localhost:3000/locomotive/api/v3/sites/
|
126
|
+
uri: http://localhost:3000/locomotive/api/v3/sites/55b8f303446964641a000003.json?auth_token=v6XDp282UyPDeM6DgA-S
|
138
127
|
body:
|
139
|
-
encoding:
|
140
|
-
string:
|
128
|
+
encoding: US-ASCII
|
129
|
+
string: ''
|
141
130
|
headers:
|
142
131
|
Accept:
|
143
132
|
- application/json
|
144
133
|
X-Locomotive-Account-Email:
|
145
134
|
- admin@locomotivecms.com
|
146
135
|
X-Locomotive-Account-Token:
|
147
|
-
-
|
148
|
-
Content-Type:
|
149
|
-
- application/x-www-form-urlencoded
|
136
|
+
- v6XDp282UyPDeM6DgA-S
|
150
137
|
Accept-Encoding:
|
151
138
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
152
139
|
User-Agent:
|
@@ -158,23 +145,20 @@ http_interactions:
|
|
158
145
|
headers:
|
159
146
|
Content-Type:
|
160
147
|
- application/json
|
161
|
-
Content-Length:
|
162
|
-
- '482'
|
163
148
|
Etag:
|
164
|
-
- W/"
|
149
|
+
- W/"f825eb243163965cd70aaa8ba669b1f1"
|
165
150
|
Cache-Control:
|
166
151
|
- max-age=0, private, must-revalidate
|
167
152
|
X-Request-Id:
|
168
|
-
-
|
153
|
+
- 26885055-03da-4592-b8c3-cbe6ae7a73c0
|
169
154
|
X-Runtime:
|
170
|
-
- '0.
|
171
|
-
|
172
|
-
-
|
173
|
-
Server:
|
174
|
-
- thin
|
155
|
+
- '0.184265'
|
156
|
+
Content-Length:
|
157
|
+
- '533'
|
175
158
|
body:
|
176
159
|
encoding: UTF-8
|
177
|
-
string: '{"_id":"
|
160
|
+
string: '{"_id":"55b8f303446964641a000003","created_at":"2015-07-29T15:36:35Z","updated_at":"2015-07-29T15:36:35Z","name":"Acme","handle":"acme","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":[],"memberships":[{"_id":"55b8f303446964641a000004","created_at":null,"updated_at":null,"role":"admin","account_id":"55b8f2ea4469646440000000","name":"John
|
161
|
+
Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null}'
|
178
162
|
http_version:
|
179
|
-
recorded_at:
|
163
|
+
recorded_at: Wed, 29 Jul 2015 15:36:35 GMT
|
180
164
|
recorded_with: VCR 2.9.3
|