locomotivecms_coal 1.6.0.rc1 → 1.6.0.rc2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.travis.yml +1 -1
  4. data/Gemfile +0 -4
  5. data/Gemfile.lock +7 -8
  6. data/MIT-LICENSE +1 -1
  7. data/README.md +18 -3
  8. data/lib/locomotive/coal/client.rb +8 -0
  9. data/lib/locomotive/coal/resources/accounts.rb +33 -0
  10. data/lib/locomotive/coal/resources/concerns/request.rb +19 -1
  11. data/lib/locomotive/coal/version.rb +1 -1
  12. data/lib/locomotive/coal.rb +1 -0
  13. data/locomotivecms_coal.gemspec +1 -1
  14. data/spec/fixtures/coal_cassettes/accounts.yml +214 -0
  15. data/spec/fixtures/coal_cassettes/client.yml +277 -163
  16. data/spec/fixtures/coal_cassettes/content_assets.yml +144 -445
  17. data/spec/fixtures/coal_cassettes/content_entries.yml +963 -1647
  18. data/spec/fixtures/coal_cassettes/content_types.yml +387 -209
  19. data/spec/fixtures/coal_cassettes/current_site.yml +89 -49
  20. data/spec/fixtures/coal_cassettes/memberships.yml +143 -77
  21. data/spec/fixtures/coal_cassettes/my_account.yml +163 -99
  22. data/spec/fixtures/coal_cassettes/pages.yml +177 -99
  23. data/spec/fixtures/coal_cassettes/sections.yml +121 -78
  24. data/spec/fixtures/coal_cassettes/sites.yml +108 -141
  25. data/spec/fixtures/coal_cassettes/snippets.yml +140 -76
  26. data/spec/fixtures/coal_cassettes/theme_assets.yml +142 -254
  27. data/spec/fixtures/coal_cassettes/token.yml +64 -43
  28. data/spec/fixtures/coal_cassettes/translations.yml +140 -76
  29. data/spec/fixtures/coal_cassettes/version.yml +54 -30
  30. data/spec/integration/resources/accounts_spec.rb +38 -0
  31. data/spec/integration/resources/sections_spec.rb +1 -1
  32. data/spec/integration/resources/token_spec.rb +1 -1
  33. metadata +10 -6
@@ -7,14 +7,16 @@ http_interactions:
7
7
  encoding: UTF-8
8
8
  string: email=admin%40locomotivecms.com&password=locomotive
9
9
  headers:
10
+ User-Agent:
11
+ - Faraday v0.15.4
10
12
  Accept:
11
13
  - application/json
14
+ Accept-Encoding:
15
+ - gzip,deflate
16
+ Date:
17
+ - Sun, 17 Nov 2019 16:39:32 GMT
12
18
  Content-Type:
13
19
  - application/x-www-form-urlencoded
14
- Accept-Encoding:
15
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
- User-Agent:
17
- - Ruby
18
20
  response:
19
21
  status:
20
22
  code: 201
@@ -22,40 +24,50 @@ http_interactions:
22
24
  headers:
23
25
  Content-Type:
24
26
  - application/json
25
- Etag:
26
- - W/"120917583ae3f64355d682b690f7cb40"
27
+ Content-Length:
28
+ - '32'
29
+ Connection:
30
+ - keep-alive
31
+ Status:
32
+ - 201 Created
27
33
  Cache-Control:
28
34
  - max-age=0, private, must-revalidate
29
- X-Request-Id:
30
- - 563b037a-95ba-4ba9-847e-98262d3fc998
35
+ Etag:
36
+ - W/"410e3d6fde24f39257a7cc619b61baa7"
31
37
  X-Runtime:
32
- - '0.016689'
33
- Content-Length:
34
- - '32'
38
+ - '0.004719'
39
+ X-Request-Id:
40
+ - 8196aa14-8d94-4e09-9f3f-fe2d829df383
41
+ Date:
42
+ - Sun, 17 Nov 2019 16:39:32 GMT
43
+ X-Powered-By:
44
+ - Phusion Passenger 6.0.4
45
+ Server:
46
+ - nginx/1.17.3 + Phusion Passenger 6.0.4
35
47
  body:
36
48
  encoding: UTF-8
37
- string: '{"token":"E2aoXzMxkFsLnCcmCcc_"}'
49
+ string: '{"token":"bzwAyFQzcchf_hgDQhz3"}'
38
50
  http_version:
39
- recorded_at: Sat, 21 Nov 2015 22:31:01 GMT
51
+ recorded_at: Sun, 17 Nov 2019 16:39:32 GMT
40
52
  - request:
41
53
  method: get
42
- uri: http://localhost:3000/locomotive/api/v3/translations.json?auth_token=E2aoXzMxkFsLnCcmCcc_
54
+ uri: http://localhost:3000/locomotive/api/v3/version.json?auth_token=bzwAyFQzcchf_hgDQhz3&email=admin@locomotivecms.com&handle&password=locomotive&token=bzwAyFQzcchf_hgDQhz3
43
55
  body:
44
- encoding: US-ASCII
56
+ encoding: UTF-8
45
57
  string: ''
46
58
  headers:
59
+ User-Agent:
60
+ - Faraday v0.15.4
47
61
  Accept:
48
62
  - application/json
63
+ Accept-Encoding:
64
+ - gzip,deflate
65
+ Date:
66
+ - Sun, 17 Nov 2019 16:39:32 GMT
49
67
  X-Locomotive-Account-Email:
50
68
  - admin@locomotivecms.com
51
69
  X-Locomotive-Account-Token:
52
- - E2aoXzMxkFsLnCcmCcc_
53
- X-Locomotive-Site-Handle:
54
- - sample
55
- Accept-Encoding:
56
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
57
- User-Agent:
58
- - Ruby
70
+ - bzwAyFQzcchf_hgDQhz3
59
71
  response:
60
72
  status:
61
73
  code: 200
@@ -63,40 +75,50 @@ http_interactions:
63
75
  headers:
64
76
  Content-Type:
65
77
  - application/json
66
- Etag:
67
- - W/"d751713988987e9331980363e24189ce"
78
+ Content-Length:
79
+ - '22'
80
+ Connection:
81
+ - keep-alive
82
+ Status:
83
+ - 200 OK
68
84
  Cache-Control:
69
85
  - max-age=0, private, must-revalidate
70
- X-Request-Id:
71
- - 2c9d7aea-563d-47c0-9d1b-6d1bf383d928
86
+ Etag:
87
+ - W/"f981a5a7069dbbda33875006acb1b026"
72
88
  X-Runtime:
73
- - '0.024363'
74
- Content-Length:
75
- - '2'
89
+ - '0.001494'
90
+ X-Request-Id:
91
+ - 2de89019-c520-4de0-940f-690eaf9f2c6f
92
+ Date:
93
+ - Sun, 17 Nov 2019 16:39:32 GMT
94
+ X-Powered-By:
95
+ - Phusion Passenger 6.0.4
96
+ Server:
97
+ - nginx/1.17.3 + Phusion Passenger 6.0.4
76
98
  body:
77
99
  encoding: UTF-8
78
- string: "[]"
100
+ string: '{"engine":"4.0.0.rc0"}'
79
101
  http_version:
80
- recorded_at: Sat, 21 Nov 2015 22:31:01 GMT
102
+ recorded_at: Sun, 17 Nov 2019 16:39:32 GMT
81
103
  - request:
82
104
  method: get
83
- uri: http://localhost:3000/locomotive/api/v3/theme_assets.json?auth_token=E2aoXzMxkFsLnCcmCcc_
105
+ uri: http://localhost:3000/locomotive/api/v3/sites.json?auth_token=bzwAyFQzcchf_hgDQhz3
84
106
  body:
85
- encoding: US-ASCII
107
+ encoding: UTF-8
86
108
  string: ''
87
109
  headers:
110
+ User-Agent:
111
+ - Faraday v0.15.4
88
112
  Accept:
89
113
  - application/json
114
+ Accept-Encoding:
115
+ - gzip,deflate
116
+ Date:
117
+ - Sun, 17 Nov 2019 16:39:32 GMT
90
118
  X-Locomotive-Account-Email:
91
119
  - admin@locomotivecms.com
92
120
  X-Locomotive-Account-Token:
93
- - E2aoXzMxkFsLnCcmCcc_
94
- X-Locomotive-Site-Handle:
95
- - sample
96
- Accept-Encoding:
97
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
98
- User-Agent:
99
- - Ruby
121
+ - bzwAyFQzcchf_hgDQhz3
100
122
  response:
101
123
  status:
102
124
  code: 200
@@ -104,42 +126,57 @@ http_interactions:
104
126
  headers:
105
127
  Content-Type:
106
128
  - application/json
107
- Etag:
108
- - W/"d751713988987e9331980363e24189ce"
129
+ Transfer-Encoding:
130
+ - chunked
131
+ Connection:
132
+ - keep-alive
133
+ Status:
134
+ - 200 OK
109
135
  Cache-Control:
110
136
  - max-age=0, private, must-revalidate
111
- X-Request-Id:
112
- - 4f4a42ff-65a9-4b52-b5fe-a3b2f7d07a79
137
+ Etag:
138
+ - W/"1ae391370bc74e2e90cb2d350c757b60"
113
139
  X-Runtime:
114
- - '0.022396'
115
- Content-Length:
116
- - '2'
140
+ - '0.017736'
141
+ X-Request-Id:
142
+ - db992ca9-8572-4b4f-ab9b-9fdf51e01de2
143
+ Date:
144
+ - Sun, 17 Nov 2019 16:39:32 GMT
145
+ X-Powered-By:
146
+ - Phusion Passenger 6.0.4
147
+ Server:
148
+ - nginx/1.17.3 + Phusion Passenger 6.0.4
149
+ Content-Encoding:
150
+ - gzip
117
151
  body:
118
152
  encoding: UTF-8
119
- string: "[]"
153
+ string: '[{"_id":"5dd1779ba95330a94bf7253e","created_at":"2019-11-17T16:38:51Z","updated_at":"2019-11-17T16:38:52Z","name":"LocomotiveCMS","handle":"www","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"cache_enabled":false,"private_access":false,"locales":["en","fr","nb"],"prefix_default_locale":false,"bypass_browser_locale":false,"domains":["www.example.com"],"asset_host":null,"url_redirections":[],"memberships":[{"_id":"5dd1779ca95330a94bf72541","created_at":null,"updated_at":null,"role":"admin","account_id":"5dd1779ba95330a94bf7253c","name":"John
154
+ Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"content_version":1574008732,"template_version":1574008732,"picture_thumbnail_url":null,"preview_url":"http://localhost:3000/locomotive/www/preview","sign_in_url":"http://localhost:3000/locomotive/sign_in","metafields":"{}","metafields_schema":"[]","metafields_ui":"{}","sections_content":"{}","routes":"[]"},{"_id":"5dd1779ca95330a94bf72542","created_at":"2019-11-17T16:38:52Z","updated_at":"2019-11-17T16:39:31Z","name":"John
155
+ Doe","handle":"sample","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"cache_enabled":false,"private_access":false,"locales":["en"],"prefix_default_locale":false,"bypass_browser_locale":false,"domains":["sample.example.com","acme.example.local"],"asset_host":null,"url_redirections":[],"memberships":[{"_id":"5dd1779ca95330a94bf72545","created_at":null,"updated_at":null,"role":"admin","account_id":"5dd1779ba95330a94bf7253c","name":"John
156
+ Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"content_version":1574008771,"template_version":1574008771,"picture_thumbnail_url":null,"preview_url":"http://localhost:3000/locomotive/sample/preview","sign_in_url":"http://localhost:3000/locomotive/sign_in","metafields":"{}","metafields_schema":"[]","metafields_ui":"{}","sections_content":"{}","routes":"[]"}]'
120
157
  http_version:
121
- recorded_at: Sat, 21 Nov 2015 22:31:01 GMT
158
+ recorded_at: Sun, 17 Nov 2019 16:39:32 GMT
122
159
  - request:
123
160
  method: get
124
- uri: http://localhost:3000/locomotive/api/v3/snippets.json?auth_token=E2aoXzMxkFsLnCcmCcc_
161
+ uri: http://localhost:3000/locomotive/api/v3/translations.json?auth_token=bzwAyFQzcchf_hgDQhz3
125
162
  body:
126
- encoding: US-ASCII
163
+ encoding: UTF-8
127
164
  string: ''
128
165
  headers:
166
+ User-Agent:
167
+ - Faraday v0.15.4
129
168
  Accept:
130
169
  - application/json
170
+ Accept-Encoding:
171
+ - gzip,deflate
172
+ Date:
173
+ - Sun, 17 Nov 2019 16:39:32 GMT
131
174
  X-Locomotive-Account-Email:
132
175
  - admin@locomotivecms.com
133
176
  X-Locomotive-Account-Token:
134
- - E2aoXzMxkFsLnCcmCcc_
177
+ - bzwAyFQzcchf_hgDQhz3
135
178
  X-Locomotive-Site-Handle:
136
179
  - sample
137
- X-Locomotive-Locale:
138
- - ''
139
- Accept-Encoding:
140
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
141
- User-Agent:
142
- - Ruby
143
180
  response:
144
181
  status:
145
182
  code: 200
@@ -147,38 +184,54 @@ http_interactions:
147
184
  headers:
148
185
  Content-Type:
149
186
  - application/json
150
- Etag:
151
- - W/"d751713988987e9331980363e24189ce"
187
+ Content-Length:
188
+ - '2'
189
+ Connection:
190
+ - keep-alive
191
+ Status:
192
+ - 200 OK
152
193
  Cache-Control:
153
194
  - max-age=0, private, must-revalidate
154
- X-Request-Id:
155
- - 9c2b1a33-ce62-4cc8-8b5e-d6e0a7c3a2fa
195
+ Etag:
196
+ - W/"4f53cda18c2baa0c0354bb5f9a3ecbe5"
156
197
  X-Runtime:
157
- - '0.025010'
158
- Content-Length:
159
- - '2'
198
+ - '0.012577'
199
+ X-Request-Id:
200
+ - 28ae5ea5-976d-41e7-9b15-5bf1433ded99
201
+ Date:
202
+ - Sun, 17 Nov 2019 16:39:32 GMT
203
+ X-Powered-By:
204
+ - Phusion Passenger 6.0.4
205
+ Server:
206
+ - nginx/1.17.3 + Phusion Passenger 6.0.4
160
207
  body:
161
208
  encoding: UTF-8
162
209
  string: "[]"
163
210
  http_version:
164
- recorded_at: Sat, 21 Nov 2015 22:31:01 GMT
211
+ recorded_at: Sun, 17 Nov 2019 16:39:32 GMT
165
212
  - request:
166
213
  method: get
167
- uri: http://localhost:3000/locomotive/api/v3/my_account.json?auth_token=E2aoXzMxkFsLnCcmCcc_
214
+ uri: http://localhost:3000/locomotive/api/v3/snippets.json?auth_token=bzwAyFQzcchf_hgDQhz3
168
215
  body:
169
- encoding: US-ASCII
216
+ encoding: UTF-8
170
217
  string: ''
171
218
  headers:
219
+ User-Agent:
220
+ - Faraday v0.15.4
172
221
  Accept:
173
222
  - application/json
223
+ Accept-Encoding:
224
+ - gzip,deflate
225
+ Date:
226
+ - Sun, 17 Nov 2019 16:39:32 GMT
174
227
  X-Locomotive-Account-Email:
175
228
  - admin@locomotivecms.com
176
229
  X-Locomotive-Account-Token:
177
- - E2aoXzMxkFsLnCcmCcc_
178
- Accept-Encoding:
179
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
180
- User-Agent:
181
- - Ruby
230
+ - bzwAyFQzcchf_hgDQhz3
231
+ X-Locomotive-Site-Handle:
232
+ - sample
233
+ X-Locomotive-Locale:
234
+ - ''
182
235
  response:
183
236
  status:
184
237
  code: 200
@@ -186,39 +239,52 @@ http_interactions:
186
239
  headers:
187
240
  Content-Type:
188
241
  - application/json
189
- Etag:
190
- - W/"aa5b3af2d3ff7e0d53fd68d1d077876d"
242
+ Content-Length:
243
+ - '2'
244
+ Connection:
245
+ - keep-alive
246
+ Status:
247
+ - 200 OK
191
248
  Cache-Control:
192
249
  - max-age=0, private, must-revalidate
193
- X-Request-Id:
194
- - 730e4b17-7029-4dd0-a64b-b148b029e140
250
+ Etag:
251
+ - W/"4f53cda18c2baa0c0354bb5f9a3ecbe5"
195
252
  X-Runtime:
196
- - '0.018450'
197
- Content-Length:
198
- - '264'
253
+ - '0.012780'
254
+ X-Request-Id:
255
+ - 15388fed-6780-4496-a008-48de6e595a0e
256
+ Date:
257
+ - Sun, 17 Nov 2019 16:39:32 GMT
258
+ X-Powered-By:
259
+ - Phusion Passenger 6.0.4
260
+ Server:
261
+ - nginx/1.17.3 + Phusion Passenger 6.0.4
199
262
  body:
200
263
  encoding: UTF-8
201
- string: '{"_id":"5650f08c87f6436c94000000","created_at":"2015-11-21T22:30:36Z","updated_at":"2015-11-21T22:30:57Z","name":"John
202
- Doe","email":"admin@locomotivecms.com","locale":"en","api_key":"d49cd50f6f0d2b163f48fc73cb249f0244c37074","super_admin":false,"local_admin":true}'
264
+ string: "[]"
203
265
  http_version:
204
- recorded_at: Sat, 21 Nov 2015 22:31:01 GMT
266
+ recorded_at: Sun, 17 Nov 2019 16:39:32 GMT
205
267
  - request:
206
268
  method: get
207
- uri: http://localhost:3000/locomotive/api/v3/version.json?auth_token=E2aoXzMxkFsLnCcmCcc_&email=admin@locomotivecms.com&handle&password=locomotive&token=E2aoXzMxkFsLnCcmCcc_
269
+ uri: http://localhost:3000/locomotive/api/v3/theme_assets.json?auth_token=bzwAyFQzcchf_hgDQhz3
208
270
  body:
209
- encoding: US-ASCII
271
+ encoding: UTF-8
210
272
  string: ''
211
273
  headers:
274
+ User-Agent:
275
+ - Faraday v0.15.4
212
276
  Accept:
213
277
  - application/json
278
+ Accept-Encoding:
279
+ - gzip,deflate
280
+ Date:
281
+ - Sun, 17 Nov 2019 16:39:32 GMT
214
282
  X-Locomotive-Account-Email:
215
283
  - admin@locomotivecms.com
216
284
  X-Locomotive-Account-Token:
217
- - E2aoXzMxkFsLnCcmCcc_
218
- Accept-Encoding:
219
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
220
- User-Agent:
221
- - Ruby
285
+ - bzwAyFQzcchf_hgDQhz3
286
+ X-Locomotive-Site-Handle:
287
+ - sample
222
288
  response:
223
289
  status:
224
290
  code: 200
@@ -226,117 +292,153 @@ http_interactions:
226
292
  headers:
227
293
  Content-Type:
228
294
  - application/json
229
- Etag:
230
- - W/"a29b8ca75f03b52361cf5f1f8ebf001a"
295
+ Content-Length:
296
+ - '2'
297
+ Connection:
298
+ - keep-alive
299
+ Status:
300
+ - 200 OK
231
301
  Cache-Control:
232
302
  - max-age=0, private, must-revalidate
233
- X-Request-Id:
234
- - b4b489bf-7d9d-4afe-b4af-e59d5ad0de30
303
+ Etag:
304
+ - W/"4f53cda18c2baa0c0354bb5f9a3ecbe5"
235
305
  X-Runtime:
236
- - '0.044076'
237
- Content-Length:
238
- - '22'
306
+ - '0.012150'
307
+ X-Request-Id:
308
+ - 1e202de2-fa49-48ce-a3ac-44f392aff945
309
+ Date:
310
+ - Sun, 17 Nov 2019 16:39:32 GMT
311
+ X-Powered-By:
312
+ - Phusion Passenger 6.0.4
313
+ Server:
314
+ - nginx/1.17.3 + Phusion Passenger 6.0.4
239
315
  body:
240
316
  encoding: UTF-8
241
- string: '{"engine":"3.0.0.rc3"}'
317
+ string: "[]"
242
318
  http_version:
243
- recorded_at: Sat, 21 Nov 2015 22:31:01 GMT
319
+ recorded_at: Sun, 17 Nov 2019 16:39:32 GMT
244
320
  - request:
245
- method: post
246
- uri: http://www.example.com:3000/locomotive/api/v3/tokens.json
321
+ method: get
322
+ uri: http://localhost:3000/locomotive/api/v3/my_account.json?auth_token=bzwAyFQzcchf_hgDQhz3
247
323
  body:
248
324
  encoding: UTF-8
249
- string: email=admin%40locomotivecms.com&password=locomotive
325
+ string: ''
250
326
  headers:
327
+ User-Agent:
328
+ - Faraday v0.15.4
251
329
  Accept:
252
330
  - application/json
253
- Content-Type:
254
- - application/x-www-form-urlencoded
255
331
  Accept-Encoding:
256
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
257
- User-Agent:
258
- - Ruby
332
+ - gzip,deflate
333
+ Date:
334
+ - Sun, 17 Nov 2019 16:39:32 GMT
335
+ X-Locomotive-Account-Email:
336
+ - admin@locomotivecms.com
337
+ X-Locomotive-Account-Token:
338
+ - bzwAyFQzcchf_hgDQhz3
259
339
  response:
260
340
  status:
261
- code: 201
262
- message: Created
341
+ code: 200
342
+ message: OK
263
343
  headers:
264
344
  Content-Type:
265
345
  - application/json
266
- Etag:
267
- - W/"120917583ae3f64355d682b690f7cb40"
346
+ Transfer-Encoding:
347
+ - chunked
348
+ Connection:
349
+ - keep-alive
350
+ Status:
351
+ - 200 OK
268
352
  Cache-Control:
269
353
  - max-age=0, private, must-revalidate
270
- X-Request-Id:
271
- - 59981259-cff3-4b83-bc7f-49b2d4ab3596
354
+ Etag:
355
+ - W/"7f5b02da1aa964d6d9d0be396d5d6fb9"
272
356
  X-Runtime:
273
- - '0.016983'
274
- Content-Length:
275
- - '32'
357
+ - '0.005394'
358
+ X-Request-Id:
359
+ - 3f849fa0-80ce-4296-8b62-b98a5b310dca
360
+ Date:
361
+ - Sun, 17 Nov 2019 16:39:32 GMT
362
+ X-Powered-By:
363
+ - Phusion Passenger 6.0.4
364
+ Server:
365
+ - nginx/1.17.3 + Phusion Passenger 6.0.4
366
+ Content-Encoding:
367
+ - gzip
276
368
  body:
277
369
  encoding: UTF-8
278
- string: '{"token":"E2aoXzMxkFsLnCcmCcc_"}'
370
+ string: '{"_id":"5dd1779ba95330a94bf7253c","created_at":"2019-11-17T16:38:51Z","updated_at":"2019-11-17T16:39:30Z","name":"John
371
+ Doe","email":"admin@locomotivecms.com","locale":"en","api_key":"d49cd50f6f0d2b163f48fc73cb249f0244c37074","super_admin":true,"local_admin":true}'
279
372
  http_version:
280
- recorded_at: Sat, 21 Nov 2015 22:31:01 GMT
373
+ recorded_at: Sun, 17 Nov 2019 16:39:32 GMT
281
374
  - request:
282
- method: get
283
- uri: http://www.example.com:3000/locomotive/api/v3/sites.json?auth_token=E2aoXzMxkFsLnCcmCcc_
375
+ method: post
376
+ uri: http://www.example.com:3000/locomotive/api/v3/tokens.json
284
377
  body:
285
- encoding: US-ASCII
286
- string: ''
378
+ encoding: UTF-8
379
+ string: email=admin%40locomotivecms.com&password=locomotive
287
380
  headers:
381
+ User-Agent:
382
+ - Faraday v0.15.4
288
383
  Accept:
289
384
  - application/json
290
- X-Locomotive-Account-Email:
291
- - admin@locomotivecms.com
292
- X-Locomotive-Account-Token:
293
- - E2aoXzMxkFsLnCcmCcc_
294
385
  Accept-Encoding:
295
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
296
- User-Agent:
297
- - Ruby
386
+ - gzip,deflate
387
+ Date:
388
+ - Sun, 17 Nov 2019 16:39:32 GMT
389
+ Content-Type:
390
+ - application/x-www-form-urlencoded
298
391
  response:
299
392
  status:
300
- code: 200
301
- message: OK
393
+ code: 201
394
+ message: Created
302
395
  headers:
303
396
  Content-Type:
304
397
  - application/json
305
- Etag:
306
- - W/"ab03a9f4d3dea863ce5151f3c1615c68"
398
+ Content-Length:
399
+ - '32'
400
+ Connection:
401
+ - keep-alive
402
+ Status:
403
+ - 201 Created
307
404
  Cache-Control:
308
405
  - max-age=0, private, must-revalidate
309
- X-Request-Id:
310
- - 96107ad0-fbfb-4936-ab0f-ba1fa6a97b29
406
+ Etag:
407
+ - W/"410e3d6fde24f39257a7cc619b61baa7"
311
408
  X-Runtime:
312
- - '0.052228'
313
- Content-Length:
314
- - '1548'
409
+ - '0.004678'
410
+ X-Request-Id:
411
+ - c8105946-af4c-4710-9153-c33c3bcb3a52
412
+ Date:
413
+ - Sun, 17 Nov 2019 16:39:32 GMT
414
+ X-Powered-By:
415
+ - Phusion Passenger 6.0.4
416
+ Server:
417
+ - nginx/1.17.3 + Phusion Passenger 6.0.4
315
418
  body:
316
419
  encoding: UTF-8
317
- string: '[{"_id":"5650f08c87f6436c94000002","created_at":"2015-11-21T22:30:36Z","updated_at":"2015-11-21T22:30:36Z","name":"LocomotiveCMS","handle":"www","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"cache_enabled":false,"locales":["en"],"domains":["www.example.com"],"memberships":[{"_id":"5650f08c87f6436c94000005","created_at":null,"updated_at":null,"role":"admin","account_id":"5650f08c87f6436c94000000","name":"John
318
- Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"content_version":1448145036,"template_version":1448145036,"picture_thumbnail_url":null,"preview_url":"http://www.example.com:3000/locomotive/www/preview","sign_in_url":"http://www.example.com:3000/locomotive/sign_in"},{"_id":"5650f08c87f6436c94000006","created_at":"2015-11-21T22:30:36Z","updated_at":"2015-11-21T22:31:01Z","name":"Sample
319
- site","handle":"sample","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"cache_enabled":false,"locales":["en"],"domains":["sample.example.com"],"memberships":[{"_id":"5650f08c87f6436c94000009","created_at":null,"updated_at":null,"role":"admin","account_id":"5650f08c87f6436c94000000","name":"John
320
- Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"content_version":1448145061,"template_version":1448145061,"picture_thumbnail_url":null,"preview_url":"http://www.example.com:3000/locomotive/sample/preview","sign_in_url":"http://www.example.com:3000/locomotive/sign_in"}]'
420
+ string: '{"token":"bzwAyFQzcchf_hgDQhz3"}'
321
421
  http_version:
322
- recorded_at: Sat, 21 Nov 2015 22:31:01 GMT
422
+ recorded_at: Sun, 17 Nov 2019 16:39:32 GMT
323
423
  - request:
324
424
  method: get
325
- uri: http://localhost:3000/locomotive/api/v3/sites.json?auth_token=E2aoXzMxkFsLnCcmCcc_
425
+ uri: http://www.example.com:3000/locomotive/api/v3/sites.json?auth_token=bzwAyFQzcchf_hgDQhz3
326
426
  body:
327
- encoding: US-ASCII
427
+ encoding: UTF-8
328
428
  string: ''
329
429
  headers:
430
+ User-Agent:
431
+ - Faraday v0.15.4
330
432
  Accept:
331
433
  - application/json
434
+ Accept-Encoding:
435
+ - gzip,deflate
436
+ Date:
437
+ - Sun, 17 Nov 2019 16:39:32 GMT
332
438
  X-Locomotive-Account-Email:
333
439
  - admin@locomotivecms.com
334
440
  X-Locomotive-Account-Token:
335
- - E2aoXzMxkFsLnCcmCcc_
336
- Accept-Encoding:
337
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
338
- User-Agent:
339
- - Ruby
441
+ - bzwAyFQzcchf_hgDQhz3
340
442
  response:
341
443
  status:
342
444
  code: 200
@@ -344,22 +446,34 @@ http_interactions:
344
446
  headers:
345
447
  Content-Type:
346
448
  - application/json
347
- Etag:
348
- - W/"c57af570058b42e9dc527096fba1f9ff"
449
+ Transfer-Encoding:
450
+ - chunked
451
+ Connection:
452
+ - keep-alive
453
+ Status:
454
+ - 200 OK
349
455
  Cache-Control:
350
456
  - max-age=0, private, must-revalidate
351
- X-Request-Id:
352
- - b0711a74-6e7c-4504-ba08-add55f08ef4a
457
+ Etag:
458
+ - W/"0d5f2b1c38ab048e2038cc485c409a84"
353
459
  X-Runtime:
354
- - '0.054612'
355
- Content-Length:
356
- - '1524'
460
+ - '0.013838'
461
+ X-Request-Id:
462
+ - 7f27d0c1-6ea5-4c05-a6ea-f37daf3d9dae
463
+ Date:
464
+ - Sun, 17 Nov 2019 16:39:32 GMT
465
+ X-Powered-By:
466
+ - Phusion Passenger 6.0.4
467
+ Server:
468
+ - nginx/1.17.3 + Phusion Passenger 6.0.4
469
+ Content-Encoding:
470
+ - gzip
357
471
  body:
358
472
  encoding: UTF-8
359
- string: '[{"_id":"5650f08c87f6436c94000002","created_at":"2015-11-21T22:30:36Z","updated_at":"2015-11-21T22:30:36Z","name":"LocomotiveCMS","handle":"www","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"cache_enabled":false,"locales":["en"],"domains":["www.example.com"],"memberships":[{"_id":"5650f08c87f6436c94000005","created_at":null,"updated_at":null,"role":"admin","account_id":"5650f08c87f6436c94000000","name":"John
360
- Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"content_version":1448145036,"template_version":1448145036,"picture_thumbnail_url":null,"preview_url":"http://localhost:3000/locomotive/www/preview","sign_in_url":"http://localhost:3000/locomotive/sign_in"},{"_id":"5650f08c87f6436c94000006","created_at":"2015-11-21T22:30:36Z","updated_at":"2015-11-21T22:31:01Z","name":"Sample
361
- site","handle":"sample","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"cache_enabled":false,"locales":["en"],"domains":["sample.example.com"],"memberships":[{"_id":"5650f08c87f6436c94000009","created_at":null,"updated_at":null,"role":"admin","account_id":"5650f08c87f6436c94000000","name":"John
362
- Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"content_version":1448145061,"template_version":1448145061,"picture_thumbnail_url":null,"preview_url":"http://localhost:3000/locomotive/sample/preview","sign_in_url":"http://localhost:3000/locomotive/sign_in"}]'
473
+ string: '[{"_id":"5dd1779ba95330a94bf7253e","created_at":"2019-11-17T16:38:51Z","updated_at":"2019-11-17T16:38:52Z","name":"LocomotiveCMS","handle":"www","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"cache_enabled":false,"private_access":false,"locales":["en","fr","nb"],"prefix_default_locale":false,"bypass_browser_locale":false,"domains":["www.example.com"],"asset_host":null,"url_redirections":[],"memberships":[{"_id":"5dd1779ca95330a94bf72541","created_at":null,"updated_at":null,"role":"admin","account_id":"5dd1779ba95330a94bf7253c","name":"John
474
+ Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"content_version":1574008732,"template_version":1574008732,"picture_thumbnail_url":null,"preview_url":"http://www.example.com:3000/locomotive/www/preview","sign_in_url":"http://www.example.com:3000/locomotive/sign_in","metafields":"{}","metafields_schema":"[]","metafields_ui":"{}","sections_content":"{}","routes":"[]"},{"_id":"5dd1779ca95330a94bf72542","created_at":"2019-11-17T16:38:52Z","updated_at":"2019-11-17T16:39:31Z","name":"John
475
+ Doe","handle":"sample","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"cache_enabled":false,"private_access":false,"locales":["en"],"prefix_default_locale":false,"bypass_browser_locale":false,"domains":["sample.example.com","acme.example.local"],"asset_host":null,"url_redirections":[],"memberships":[{"_id":"5dd1779ca95330a94bf72545","created_at":null,"updated_at":null,"role":"admin","account_id":"5dd1779ba95330a94bf7253c","name":"John
476
+ Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"content_version":1574008771,"template_version":1574008771,"picture_thumbnail_url":null,"preview_url":"http://www.example.com:3000/locomotive/sample/preview","sign_in_url":"http://www.example.com:3000/locomotive/sign_in","metafields":"{}","metafields_schema":"[]","metafields_ui":"{}","sections_content":"{}","routes":"[]"}]'
363
477
  http_version:
364
- recorded_at: Sat, 21 Nov 2015 22:31:01 GMT
365
- recorded_with: VCR 2.9.3
478
+ recorded_at: Sun, 17 Nov 2019 16:39:32 GMT
479
+ recorded_with: VCR 4.0.0