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
|
+
- c552de19-adc2-4b44-9f7e-51c1f61e2474
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.020439'
|
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/content_types.json?auth_token=
|
42
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/content_types.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:
|
@@ -66,16 +66,16 @@ http_interactions:
|
|
66
66
|
Cache-Control:
|
67
67
|
- max-age=0, private, must-revalidate
|
68
68
|
X-Request-Id:
|
69
|
-
-
|
69
|
+
- bf8df4ea-7df6-4f56-baa3-c88fae8a084f
|
70
70
|
X-Runtime:
|
71
|
-
- '0.
|
71
|
+
- '0.025299'
|
72
72
|
Content-Length:
|
73
73
|
- '2'
|
74
74
|
body:
|
75
75
|
encoding: UTF-8
|
76
76
|
string: "[]"
|
77
77
|
http_version:
|
78
|
-
recorded_at:
|
78
|
+
recorded_at: Sat, 21 Nov 2015 22:31:02 GMT
|
79
79
|
- request:
|
80
80
|
method: post
|
81
81
|
uri: http://localhost:3000/locomotive/api/v3/tokens.json
|
@@ -99,33 +99,33 @@ http_interactions:
|
|
99
99
|
Content-Type:
|
100
100
|
- application/json
|
101
101
|
Etag:
|
102
|
-
- W/"
|
102
|
+
- W/"120917583ae3f64355d682b690f7cb40"
|
103
103
|
Cache-Control:
|
104
104
|
- max-age=0, private, must-revalidate
|
105
105
|
X-Request-Id:
|
106
|
-
-
|
106
|
+
- 9a7358e6-5b33-4e91-8f86-f9865f66425b
|
107
107
|
X-Runtime:
|
108
|
-
- '0.
|
108
|
+
- '0.016606'
|
109
109
|
Content-Length:
|
110
110
|
- '32'
|
111
111
|
body:
|
112
112
|
encoding: UTF-8
|
113
|
-
string: '{"token":"
|
113
|
+
string: '{"token":"E2aoXzMxkFsLnCcmCcc_"}'
|
114
114
|
http_version:
|
115
|
-
recorded_at:
|
115
|
+
recorded_at: Sat, 21 Nov 2015 22:31:02 GMT
|
116
116
|
- request:
|
117
117
|
method: post
|
118
118
|
uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json
|
119
119
|
body:
|
120
120
|
encoding: UTF-8
|
121
|
-
string: auth_token=
|
121
|
+
string: auth_token=E2aoXzMxkFsLnCcmCcc_&content_type%5Bfields%5D%5B0%5D%5Blabel%5D=Name&content_type%5Bfields%5D%5B0%5D%5Bname%5D=name&content_type%5Bfields%5D%5B0%5D%5Btype%5D=string&content_type%5Bname%5D=Projects&content_type%5Bslug%5D=projects
|
122
122
|
headers:
|
123
123
|
Accept:
|
124
124
|
- application/json
|
125
125
|
X-Locomotive-Account-Email:
|
126
126
|
- admin@locomotivecms.com
|
127
127
|
X-Locomotive-Account-Token:
|
128
|
-
-
|
128
|
+
- E2aoXzMxkFsLnCcmCcc_
|
129
129
|
Content-Type:
|
130
130
|
- application/x-www-form-urlencoded
|
131
131
|
Accept-Encoding:
|
@@ -140,20 +140,20 @@ http_interactions:
|
|
140
140
|
Content-Type:
|
141
141
|
- application/json
|
142
142
|
Etag:
|
143
|
-
- W/"
|
143
|
+
- W/"4c843ebeee95b661c5447835f4f00449"
|
144
144
|
Cache-Control:
|
145
145
|
- max-age=0, private, must-revalidate
|
146
146
|
X-Request-Id:
|
147
|
-
-
|
147
|
+
- 69128a2f-593b-465e-914d-dd7b1e388c0d
|
148
148
|
X-Runtime:
|
149
|
-
- '0.
|
149
|
+
- '0.044901'
|
150
150
|
Content-Length:
|
151
|
-
- '
|
151
|
+
- '642'
|
152
152
|
body:
|
153
153
|
encoding: UTF-8
|
154
|
-
string: '{"_id":"
|
154
|
+
string: '{"_id":"5650f0a687f6436cbc00002f","created_at":"2015-11-21T22:31:02Z","updated_at":"2015-11-21T22:31:02Z","name":"Projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"public_submission_accounts":[],"public_submission_title_template":null,"entry_template":null,"display_settings":null,"fields":[{"_id":"5650f0a687f6436cbc000030","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":[]}'
|
155
155
|
http_version:
|
156
|
-
recorded_at:
|
156
|
+
recorded_at: Sat, 21 Nov 2015 22:31:02 GMT
|
157
157
|
- request:
|
158
158
|
method: post
|
159
159
|
uri: http://localhost:3000/locomotive/api/v3/tokens.json
|
@@ -177,23 +177,23 @@ http_interactions:
|
|
177
177
|
Content-Type:
|
178
178
|
- application/json
|
179
179
|
Etag:
|
180
|
-
- W/"
|
180
|
+
- W/"120917583ae3f64355d682b690f7cb40"
|
181
181
|
Cache-Control:
|
182
182
|
- max-age=0, private, must-revalidate
|
183
183
|
X-Request-Id:
|
184
|
-
-
|
184
|
+
- 949226d1-f5aa-4cbe-98da-f27d1e18c9d4
|
185
185
|
X-Runtime:
|
186
|
-
- '0.
|
186
|
+
- '0.016450'
|
187
187
|
Content-Length:
|
188
188
|
- '32'
|
189
189
|
body:
|
190
190
|
encoding: UTF-8
|
191
|
-
string: '{"token":"
|
191
|
+
string: '{"token":"E2aoXzMxkFsLnCcmCcc_"}'
|
192
192
|
http_version:
|
193
|
-
recorded_at:
|
193
|
+
recorded_at: Sat, 21 Nov 2015 22:31:02 GMT
|
194
194
|
- request:
|
195
195
|
method: get
|
196
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json?auth_token=
|
196
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json?auth_token=E2aoXzMxkFsLnCcmCcc_
|
197
197
|
body:
|
198
198
|
encoding: US-ASCII
|
199
199
|
string: ''
|
@@ -203,7 +203,7 @@ http_interactions:
|
|
203
203
|
X-Locomotive-Account-Email:
|
204
204
|
- admin@locomotivecms.com
|
205
205
|
X-Locomotive-Account-Token:
|
206
|
-
-
|
206
|
+
- E2aoXzMxkFsLnCcmCcc_
|
207
207
|
Accept-Encoding:
|
208
208
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
209
209
|
User-Agent:
|
@@ -216,33 +216,33 @@ http_interactions:
|
|
216
216
|
Content-Type:
|
217
217
|
- application/json
|
218
218
|
Etag:
|
219
|
-
- W/"
|
219
|
+
- W/"651da593cbd5b3a1a67335aacc39d415"
|
220
220
|
Cache-Control:
|
221
221
|
- max-age=0, private, must-revalidate
|
222
222
|
X-Request-Id:
|
223
|
-
-
|
223
|
+
- faf08c07-5d6b-44e5-8d10-a75b4ca1711f
|
224
224
|
X-Runtime:
|
225
|
-
- '0.
|
225
|
+
- '0.033648'
|
226
226
|
Content-Length:
|
227
|
-
- '
|
227
|
+
- '644'
|
228
228
|
body:
|
229
229
|
encoding: UTF-8
|
230
|
-
string: '[{"_id":"
|
230
|
+
string: '[{"_id":"5650f0a687f6436cbc00002f","created_at":"2015-11-21T22:31:02Z","updated_at":"2015-11-21T22:31:02Z","name":"Projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"public_submission_accounts":[],"public_submission_title_template":null,"entry_template":null,"display_settings":null,"fields":[{"_id":"5650f0a687f6436cbc000030","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":[]}]'
|
231
231
|
http_version:
|
232
|
-
recorded_at:
|
232
|
+
recorded_at: Sat, 21 Nov 2015 22:31:02 GMT
|
233
233
|
- request:
|
234
234
|
method: put
|
235
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/content_types/
|
235
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/content_types/5650f0a687f6436cbc00002f.json
|
236
236
|
body:
|
237
237
|
encoding: UTF-8
|
238
|
-
string: auth_token=
|
238
|
+
string: auth_token=E2aoXzMxkFsLnCcmCcc_&content_type%5Bname%5D=Our+projects
|
239
239
|
headers:
|
240
240
|
Accept:
|
241
241
|
- application/json
|
242
242
|
X-Locomotive-Account-Email:
|
243
243
|
- admin@locomotivecms.com
|
244
244
|
X-Locomotive-Account-Token:
|
245
|
-
-
|
245
|
+
- E2aoXzMxkFsLnCcmCcc_
|
246
246
|
Content-Type:
|
247
247
|
- application/x-www-form-urlencoded
|
248
248
|
Accept-Encoding:
|
@@ -257,21 +257,21 @@ http_interactions:
|
|
257
257
|
Content-Type:
|
258
258
|
- application/json
|
259
259
|
Etag:
|
260
|
-
- W/"
|
260
|
+
- W/"3484b9773b179962dad776acacc41f12"
|
261
261
|
Cache-Control:
|
262
262
|
- max-age=0, private, must-revalidate
|
263
263
|
X-Request-Id:
|
264
|
-
-
|
264
|
+
- 1d45086f-f5a6-4080-b2ba-73e08444646a
|
265
265
|
X-Runtime:
|
266
|
-
- '0.
|
266
|
+
- '0.051729'
|
267
267
|
Content-Length:
|
268
|
-
- '
|
268
|
+
- '646'
|
269
269
|
body:
|
270
270
|
encoding: UTF-8
|
271
|
-
string: '{"_id":"
|
272
|
-
projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"
|
271
|
+
string: '{"_id":"5650f0a687f6436cbc00002f","created_at":"2015-11-21T22:31:02Z","updated_at":"2015-11-21T22:31:02Z","name":"Our
|
272
|
+
projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"public_submission_accounts":[],"public_submission_title_template":null,"entry_template":null,"display_settings":null,"fields":[{"_id":"5650f0a687f6436cbc000030","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":[]}'
|
273
273
|
http_version:
|
274
|
-
recorded_at:
|
274
|
+
recorded_at: Sat, 21 Nov 2015 22:31:02 GMT
|
275
275
|
- request:
|
276
276
|
method: post
|
277
277
|
uri: http://localhost:3000/locomotive/api/v3/tokens.json
|
@@ -295,23 +295,23 @@ http_interactions:
|
|
295
295
|
Content-Type:
|
296
296
|
- application/json
|
297
297
|
Etag:
|
298
|
-
- W/"
|
298
|
+
- W/"120917583ae3f64355d682b690f7cb40"
|
299
299
|
Cache-Control:
|
300
300
|
- max-age=0, private, must-revalidate
|
301
301
|
X-Request-Id:
|
302
|
-
-
|
302
|
+
- 64685613-ff84-46a2-bf6e-bd4d2e4637b6
|
303
303
|
X-Runtime:
|
304
|
-
- '0.
|
304
|
+
- '0.017536'
|
305
305
|
Content-Length:
|
306
306
|
- '32'
|
307
307
|
body:
|
308
308
|
encoding: UTF-8
|
309
|
-
string: '{"token":"
|
309
|
+
string: '{"token":"E2aoXzMxkFsLnCcmCcc_"}'
|
310
310
|
http_version:
|
311
|
-
recorded_at:
|
311
|
+
recorded_at: Sat, 21 Nov 2015 22:31:02 GMT
|
312
312
|
- request:
|
313
313
|
method: get
|
314
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json?auth_token=
|
314
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json?auth_token=E2aoXzMxkFsLnCcmCcc_
|
315
315
|
body:
|
316
316
|
encoding: US-ASCII
|
317
317
|
string: ''
|
@@ -321,7 +321,7 @@ http_interactions:
|
|
321
321
|
X-Locomotive-Account-Email:
|
322
322
|
- admin@locomotivecms.com
|
323
323
|
X-Locomotive-Account-Token:
|
324
|
-
-
|
324
|
+
- E2aoXzMxkFsLnCcmCcc_
|
325
325
|
Accept-Encoding:
|
326
326
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
327
327
|
User-Agent:
|
@@ -334,24 +334,24 @@ http_interactions:
|
|
334
334
|
Content-Type:
|
335
335
|
- application/json
|
336
336
|
Etag:
|
337
|
-
- W/"
|
337
|
+
- W/"7a16135252999bf12cd7e9185b06b57f"
|
338
338
|
Cache-Control:
|
339
339
|
- max-age=0, private, must-revalidate
|
340
340
|
X-Request-Id:
|
341
|
-
-
|
341
|
+
- 4842b43f-7521-4215-bd3a-90953335aea9
|
342
342
|
X-Runtime:
|
343
|
-
- '0.
|
343
|
+
- '0.030018'
|
344
344
|
Content-Length:
|
345
|
-
- '
|
345
|
+
- '648'
|
346
346
|
body:
|
347
347
|
encoding: UTF-8
|
348
|
-
string: '[{"_id":"
|
349
|
-
projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"
|
348
|
+
string: '[{"_id":"5650f0a687f6436cbc00002f","created_at":"2015-11-21T22:31:02Z","updated_at":"2015-11-21T22:31:02Z","name":"Our
|
349
|
+
projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"public_submission_accounts":[],"public_submission_title_template":null,"entry_template":null,"display_settings":null,"fields":[{"_id":"5650f0a687f6436cbc000030","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":[]}]'
|
350
350
|
http_version:
|
351
|
-
recorded_at:
|
351
|
+
recorded_at: Sat, 21 Nov 2015 22:31:02 GMT
|
352
352
|
- request:
|
353
353
|
method: delete
|
354
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/content_types/
|
354
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/content_types/5650f0a687f6436cbc00002f.json?auth_token=E2aoXzMxkFsLnCcmCcc_
|
355
355
|
body:
|
356
356
|
encoding: US-ASCII
|
357
357
|
string: ''
|
@@ -361,7 +361,7 @@ http_interactions:
|
|
361
361
|
X-Locomotive-Account-Email:
|
362
362
|
- admin@locomotivecms.com
|
363
363
|
X-Locomotive-Account-Token:
|
364
|
-
-
|
364
|
+
- E2aoXzMxkFsLnCcmCcc_
|
365
365
|
Accept-Encoding:
|
366
366
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
367
367
|
User-Agent:
|
@@ -374,21 +374,21 @@ http_interactions:
|
|
374
374
|
Content-Type:
|
375
375
|
- application/json
|
376
376
|
Etag:
|
377
|
-
- W/"
|
377
|
+
- W/"3484b9773b179962dad776acacc41f12"
|
378
378
|
Cache-Control:
|
379
379
|
- max-age=0, private, must-revalidate
|
380
380
|
X-Request-Id:
|
381
|
-
-
|
381
|
+
- 0bac9ce4-ded3-4c4b-bfe5-0c2df2616044
|
382
382
|
X-Runtime:
|
383
|
-
- '0.
|
383
|
+
- '0.034932'
|
384
384
|
Content-Length:
|
385
|
-
- '
|
385
|
+
- '646'
|
386
386
|
body:
|
387
387
|
encoding: UTF-8
|
388
|
-
string: '{"_id":"
|
389
|
-
projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"
|
388
|
+
string: '{"_id":"5650f0a687f6436cbc00002f","created_at":"2015-11-21T22:31:02Z","updated_at":"2015-11-21T22:31:02Z","name":"Our
|
389
|
+
projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"public_submission_accounts":[],"public_submission_title_template":null,"entry_template":null,"display_settings":null,"fields":[{"_id":"5650f0a687f6436cbc000030","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":[]}'
|
390
390
|
http_version:
|
391
|
-
recorded_at:
|
391
|
+
recorded_at: Sat, 21 Nov 2015 22:31:02 GMT
|
392
392
|
- request:
|
393
393
|
method: post
|
394
394
|
uri: http://localhost:3000/locomotive/api/v3/tokens.json
|
@@ -412,23 +412,23 @@ http_interactions:
|
|
412
412
|
Content-Type:
|
413
413
|
- application/json
|
414
414
|
Etag:
|
415
|
-
- W/"
|
415
|
+
- W/"120917583ae3f64355d682b690f7cb40"
|
416
416
|
Cache-Control:
|
417
417
|
- max-age=0, private, must-revalidate
|
418
418
|
X-Request-Id:
|
419
|
-
-
|
419
|
+
- fd0cd01a-6b3e-408e-bc63-934588d2ef75
|
420
420
|
X-Runtime:
|
421
|
-
- '0.
|
421
|
+
- '0.016271'
|
422
422
|
Content-Length:
|
423
423
|
- '32'
|
424
424
|
body:
|
425
425
|
encoding: UTF-8
|
426
|
-
string: '{"token":"
|
426
|
+
string: '{"token":"E2aoXzMxkFsLnCcmCcc_"}'
|
427
427
|
http_version:
|
428
|
-
recorded_at:
|
428
|
+
recorded_at: Sat, 21 Nov 2015 22:31:02 GMT
|
429
429
|
- request:
|
430
430
|
method: get
|
431
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json?auth_token=
|
431
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json?auth_token=E2aoXzMxkFsLnCcmCcc_
|
432
432
|
body:
|
433
433
|
encoding: US-ASCII
|
434
434
|
string: ''
|
@@ -438,7 +438,7 @@ http_interactions:
|
|
438
438
|
X-Locomotive-Account-Email:
|
439
439
|
- admin@locomotivecms.com
|
440
440
|
X-Locomotive-Account-Token:
|
441
|
-
-
|
441
|
+
- E2aoXzMxkFsLnCcmCcc_
|
442
442
|
Accept-Encoding:
|
443
443
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
444
444
|
User-Agent:
|
@@ -455,29 +455,29 @@ http_interactions:
|
|
455
455
|
Cache-Control:
|
456
456
|
- max-age=0, private, must-revalidate
|
457
457
|
X-Request-Id:
|
458
|
-
-
|
458
|
+
- ddf03cdf-3c03-4b31-9c7a-344895d670fe
|
459
459
|
X-Runtime:
|
460
|
-
- '0.
|
460
|
+
- '0.026817'
|
461
461
|
Content-Length:
|
462
462
|
- '2'
|
463
463
|
body:
|
464
464
|
encoding: UTF-8
|
465
465
|
string: "[]"
|
466
466
|
http_version:
|
467
|
-
recorded_at:
|
467
|
+
recorded_at: Sat, 21 Nov 2015 22:31:02 GMT
|
468
468
|
- request:
|
469
469
|
method: post
|
470
470
|
uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json
|
471
471
|
body:
|
472
472
|
encoding: UTF-8
|
473
|
-
string: auth_token=
|
473
|
+
string: auth_token=E2aoXzMxkFsLnCcmCcc_&content_type%5Bfields%5D%5B0%5D%5Blabel%5D=Name&content_type%5Bfields%5D%5B0%5D%5Bname%5D=name&content_type%5Bfields%5D%5B0%5D%5Btype%5D=string&content_type%5Bname%5D=Projects&content_type%5Bslug%5D=projects
|
474
474
|
headers:
|
475
475
|
Accept:
|
476
476
|
- application/json
|
477
477
|
X-Locomotive-Account-Email:
|
478
478
|
- admin@locomotivecms.com
|
479
479
|
X-Locomotive-Account-Token:
|
480
|
-
-
|
480
|
+
- E2aoXzMxkFsLnCcmCcc_
|
481
481
|
Content-Type:
|
482
482
|
- application/x-www-form-urlencoded
|
483
483
|
Accept-Encoding:
|
@@ -492,23 +492,23 @@ http_interactions:
|
|
492
492
|
Content-Type:
|
493
493
|
- application/json
|
494
494
|
Etag:
|
495
|
-
- W/"
|
495
|
+
- W/"5bd996a0c76180d2067dd58da62c38ee"
|
496
496
|
Cache-Control:
|
497
497
|
- max-age=0, private, must-revalidate
|
498
498
|
X-Request-Id:
|
499
|
-
-
|
499
|
+
- 8435fbb9-e79a-49d6-847d-f98afa7367ec
|
500
500
|
X-Runtime:
|
501
|
-
- '0.
|
501
|
+
- '0.045048'
|
502
502
|
Content-Length:
|
503
|
-
- '
|
503
|
+
- '642'
|
504
504
|
body:
|
505
505
|
encoding: UTF-8
|
506
|
-
string: '{"_id":"
|
506
|
+
string: '{"_id":"5650f0a687f6436cbc000031","created_at":"2015-11-21T22:31:02Z","updated_at":"2015-11-21T22:31:02Z","name":"Projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"public_submission_accounts":[],"public_submission_title_template":null,"entry_template":null,"display_settings":null,"fields":[{"_id":"5650f0a687f6436cbc000032","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":[]}'
|
507
507
|
http_version:
|
508
|
-
recorded_at:
|
508
|
+
recorded_at: Sat, 21 Nov 2015 22:31:02 GMT
|
509
509
|
- request:
|
510
510
|
method: get
|
511
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json?auth_token=
|
511
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json?auth_token=E2aoXzMxkFsLnCcmCcc_
|
512
512
|
body:
|
513
513
|
encoding: US-ASCII
|
514
514
|
string: ''
|
@@ -518,7 +518,7 @@ http_interactions:
|
|
518
518
|
X-Locomotive-Account-Email:
|
519
519
|
- admin@locomotivecms.com
|
520
520
|
X-Locomotive-Account-Token:
|
521
|
-
-
|
521
|
+
- E2aoXzMxkFsLnCcmCcc_
|
522
522
|
Accept-Encoding:
|
523
523
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
524
524
|
User-Agent:
|
@@ -531,18 +531,18 @@ http_interactions:
|
|
531
531
|
Content-Type:
|
532
532
|
- application/json
|
533
533
|
Etag:
|
534
|
-
- W/"
|
534
|
+
- W/"4673dad796685df901103fedd2a98d78"
|
535
535
|
Cache-Control:
|
536
536
|
- max-age=0, private, must-revalidate
|
537
537
|
X-Request-Id:
|
538
|
-
-
|
538
|
+
- 9cc63853-441f-4895-8412-9e23f0ea913d
|
539
539
|
X-Runtime:
|
540
|
-
- '0.
|
540
|
+
- '0.025730'
|
541
541
|
Content-Length:
|
542
|
-
- '
|
542
|
+
- '644'
|
543
543
|
body:
|
544
544
|
encoding: UTF-8
|
545
|
-
string: '[{"_id":"
|
545
|
+
string: '[{"_id":"5650f0a687f6436cbc000031","created_at":"2015-11-21T22:31:02Z","updated_at":"2015-11-21T22:31:02Z","name":"Projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"public_submission_accounts":[],"public_submission_title_template":null,"entry_template":null,"display_settings":null,"fields":[{"_id":"5650f0a687f6436cbc000032","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":[]}]'
|
546
546
|
http_version:
|
547
|
-
recorded_at:
|
547
|
+
recorded_at: Sat, 21 Nov 2015 22:31:02 GMT
|
548
548
|
recorded_with: VCR 2.9.3
|
@@ -23,35 +23,35 @@ 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
|
+
- 0c8e7398-d6c1-4c98-bbf9-4f78c0a39e32
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.021537'
|
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
|
-
method:
|
42
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/current_site.json
|
41
|
+
method: put
|
42
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/current_site.json
|
43
43
|
body:
|
44
|
-
encoding:
|
45
|
-
string:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: auth_token=E2aoXzMxkFsLnCcmCcc_&site%5Bname%5D=John+Doe
|
46
46
|
headers:
|
47
47
|
Accept:
|
48
48
|
- application/json
|
49
49
|
X-Locomotive-Account-Email:
|
50
50
|
- admin@locomotivecms.com
|
51
51
|
X-Locomotive-Account-Token:
|
52
|
-
-
|
53
|
-
|
54
|
-
-
|
52
|
+
- E2aoXzMxkFsLnCcmCcc_
|
53
|
+
Content-Type:
|
54
|
+
- application/x-www-form-urlencoded
|
55
55
|
Accept-Encoding:
|
56
56
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
57
57
|
User-Agent:
|
@@ -64,36 +64,37 @@ http_interactions:
|
|
64
64
|
Content-Type:
|
65
65
|
- application/json
|
66
66
|
Etag:
|
67
|
-
- W/"
|
67
|
+
- W/"5873d2dddcf880350e75d29a1a1ac1b3"
|
68
68
|
Cache-Control:
|
69
69
|
- max-age=0, private, must-revalidate
|
70
70
|
X-Request-Id:
|
71
|
-
-
|
71
|
+
- 0896c42c-cbea-4680-9b6f-b9169114edcb
|
72
72
|
X-Runtime:
|
73
|
-
- '0.
|
73
|
+
- '0.045360'
|
74
74
|
Content-Length:
|
75
|
-
- '
|
75
|
+
- '761'
|
76
76
|
body:
|
77
77
|
encoding: UTF-8
|
78
|
-
string: '{"_id":"
|
79
|
-
|
78
|
+
string: '{"_id":"5650f08c87f6436c94000006","created_at":"2015-11-21T22:30:36Z","updated_at":"2015-11-21T22:31:02Z","name":"John
|
79
|
+
Doe","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
|
80
|
+
Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"content_version":1448145062,"template_version":1448145061,"picture_thumbnail_url":null,"preview_url":"http://localhost:3000/locomotive/sample/preview","sign_in_url":"http://localhost:3000/locomotive/sign_in"}'
|
80
81
|
http_version:
|
81
|
-
recorded_at:
|
82
|
+
recorded_at: Sat, 21 Nov 2015 22:31:02 GMT
|
82
83
|
- request:
|
83
|
-
method:
|
84
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/current_site.json
|
84
|
+
method: get
|
85
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/current_site.json?auth_token=E2aoXzMxkFsLnCcmCcc_
|
85
86
|
body:
|
86
|
-
encoding:
|
87
|
-
string:
|
87
|
+
encoding: US-ASCII
|
88
|
+
string: ''
|
88
89
|
headers:
|
89
90
|
Accept:
|
90
91
|
- application/json
|
91
92
|
X-Locomotive-Account-Email:
|
92
93
|
- admin@locomotivecms.com
|
93
94
|
X-Locomotive-Account-Token:
|
94
|
-
-
|
95
|
-
|
96
|
-
-
|
95
|
+
- E2aoXzMxkFsLnCcmCcc_
|
96
|
+
X-Locomotive-Locale:
|
97
|
+
- ''
|
97
98
|
Accept-Encoding:
|
98
99
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
99
100
|
User-Agent:
|
@@ -106,19 +107,20 @@ http_interactions:
|
|
106
107
|
Content-Type:
|
107
108
|
- application/json
|
108
109
|
Etag:
|
109
|
-
- W/"
|
110
|
+
- W/"5873d2dddcf880350e75d29a1a1ac1b3"
|
110
111
|
Cache-Control:
|
111
112
|
- max-age=0, private, must-revalidate
|
112
113
|
X-Request-Id:
|
113
|
-
-
|
114
|
+
- 123ba8e2-804c-4870-9a2a-038e2fd30d0b
|
114
115
|
X-Runtime:
|
115
|
-
- '0.
|
116
|
+
- '0.039938'
|
116
117
|
Content-Length:
|
117
|
-
- '
|
118
|
+
- '761'
|
118
119
|
body:
|
119
120
|
encoding: UTF-8
|
120
|
-
string: '{"_id":"
|
121
|
-
Doe","handle":"sample","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":["sample.example.com"],"memberships":[{"_id":"
|
121
|
+
string: '{"_id":"5650f08c87f6436c94000006","created_at":"2015-11-21T22:30:36Z","updated_at":"2015-11-21T22:31:02Z","name":"John
|
122
|
+
Doe","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
|
123
|
+
Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"content_version":1448145062,"template_version":1448145061,"picture_thumbnail_url":null,"preview_url":"http://localhost:3000/locomotive/sample/preview","sign_in_url":"http://localhost:3000/locomotive/sign_in"}'
|
122
124
|
http_version:
|
123
|
-
recorded_at:
|
125
|
+
recorded_at: Sat, 21 Nov 2015 22:31:02 GMT
|
124
126
|
recorded_with: VCR 2.9.3
|