locomotivecms_coal 1.6.0.beta1 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +2 -3
- data/Gemfile +1 -6
- data/Gemfile.lock +54 -59
- data/MIT-LICENSE +1 -1
- data/README.md +20 -5
- data/lib/locomotive/coal/client.rb +8 -0
- data/lib/locomotive/coal/resources/accounts.rb +33 -0
- data/lib/locomotive/coal/resources/concerns/request.rb +19 -1
- data/lib/locomotive/coal/version.rb +1 -1
- data/lib/locomotive/coal.rb +1 -0
- data/locomotivecms_coal.gemspec +5 -6
- data/spec/fixtures/coal_cassettes/accounts.yml +214 -0
- data/spec/fixtures/coal_cassettes/client.yml +277 -163
- data/spec/fixtures/coal_cassettes/content_assets.yml +144 -445
- data/spec/fixtures/coal_cassettes/content_entries.yml +963 -1647
- data/spec/fixtures/coal_cassettes/content_types.yml +387 -209
- data/spec/fixtures/coal_cassettes/current_site.yml +89 -49
- data/spec/fixtures/coal_cassettes/memberships.yml +143 -77
- data/spec/fixtures/coal_cassettes/my_account.yml +163 -99
- data/spec/fixtures/coal_cassettes/pages.yml +177 -99
- data/spec/fixtures/coal_cassettes/sections.yml +121 -78
- data/spec/fixtures/coal_cassettes/sites.yml +108 -141
- data/spec/fixtures/coal_cassettes/snippets.yml +140 -76
- data/spec/fixtures/coal_cassettes/theme_assets.yml +142 -254
- data/spec/fixtures/coal_cassettes/token.yml +64 -43
- data/spec/fixtures/coal_cassettes/translations.yml +140 -76
- data/spec/fixtures/coal_cassettes/version.yml +54 -30
- data/spec/integration/resources/accounts_spec.rb +38 -0
- data/spec/integration/resources/sections_spec.rb +1 -1
- data/spec/integration/resources/token_spec.rb +1 -1
- metadata +20 -30
@@ -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
|
-
|
26
|
-
-
|
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
|
-
|
30
|
-
-
|
35
|
+
Etag:
|
36
|
+
- W/"410e3d6fde24f39257a7cc619b61baa7"
|
31
37
|
X-Runtime:
|
32
|
-
- '0.
|
33
|
-
|
34
|
-
-
|
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":"
|
49
|
+
string: '{"token":"bzwAyFQzcchf_hgDQhz3"}'
|
38
50
|
http_version:
|
39
|
-
recorded_at:
|
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/
|
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:
|
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
|
-
-
|
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
|
-
|
67
|
-
-
|
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
|
-
|
71
|
-
-
|
86
|
+
Etag:
|
87
|
+
- W/"f981a5a7069dbbda33875006acb1b026"
|
72
88
|
X-Runtime:
|
73
|
-
- '0.
|
74
|
-
|
75
|
-
-
|
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:
|
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/
|
105
|
+
uri: http://localhost:3000/locomotive/api/v3/sites.json?auth_token=bzwAyFQzcchf_hgDQhz3
|
84
106
|
body:
|
85
|
-
encoding:
|
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
|
-
-
|
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
|
-
|
108
|
-
-
|
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
|
-
|
112
|
-
-
|
137
|
+
Etag:
|
138
|
+
- W/"1ae391370bc74e2e90cb2d350c757b60"
|
113
139
|
X-Runtime:
|
114
|
-
- '0.
|
115
|
-
|
116
|
-
-
|
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:
|
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/
|
161
|
+
uri: http://localhost:3000/locomotive/api/v3/translations.json?auth_token=bzwAyFQzcchf_hgDQhz3
|
125
162
|
body:
|
126
|
-
encoding:
|
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
|
-
-
|
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
|
-
|
151
|
-
-
|
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
|
-
|
155
|
-
-
|
195
|
+
Etag:
|
196
|
+
- W/"4f53cda18c2baa0c0354bb5f9a3ecbe5"
|
156
197
|
X-Runtime:
|
157
|
-
- '0.
|
158
|
-
|
159
|
-
-
|
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:
|
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/
|
214
|
+
uri: http://localhost:3000/locomotive/api/v3/snippets.json?auth_token=bzwAyFQzcchf_hgDQhz3
|
168
215
|
body:
|
169
|
-
encoding:
|
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
|
-
-
|
178
|
-
|
179
|
-
-
|
180
|
-
|
181
|
-
-
|
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
|
-
|
190
|
-
-
|
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
|
-
|
194
|
-
-
|
250
|
+
Etag:
|
251
|
+
- W/"4f53cda18c2baa0c0354bb5f9a3ecbe5"
|
195
252
|
X-Runtime:
|
196
|
-
- '0.
|
197
|
-
|
198
|
-
-
|
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:
|
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:
|
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/
|
269
|
+
uri: http://localhost:3000/locomotive/api/v3/theme_assets.json?auth_token=bzwAyFQzcchf_hgDQhz3
|
208
270
|
body:
|
209
|
-
encoding:
|
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
|
-
-
|
218
|
-
|
219
|
-
-
|
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
|
-
|
230
|
-
-
|
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
|
-
|
234
|
-
-
|
303
|
+
Etag:
|
304
|
+
- W/"4f53cda18c2baa0c0354bb5f9a3ecbe5"
|
235
305
|
X-Runtime:
|
236
|
-
- '0.
|
237
|
-
|
238
|
-
-
|
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:
|
317
|
+
string: "[]"
|
242
318
|
http_version:
|
243
|
-
recorded_at:
|
319
|
+
recorded_at: Sun, 17 Nov 2019 16:39:32 GMT
|
244
320
|
- request:
|
245
|
-
method:
|
246
|
-
uri: http://
|
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:
|
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
|
257
|
-
|
258
|
-
-
|
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:
|
262
|
-
message:
|
341
|
+
code: 200
|
342
|
+
message: OK
|
263
343
|
headers:
|
264
344
|
Content-Type:
|
265
345
|
- application/json
|
266
|
-
|
267
|
-
-
|
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
|
-
|
271
|
-
-
|
354
|
+
Etag:
|
355
|
+
- W/"7f5b02da1aa964d6d9d0be396d5d6fb9"
|
272
356
|
X-Runtime:
|
273
|
-
- '0.
|
274
|
-
|
275
|
-
-
|
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: '{"
|
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:
|
373
|
+
recorded_at: Sun, 17 Nov 2019 16:39:32 GMT
|
281
374
|
- request:
|
282
|
-
method:
|
283
|
-
uri: http://www.example.com:3000/locomotive/api/v3/
|
375
|
+
method: post
|
376
|
+
uri: http://www.example.com:3000/locomotive/api/v3/tokens.json
|
284
377
|
body:
|
285
|
-
encoding:
|
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
|
296
|
-
|
297
|
-
-
|
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:
|
301
|
-
message:
|
393
|
+
code: 201
|
394
|
+
message: Created
|
302
395
|
headers:
|
303
396
|
Content-Type:
|
304
397
|
- application/json
|
305
|
-
|
306
|
-
-
|
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
|
-
|
310
|
-
-
|
406
|
+
Etag:
|
407
|
+
- W/"410e3d6fde24f39257a7cc619b61baa7"
|
311
408
|
X-Runtime:
|
312
|
-
- '0.
|
313
|
-
|
314
|
-
-
|
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: '
|
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:
|
422
|
+
recorded_at: Sun, 17 Nov 2019 16:39:32 GMT
|
323
423
|
- request:
|
324
424
|
method: get
|
325
|
-
uri: http://
|
425
|
+
uri: http://www.example.com:3000/locomotive/api/v3/sites.json?auth_token=bzwAyFQzcchf_hgDQhz3
|
326
426
|
body:
|
327
|
-
encoding:
|
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
|
-
-
|
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
|
-
|
348
|
-
-
|
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
|
-
|
352
|
-
-
|
457
|
+
Etag:
|
458
|
+
- W/"0d5f2b1c38ab048e2038cc485c409a84"
|
353
459
|
X-Runtime:
|
354
|
-
- '0.
|
355
|
-
|
356
|
-
-
|
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":"
|
360
|
-
Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"content_version":
|
361
|
-
|
362
|
-
Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"content_version":
|
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:
|
365
|
-
recorded_with: VCR
|
478
|
+
recorded_at: Sun, 17 Nov 2019 16:39:32 GMT
|
479
|
+
recorded_with: VCR 4.0.0
|