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,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
|
+
- cdd62bc6-95e5-4587-9d2b-bfec39f6f010
|
33
31
|
X-Runtime:
|
34
|
-
- '0.
|
35
|
-
|
36
|
-
-
|
37
|
-
Server:
|
38
|
-
- thin
|
32
|
+
- '0.013962'
|
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:35 GMT
|
44
40
|
- request:
|
45
41
|
method: get
|
46
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json
|
42
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/content_types.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,25 +61,21 @@ http_interactions:
|
|
67
61
|
headers:
|
68
62
|
Content-Type:
|
69
63
|
- application/json
|
70
|
-
Content-Length:
|
71
|
-
- '2'
|
72
64
|
Etag:
|
73
65
|
- W/"d751713988987e9331980363e24189ce"
|
74
66
|
Cache-Control:
|
75
67
|
- max-age=0, private, must-revalidate
|
76
68
|
X-Request-Id:
|
77
|
-
-
|
69
|
+
- cbc98dfd-4d64-46dd-94d4-216187424fcd
|
78
70
|
X-Runtime:
|
79
|
-
- '0.
|
80
|
-
|
81
|
-
-
|
82
|
-
Server:
|
83
|
-
- thin
|
71
|
+
- '0.026948'
|
72
|
+
Content-Length:
|
73
|
+
- '2'
|
84
74
|
body:
|
85
75
|
encoding: UTF-8
|
86
76
|
string: "[]"
|
87
77
|
http_version:
|
88
|
-
recorded_at:
|
78
|
+
recorded_at: Wed, 29 Jul 2015 15:36:35 GMT
|
89
79
|
- request:
|
90
80
|
method: post
|
91
81
|
uri: http://localhost:3000/locomotive/api/v3/tokens.json
|
@@ -108,38 +98,34 @@ http_interactions:
|
|
108
98
|
headers:
|
109
99
|
Content-Type:
|
110
100
|
- application/json
|
111
|
-
Content-Length:
|
112
|
-
- '32'
|
113
101
|
Etag:
|
114
|
-
- W/"
|
102
|
+
- W/"157eb61d395f237526d11950bbc5a1fa"
|
115
103
|
Cache-Control:
|
116
104
|
- max-age=0, private, must-revalidate
|
117
105
|
X-Request-Id:
|
118
|
-
-
|
106
|
+
- 4edae477-4dc3-481f-ae85-31cd941360fd
|
119
107
|
X-Runtime:
|
120
|
-
- '0.
|
121
|
-
|
122
|
-
-
|
123
|
-
Server:
|
124
|
-
- thin
|
108
|
+
- '0.014001'
|
109
|
+
Content-Length:
|
110
|
+
- '32'
|
125
111
|
body:
|
126
112
|
encoding: UTF-8
|
127
|
-
string: '{"token":"
|
113
|
+
string: '{"token":"v6XDp282UyPDeM6DgA-S"}'
|
128
114
|
http_version:
|
129
|
-
recorded_at:
|
115
|
+
recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
|
130
116
|
- request:
|
131
117
|
method: post
|
132
118
|
uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json
|
133
119
|
body:
|
134
120
|
encoding: UTF-8
|
135
|
-
string: auth_token=
|
121
|
+
string: auth_token=v6XDp282UyPDeM6DgA-S&content_type%5Bfields%5D%5B%5D%5Blabel%5D=Name&content_type%5Bfields%5D%5B%5D%5Bname%5D=name&content_type%5Bfields%5D%5B%5D%5Btype%5D=string&content_type%5Bname%5D=Projects&content_type%5Bslug%5D=projects
|
136
122
|
headers:
|
137
123
|
Accept:
|
138
124
|
- application/json
|
139
125
|
X-Locomotive-Account-Email:
|
140
126
|
- admin@locomotivecms.com
|
141
127
|
X-Locomotive-Account-Token:
|
142
|
-
-
|
128
|
+
- v6XDp282UyPDeM6DgA-S
|
143
129
|
Content-Type:
|
144
130
|
- application/x-www-form-urlencoded
|
145
131
|
Accept-Encoding:
|
@@ -153,25 +139,21 @@ http_interactions:
|
|
153
139
|
headers:
|
154
140
|
Content-Type:
|
155
141
|
- application/json
|
156
|
-
Content-Length:
|
157
|
-
- '549'
|
158
142
|
Etag:
|
159
|
-
- W/"
|
143
|
+
- W/"b8a65680f6f7fb9efd48d521d9c0560c"
|
160
144
|
Cache-Control:
|
161
145
|
- max-age=0, private, must-revalidate
|
162
146
|
X-Request-Id:
|
163
|
-
-
|
147
|
+
- 676c60f0-10f9-49cf-9dc9-5b6123d38481
|
164
148
|
X-Runtime:
|
165
|
-
- '0.
|
166
|
-
|
167
|
-
-
|
168
|
-
Server:
|
169
|
-
- thin
|
149
|
+
- '0.081152'
|
150
|
+
Content-Length:
|
151
|
+
- '573'
|
170
152
|
body:
|
171
153
|
encoding: UTF-8
|
172
|
-
string: '{"_id":"
|
154
|
+
string: '{"_id":"55b8f304446964641a000008","created_at":"2015-07-29T15:36:36Z","updated_at":"2015-07-29T15:36:36Z","name":"Projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"raw_item_template":null,"display_settings":null,"fields":[{"_id":"55b8f304446964641a000009","created_at":null,"updated_at":null,"name":"name","type":"string","label":"Name","hint":null,"required":true,"localized":false,"unique":false,"position":0}],"order_by":"created_at","group_by":null,"public_submission_account_emails":[]}'
|
173
155
|
http_version:
|
174
|
-
recorded_at:
|
156
|
+
recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
|
175
157
|
- request:
|
176
158
|
method: post
|
177
159
|
uri: http://localhost:3000/locomotive/api/v3/tokens.json
|
@@ -194,40 +176,34 @@ http_interactions:
|
|
194
176
|
headers:
|
195
177
|
Content-Type:
|
196
178
|
- application/json
|
197
|
-
Content-Length:
|
198
|
-
- '32'
|
199
179
|
Etag:
|
200
|
-
- W/"
|
180
|
+
- W/"157eb61d395f237526d11950bbc5a1fa"
|
201
181
|
Cache-Control:
|
202
182
|
- max-age=0, private, must-revalidate
|
203
183
|
X-Request-Id:
|
204
|
-
-
|
184
|
+
- aa11c113-2662-40db-8838-3db6c3e6eb67
|
205
185
|
X-Runtime:
|
206
|
-
- '0.
|
207
|
-
|
208
|
-
-
|
209
|
-
Server:
|
210
|
-
- thin
|
186
|
+
- '0.020128'
|
187
|
+
Content-Length:
|
188
|
+
- '32'
|
211
189
|
body:
|
212
190
|
encoding: UTF-8
|
213
|
-
string: '{"token":"
|
191
|
+
string: '{"token":"v6XDp282UyPDeM6DgA-S"}'
|
214
192
|
http_version:
|
215
|
-
recorded_at:
|
193
|
+
recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
|
216
194
|
- request:
|
217
195
|
method: get
|
218
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json
|
196
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json?auth_token=v6XDp282UyPDeM6DgA-S
|
219
197
|
body:
|
220
|
-
encoding:
|
221
|
-
string:
|
198
|
+
encoding: US-ASCII
|
199
|
+
string: ''
|
222
200
|
headers:
|
223
201
|
Accept:
|
224
202
|
- application/json
|
225
203
|
X-Locomotive-Account-Email:
|
226
204
|
- admin@locomotivecms.com
|
227
205
|
X-Locomotive-Account-Token:
|
228
|
-
-
|
229
|
-
Content-Type:
|
230
|
-
- application/x-www-form-urlencoded
|
206
|
+
- v6XDp282UyPDeM6DgA-S
|
231
207
|
Accept-Encoding:
|
232
208
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
233
209
|
User-Agent:
|
@@ -239,38 +215,34 @@ http_interactions:
|
|
239
215
|
headers:
|
240
216
|
Content-Type:
|
241
217
|
- application/json
|
242
|
-
Content-Length:
|
243
|
-
- '551'
|
244
218
|
Etag:
|
245
|
-
- W/"
|
219
|
+
- W/"4c260c5297487b976289fd5332a70d21"
|
246
220
|
Cache-Control:
|
247
221
|
- max-age=0, private, must-revalidate
|
248
222
|
X-Request-Id:
|
249
|
-
-
|
223
|
+
- 12a23fce-ef84-4604-aa33-119bfd8fc465
|
250
224
|
X-Runtime:
|
251
|
-
- '0.
|
252
|
-
|
253
|
-
-
|
254
|
-
Server:
|
255
|
-
- thin
|
225
|
+
- '0.037587'
|
226
|
+
Content-Length:
|
227
|
+
- '575'
|
256
228
|
body:
|
257
229
|
encoding: UTF-8
|
258
|
-
string: '[{"_id":"
|
230
|
+
string: '[{"_id":"55b8f304446964641a000008","created_at":"2015-07-29T15:36:36Z","updated_at":"2015-07-29T15:36:36Z","name":"Projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"raw_item_template":null,"display_settings":null,"fields":[{"_id":"55b8f304446964641a000009","created_at":null,"updated_at":null,"name":"name","type":"string","label":"Name","hint":null,"required":true,"localized":false,"unique":false,"position":0}],"order_by":"created_at","group_by":null,"public_submission_account_emails":[]}]'
|
259
231
|
http_version:
|
260
|
-
recorded_at:
|
232
|
+
recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
|
261
233
|
- request:
|
262
234
|
method: put
|
263
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/content_types/
|
235
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/content_types/55b8f304446964641a000008.json
|
264
236
|
body:
|
265
237
|
encoding: UTF-8
|
266
|
-
string: auth_token=
|
238
|
+
string: auth_token=v6XDp282UyPDeM6DgA-S&content_type%5Bname%5D=Our+projects
|
267
239
|
headers:
|
268
240
|
Accept:
|
269
241
|
- application/json
|
270
242
|
X-Locomotive-Account-Email:
|
271
243
|
- admin@locomotivecms.com
|
272
244
|
X-Locomotive-Account-Token:
|
273
|
-
-
|
245
|
+
- v6XDp282UyPDeM6DgA-S
|
274
246
|
Content-Type:
|
275
247
|
- application/x-www-form-urlencoded
|
276
248
|
Accept-Encoding:
|
@@ -284,26 +256,22 @@ http_interactions:
|
|
284
256
|
headers:
|
285
257
|
Content-Type:
|
286
258
|
- application/json
|
287
|
-
Content-Length:
|
288
|
-
- '553'
|
289
259
|
Etag:
|
290
|
-
- W/"
|
260
|
+
- W/"45486fc2f1bf492d12cb7b11624d30e0"
|
291
261
|
Cache-Control:
|
292
262
|
- max-age=0, private, must-revalidate
|
293
263
|
X-Request-Id:
|
294
|
-
-
|
264
|
+
- fca00f1f-3c54-4f6f-8a32-52c4cbf03e47
|
295
265
|
X-Runtime:
|
296
|
-
- '0.
|
297
|
-
|
298
|
-
-
|
299
|
-
Server:
|
300
|
-
- thin
|
266
|
+
- '0.040226'
|
267
|
+
Content-Length:
|
268
|
+
- '577'
|
301
269
|
body:
|
302
270
|
encoding: UTF-8
|
303
|
-
string: '{"_id":"
|
304
|
-
projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"raw_item_template":null,"fields":[{"_id":"
|
271
|
+
string: '{"_id":"55b8f304446964641a000008","created_at":"2015-07-29T15:36:36Z","updated_at":"2015-07-29T15:36:36Z","name":"Our
|
272
|
+
projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"raw_item_template":null,"display_settings":null,"fields":[{"_id":"55b8f304446964641a000009","created_at":null,"updated_at":null,"name":"name","type":"string","label":"Name","hint":null,"required":true,"localized":false,"unique":false,"position":0}],"order_by":"created_at","group_by":null,"public_submission_account_emails":[]}'
|
305
273
|
http_version:
|
306
|
-
recorded_at:
|
274
|
+
recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
|
307
275
|
- request:
|
308
276
|
method: post
|
309
277
|
uri: http://localhost:3000/locomotive/api/v3/tokens.json
|
@@ -326,40 +294,34 @@ http_interactions:
|
|
326
294
|
headers:
|
327
295
|
Content-Type:
|
328
296
|
- application/json
|
329
|
-
Content-Length:
|
330
|
-
- '32'
|
331
297
|
Etag:
|
332
|
-
- W/"
|
298
|
+
- W/"157eb61d395f237526d11950bbc5a1fa"
|
333
299
|
Cache-Control:
|
334
300
|
- max-age=0, private, must-revalidate
|
335
301
|
X-Request-Id:
|
336
|
-
-
|
302
|
+
- 19fb9c9c-0e19-479b-b8b5-fbf0a001f8ec
|
337
303
|
X-Runtime:
|
338
|
-
- '0.
|
339
|
-
|
340
|
-
-
|
341
|
-
Server:
|
342
|
-
- thin
|
304
|
+
- '0.013605'
|
305
|
+
Content-Length:
|
306
|
+
- '32'
|
343
307
|
body:
|
344
308
|
encoding: UTF-8
|
345
|
-
string: '{"token":"
|
309
|
+
string: '{"token":"v6XDp282UyPDeM6DgA-S"}'
|
346
310
|
http_version:
|
347
|
-
recorded_at:
|
311
|
+
recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
|
348
312
|
- request:
|
349
313
|
method: get
|
350
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json
|
314
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json?auth_token=v6XDp282UyPDeM6DgA-S
|
351
315
|
body:
|
352
|
-
encoding:
|
353
|
-
string:
|
316
|
+
encoding: US-ASCII
|
317
|
+
string: ''
|
354
318
|
headers:
|
355
319
|
Accept:
|
356
320
|
- application/json
|
357
321
|
X-Locomotive-Account-Email:
|
358
322
|
- admin@locomotivecms.com
|
359
323
|
X-Locomotive-Account-Token:
|
360
|
-
-
|
361
|
-
Content-Type:
|
362
|
-
- application/x-www-form-urlencoded
|
324
|
+
- v6XDp282UyPDeM6DgA-S
|
363
325
|
Accept-Encoding:
|
364
326
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
365
327
|
User-Agent:
|
@@ -371,41 +333,35 @@ http_interactions:
|
|
371
333
|
headers:
|
372
334
|
Content-Type:
|
373
335
|
- application/json
|
374
|
-
Content-Length:
|
375
|
-
- '555'
|
376
336
|
Etag:
|
377
|
-
- W/"
|
337
|
+
- W/"c7327222d611b6e7209989ba479c75d8"
|
378
338
|
Cache-Control:
|
379
339
|
- max-age=0, private, must-revalidate
|
380
340
|
X-Request-Id:
|
381
|
-
-
|
341
|
+
- 8ace7502-1483-4085-a70d-c19e452e2adf
|
382
342
|
X-Runtime:
|
383
|
-
- '0.
|
384
|
-
|
385
|
-
-
|
386
|
-
Server:
|
387
|
-
- thin
|
343
|
+
- '0.032246'
|
344
|
+
Content-Length:
|
345
|
+
- '579'
|
388
346
|
body:
|
389
347
|
encoding: UTF-8
|
390
|
-
string: '[{"_id":"
|
391
|
-
projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"raw_item_template":null,"fields":[{"_id":"
|
348
|
+
string: '[{"_id":"55b8f304446964641a000008","created_at":"2015-07-29T15:36:36Z","updated_at":"2015-07-29T15:36:36Z","name":"Our
|
349
|
+
projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"raw_item_template":null,"display_settings":null,"fields":[{"_id":"55b8f304446964641a000009","created_at":null,"updated_at":null,"name":"name","type":"string","label":"Name","hint":null,"required":true,"localized":false,"unique":false,"position":0}],"order_by":"created_at","group_by":null,"public_submission_account_emails":[]}]'
|
392
350
|
http_version:
|
393
|
-
recorded_at:
|
351
|
+
recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
|
394
352
|
- request:
|
395
353
|
method: delete
|
396
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/content_types/
|
354
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/content_types/55b8f304446964641a000008.json?auth_token=v6XDp282UyPDeM6DgA-S
|
397
355
|
body:
|
398
|
-
encoding:
|
399
|
-
string:
|
356
|
+
encoding: US-ASCII
|
357
|
+
string: ''
|
400
358
|
headers:
|
401
359
|
Accept:
|
402
360
|
- application/json
|
403
361
|
X-Locomotive-Account-Email:
|
404
362
|
- admin@locomotivecms.com
|
405
363
|
X-Locomotive-Account-Token:
|
406
|
-
-
|
407
|
-
Content-Type:
|
408
|
-
- application/x-www-form-urlencoded
|
364
|
+
- v6XDp282UyPDeM6DgA-S
|
409
365
|
Accept-Encoding:
|
410
366
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
411
367
|
User-Agent:
|
@@ -417,26 +373,22 @@ http_interactions:
|
|
417
373
|
headers:
|
418
374
|
Content-Type:
|
419
375
|
- application/json
|
420
|
-
Content-Length:
|
421
|
-
- '553'
|
422
376
|
Etag:
|
423
|
-
- W/"
|
377
|
+
- W/"45486fc2f1bf492d12cb7b11624d30e0"
|
424
378
|
Cache-Control:
|
425
379
|
- max-age=0, private, must-revalidate
|
426
380
|
X-Request-Id:
|
427
|
-
-
|
381
|
+
- 0768f2c2-2225-4898-8802-553c97170bb3
|
428
382
|
X-Runtime:
|
429
|
-
- '0.
|
430
|
-
|
431
|
-
-
|
432
|
-
Server:
|
433
|
-
- thin
|
383
|
+
- '0.028988'
|
384
|
+
Content-Length:
|
385
|
+
- '577'
|
434
386
|
body:
|
435
387
|
encoding: UTF-8
|
436
|
-
string: '{"_id":"
|
437
|
-
projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"raw_item_template":null,"fields":[{"_id":"
|
388
|
+
string: '{"_id":"55b8f304446964641a000008","created_at":"2015-07-29T15:36:36Z","updated_at":"2015-07-29T15:36:36Z","name":"Our
|
389
|
+
projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"raw_item_template":null,"display_settings":null,"fields":[{"_id":"55b8f304446964641a000009","created_at":null,"updated_at":null,"name":"name","type":"string","label":"Name","hint":null,"required":true,"localized":false,"unique":false,"position":0}],"order_by":"created_at","group_by":null,"public_submission_account_emails":[]}'
|
438
390
|
http_version:
|
439
|
-
recorded_at:
|
391
|
+
recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
|
440
392
|
- request:
|
441
393
|
method: post
|
442
394
|
uri: http://localhost:3000/locomotive/api/v3/tokens.json
|
@@ -459,40 +411,34 @@ http_interactions:
|
|
459
411
|
headers:
|
460
412
|
Content-Type:
|
461
413
|
- application/json
|
462
|
-
Content-Length:
|
463
|
-
- '32'
|
464
414
|
Etag:
|
465
|
-
- W/"
|
415
|
+
- W/"157eb61d395f237526d11950bbc5a1fa"
|
466
416
|
Cache-Control:
|
467
417
|
- max-age=0, private, must-revalidate
|
468
418
|
X-Request-Id:
|
469
|
-
-
|
419
|
+
- d86bd569-a3b0-4e25-b7b7-f1a11484a212
|
470
420
|
X-Runtime:
|
471
|
-
- '0.
|
472
|
-
|
473
|
-
-
|
474
|
-
Server:
|
475
|
-
- thin
|
421
|
+
- '0.014056'
|
422
|
+
Content-Length:
|
423
|
+
- '32'
|
476
424
|
body:
|
477
425
|
encoding: UTF-8
|
478
|
-
string: '{"token":"
|
426
|
+
string: '{"token":"v6XDp282UyPDeM6DgA-S"}'
|
479
427
|
http_version:
|
480
|
-
recorded_at:
|
428
|
+
recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
|
481
429
|
- request:
|
482
430
|
method: get
|
483
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json
|
431
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json?auth_token=v6XDp282UyPDeM6DgA-S
|
484
432
|
body:
|
485
|
-
encoding:
|
486
|
-
string:
|
433
|
+
encoding: US-ASCII
|
434
|
+
string: ''
|
487
435
|
headers:
|
488
436
|
Accept:
|
489
437
|
- application/json
|
490
438
|
X-Locomotive-Account-Email:
|
491
439
|
- admin@locomotivecms.com
|
492
440
|
X-Locomotive-Account-Token:
|
493
|
-
-
|
494
|
-
Content-Type:
|
495
|
-
- application/x-www-form-urlencoded
|
441
|
+
- v6XDp282UyPDeM6DgA-S
|
496
442
|
Accept-Encoding:
|
497
443
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
498
444
|
User-Agent:
|
@@ -504,38 +450,34 @@ http_interactions:
|
|
504
450
|
headers:
|
505
451
|
Content-Type:
|
506
452
|
- application/json
|
507
|
-
Content-Length:
|
508
|
-
- '2'
|
509
453
|
Etag:
|
510
454
|
- W/"d751713988987e9331980363e24189ce"
|
511
455
|
Cache-Control:
|
512
456
|
- max-age=0, private, must-revalidate
|
513
457
|
X-Request-Id:
|
514
|
-
-
|
458
|
+
- 8df39155-1f0f-4b0b-85d6-818e5084afa7
|
515
459
|
X-Runtime:
|
516
|
-
- '0.
|
517
|
-
|
518
|
-
-
|
519
|
-
Server:
|
520
|
-
- thin
|
460
|
+
- '0.042558'
|
461
|
+
Content-Length:
|
462
|
+
- '2'
|
521
463
|
body:
|
522
464
|
encoding: UTF-8
|
523
465
|
string: "[]"
|
524
466
|
http_version:
|
525
|
-
recorded_at:
|
467
|
+
recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
|
526
468
|
- request:
|
527
469
|
method: post
|
528
470
|
uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json
|
529
471
|
body:
|
530
472
|
encoding: UTF-8
|
531
|
-
string: auth_token=
|
473
|
+
string: auth_token=v6XDp282UyPDeM6DgA-S&content_type%5Bfields%5D%5B%5D%5Blabel%5D=Name&content_type%5Bfields%5D%5B%5D%5Bname%5D=name&content_type%5Bfields%5D%5B%5D%5Btype%5D=string&content_type%5Bname%5D=Projects&content_type%5Bslug%5D=projects
|
532
474
|
headers:
|
533
475
|
Accept:
|
534
476
|
- application/json
|
535
477
|
X-Locomotive-Account-Email:
|
536
478
|
- admin@locomotivecms.com
|
537
479
|
X-Locomotive-Account-Token:
|
538
|
-
-
|
480
|
+
- v6XDp282UyPDeM6DgA-S
|
539
481
|
Content-Type:
|
540
482
|
- application/x-www-form-urlencoded
|
541
483
|
Accept-Encoding:
|
@@ -549,40 +491,34 @@ http_interactions:
|
|
549
491
|
headers:
|
550
492
|
Content-Type:
|
551
493
|
- application/json
|
552
|
-
Content-Length:
|
553
|
-
- '549'
|
554
494
|
Etag:
|
555
|
-
- W/"
|
495
|
+
- W/"654b1aee90eb1c42f5923a54be365a61"
|
556
496
|
Cache-Control:
|
557
497
|
- max-age=0, private, must-revalidate
|
558
498
|
X-Request-Id:
|
559
|
-
-
|
499
|
+
- 7d27d7cf-b175-4962-9ec8-304b6bfb4cac
|
560
500
|
X-Runtime:
|
561
|
-
- '0.
|
562
|
-
|
563
|
-
-
|
564
|
-
Server:
|
565
|
-
- thin
|
501
|
+
- '0.032918'
|
502
|
+
Content-Length:
|
503
|
+
- '573'
|
566
504
|
body:
|
567
505
|
encoding: UTF-8
|
568
|
-
string: '{"_id":"
|
506
|
+
string: '{"_id":"55b8f304446964641a00000a","created_at":"2015-07-29T15:36:36Z","updated_at":"2015-07-29T15:36:36Z","name":"Projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"raw_item_template":null,"display_settings":null,"fields":[{"_id":"55b8f304446964641a00000b","created_at":null,"updated_at":null,"name":"name","type":"string","label":"Name","hint":null,"required":true,"localized":false,"unique":false,"position":0}],"order_by":"created_at","group_by":null,"public_submission_account_emails":[]}'
|
569
507
|
http_version:
|
570
|
-
recorded_at:
|
508
|
+
recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
|
571
509
|
- request:
|
572
510
|
method: get
|
573
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json
|
511
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json?auth_token=v6XDp282UyPDeM6DgA-S
|
574
512
|
body:
|
575
|
-
encoding:
|
576
|
-
string:
|
513
|
+
encoding: US-ASCII
|
514
|
+
string: ''
|
577
515
|
headers:
|
578
516
|
Accept:
|
579
517
|
- application/json
|
580
518
|
X-Locomotive-Account-Email:
|
581
519
|
- admin@locomotivecms.com
|
582
520
|
X-Locomotive-Account-Token:
|
583
|
-
-
|
584
|
-
Content-Type:
|
585
|
-
- application/x-www-form-urlencoded
|
521
|
+
- v6XDp282UyPDeM6DgA-S
|
586
522
|
Accept-Encoding:
|
587
523
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
588
524
|
User-Agent:
|
@@ -594,23 +530,19 @@ http_interactions:
|
|
594
530
|
headers:
|
595
531
|
Content-Type:
|
596
532
|
- application/json
|
597
|
-
Content-Length:
|
598
|
-
- '551'
|
599
533
|
Etag:
|
600
|
-
- W/"
|
534
|
+
- W/"ba51f4c890dc2269e3c87649b3b40933"
|
601
535
|
Cache-Control:
|
602
536
|
- max-age=0, private, must-revalidate
|
603
537
|
X-Request-Id:
|
604
|
-
-
|
538
|
+
- 45ac50bb-1933-4424-83a4-cae9385fe9cb
|
605
539
|
X-Runtime:
|
606
|
-
- '0.
|
607
|
-
|
608
|
-
-
|
609
|
-
Server:
|
610
|
-
- thin
|
540
|
+
- '0.021423'
|
541
|
+
Content-Length:
|
542
|
+
- '575'
|
611
543
|
body:
|
612
544
|
encoding: UTF-8
|
613
|
-
string: '[{"_id":"
|
545
|
+
string: '[{"_id":"55b8f304446964641a00000a","created_at":"2015-07-29T15:36:36Z","updated_at":"2015-07-29T15:36:36Z","name":"Projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"raw_item_template":null,"display_settings":null,"fields":[{"_id":"55b8f304446964641a00000b","created_at":null,"updated_at":null,"name":"name","type":"string","label":"Name","hint":null,"required":true,"localized":false,"unique":false,"position":0}],"order_by":"created_at","group_by":null,"public_submission_account_emails":[]}]'
|
614
546
|
http_version:
|
615
|
-
recorded_at:
|
547
|
+
recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
|
616
548
|
recorded_with: VCR 2.9.3
|