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:30 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,38 +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.004834'
|
39
|
+
X-Request-Id:
|
40
|
+
- bf4424d0-9f13-4088-803c-2fe1e6253665
|
41
|
+
Date:
|
42
|
+
- Sun, 17 Nov 2019 16:39:30 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:30 GMT
|
40
52
|
- request:
|
41
53
|
method: get
|
42
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json?auth_token=
|
54
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json?auth_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:30 GMT
|
49
67
|
X-Locomotive-Account-Email:
|
50
68
|
- admin@locomotivecms.com
|
51
69
|
X-Locomotive-Account-Token:
|
52
|
-
-
|
53
|
-
Accept-Encoding:
|
54
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
55
|
-
User-Agent:
|
56
|
-
- Ruby
|
70
|
+
- bzwAyFQzcchf_hgDQhz3
|
57
71
|
response:
|
58
72
|
status:
|
59
73
|
code: 200
|
@@ -61,21 +75,31 @@ http_interactions:
|
|
61
75
|
headers:
|
62
76
|
Content-Type:
|
63
77
|
- application/json
|
64
|
-
|
65
|
-
-
|
78
|
+
Content-Length:
|
79
|
+
- '2'
|
80
|
+
Connection:
|
81
|
+
- keep-alive
|
82
|
+
Status:
|
83
|
+
- 200 OK
|
66
84
|
Cache-Control:
|
67
85
|
- max-age=0, private, must-revalidate
|
68
|
-
|
69
|
-
-
|
86
|
+
Etag:
|
87
|
+
- W/"4f53cda18c2baa0c0354bb5f9a3ecbe5"
|
70
88
|
X-Runtime:
|
71
|
-
- '0.
|
72
|
-
|
73
|
-
-
|
89
|
+
- '0.019162'
|
90
|
+
X-Request-Id:
|
91
|
+
- 0145b7ba-87e8-4606-95d4-e246462b5118
|
92
|
+
Date:
|
93
|
+
- Sun, 17 Nov 2019 16:39:31 GMT
|
94
|
+
X-Powered-By:
|
95
|
+
- Phusion Passenger 6.0.4
|
96
|
+
Server:
|
97
|
+
- nginx/1.17.3 + Phusion Passenger 6.0.4
|
74
98
|
body:
|
75
99
|
encoding: UTF-8
|
76
100
|
string: "[]"
|
77
101
|
http_version:
|
78
|
-
recorded_at:
|
102
|
+
recorded_at: Sun, 17 Nov 2019 16:39:31 GMT
|
79
103
|
- request:
|
80
104
|
method: post
|
81
105
|
uri: http://localhost:3000/locomotive/api/v3/tokens.json
|
@@ -83,14 +107,16 @@ http_interactions:
|
|
83
107
|
encoding: UTF-8
|
84
108
|
string: email=admin%40locomotivecms.com&password=locomotive
|
85
109
|
headers:
|
110
|
+
User-Agent:
|
111
|
+
- Faraday v0.15.4
|
86
112
|
Accept:
|
87
113
|
- application/json
|
114
|
+
Accept-Encoding:
|
115
|
+
- gzip,deflate
|
116
|
+
Date:
|
117
|
+
- Sun, 17 Nov 2019 16:39:31 GMT
|
88
118
|
Content-Type:
|
89
119
|
- application/x-www-form-urlencoded
|
90
|
-
Accept-Encoding:
|
91
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
92
|
-
User-Agent:
|
93
|
-
- Ruby
|
94
120
|
response:
|
95
121
|
status:
|
96
122
|
code: 201
|
@@ -98,40 +124,52 @@ http_interactions:
|
|
98
124
|
headers:
|
99
125
|
Content-Type:
|
100
126
|
- application/json
|
101
|
-
|
102
|
-
-
|
127
|
+
Content-Length:
|
128
|
+
- '32'
|
129
|
+
Connection:
|
130
|
+
- keep-alive
|
131
|
+
Status:
|
132
|
+
- 201 Created
|
103
133
|
Cache-Control:
|
104
134
|
- max-age=0, private, must-revalidate
|
105
|
-
|
106
|
-
-
|
135
|
+
Etag:
|
136
|
+
- W/"410e3d6fde24f39257a7cc619b61baa7"
|
107
137
|
X-Runtime:
|
108
|
-
- '0.
|
109
|
-
|
110
|
-
-
|
138
|
+
- '0.005706'
|
139
|
+
X-Request-Id:
|
140
|
+
- 330f3110-aaa5-48a3-b0c6-134476b0e0b1
|
141
|
+
Date:
|
142
|
+
- Sun, 17 Nov 2019 16:39:31 GMT
|
143
|
+
X-Powered-By:
|
144
|
+
- Phusion Passenger 6.0.4
|
145
|
+
Server:
|
146
|
+
- nginx/1.17.3 + Phusion Passenger 6.0.4
|
111
147
|
body:
|
112
148
|
encoding: UTF-8
|
113
|
-
string: '{"token":"
|
149
|
+
string: '{"token":"bzwAyFQzcchf_hgDQhz3"}'
|
114
150
|
http_version:
|
115
|
-
recorded_at:
|
151
|
+
recorded_at: Sun, 17 Nov 2019 16:39:31 GMT
|
116
152
|
- request:
|
117
153
|
method: post
|
118
154
|
uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json
|
119
155
|
body:
|
120
156
|
encoding: UTF-8
|
121
|
-
string: auth_token=
|
157
|
+
string: auth_token=bzwAyFQzcchf_hgDQhz3&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
158
|
headers:
|
159
|
+
User-Agent:
|
160
|
+
- Faraday v0.15.4
|
123
161
|
Accept:
|
124
162
|
- application/json
|
163
|
+
Accept-Encoding:
|
164
|
+
- gzip,deflate
|
165
|
+
Date:
|
166
|
+
- Sun, 17 Nov 2019 16:39:31 GMT
|
125
167
|
X-Locomotive-Account-Email:
|
126
168
|
- admin@locomotivecms.com
|
127
169
|
X-Locomotive-Account-Token:
|
128
|
-
-
|
170
|
+
- bzwAyFQzcchf_hgDQhz3
|
129
171
|
Content-Type:
|
130
172
|
- application/x-www-form-urlencoded
|
131
|
-
Accept-Encoding:
|
132
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
133
|
-
User-Agent:
|
134
|
-
- Ruby
|
135
173
|
response:
|
136
174
|
status:
|
137
175
|
code: 201
|
@@ -139,21 +177,31 @@ http_interactions:
|
|
139
177
|
headers:
|
140
178
|
Content-Type:
|
141
179
|
- application/json
|
142
|
-
|
143
|
-
-
|
180
|
+
Content-Length:
|
181
|
+
- '718'
|
182
|
+
Connection:
|
183
|
+
- keep-alive
|
184
|
+
Status:
|
185
|
+
- 201 Created
|
144
186
|
Cache-Control:
|
145
187
|
- max-age=0, private, must-revalidate
|
146
|
-
|
147
|
-
-
|
188
|
+
Etag:
|
189
|
+
- W/"e7d77d63d5c2a4109cc15acf07f54e0f"
|
148
190
|
X-Runtime:
|
149
|
-
- '0.
|
150
|
-
|
151
|
-
-
|
191
|
+
- '0.041714'
|
192
|
+
X-Request-Id:
|
193
|
+
- 1a0b4864-cb22-4ca4-b709-01c6aea74daa
|
194
|
+
Date:
|
195
|
+
- Sun, 17 Nov 2019 16:39:31 GMT
|
196
|
+
X-Powered-By:
|
197
|
+
- Phusion Passenger 6.0.4
|
198
|
+
Server:
|
199
|
+
- nginx/1.17.3 + Phusion Passenger 6.0.4
|
152
200
|
body:
|
153
201
|
encoding: UTF-8
|
154
|
-
string: '{"_id":"
|
202
|
+
string: '{"_id":"5dd177c3a95330aa17f8f8e0","created_at":"2019-11-17T16:39:31Z","updated_at":"2019-11-17T16:39:31Z","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,"recaptcha_required":false,"entry_template":null,"display_settings":null,"filter_fields":null,"fields":[{"_id":"5dd177c3a95330aa17f8f8e1","created_at":null,"updated_at":null,"name":"name","type":"string","label":"Name","hint":null,"required":true,"localized":false,"unique":false,"default":null,"position":0,"group":null}],"order_by":"created_at","group_by":null,"public_submission_account_emails":[]}'
|
155
203
|
http_version:
|
156
|
-
recorded_at:
|
204
|
+
recorded_at: Sun, 17 Nov 2019 16:39:31 GMT
|
157
205
|
- request:
|
158
206
|
method: post
|
159
207
|
uri: http://localhost:3000/locomotive/api/v3/tokens.json
|
@@ -161,14 +209,16 @@ http_interactions:
|
|
161
209
|
encoding: UTF-8
|
162
210
|
string: email=admin%40locomotivecms.com&password=locomotive
|
163
211
|
headers:
|
212
|
+
User-Agent:
|
213
|
+
- Faraday v0.15.4
|
164
214
|
Accept:
|
165
215
|
- application/json
|
216
|
+
Accept-Encoding:
|
217
|
+
- gzip,deflate
|
218
|
+
Date:
|
219
|
+
- Sun, 17 Nov 2019 16:39:31 GMT
|
166
220
|
Content-Type:
|
167
221
|
- application/x-www-form-urlencoded
|
168
|
-
Accept-Encoding:
|
169
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
170
|
-
User-Agent:
|
171
|
-
- Ruby
|
172
222
|
response:
|
173
223
|
status:
|
174
224
|
code: 201
|
@@ -176,38 +226,50 @@ http_interactions:
|
|
176
226
|
headers:
|
177
227
|
Content-Type:
|
178
228
|
- application/json
|
179
|
-
|
180
|
-
-
|
229
|
+
Content-Length:
|
230
|
+
- '32'
|
231
|
+
Connection:
|
232
|
+
- keep-alive
|
233
|
+
Status:
|
234
|
+
- 201 Created
|
181
235
|
Cache-Control:
|
182
236
|
- max-age=0, private, must-revalidate
|
183
|
-
|
184
|
-
-
|
237
|
+
Etag:
|
238
|
+
- W/"410e3d6fde24f39257a7cc619b61baa7"
|
185
239
|
X-Runtime:
|
186
|
-
- '0.
|
187
|
-
|
188
|
-
-
|
240
|
+
- '0.004343'
|
241
|
+
X-Request-Id:
|
242
|
+
- 902bc4d8-68d9-46b0-bf1c-ef7e1936a8d8
|
243
|
+
Date:
|
244
|
+
- Sun, 17 Nov 2019 16:39:31 GMT
|
245
|
+
X-Powered-By:
|
246
|
+
- Phusion Passenger 6.0.4
|
247
|
+
Server:
|
248
|
+
- nginx/1.17.3 + Phusion Passenger 6.0.4
|
189
249
|
body:
|
190
250
|
encoding: UTF-8
|
191
|
-
string: '{"token":"
|
251
|
+
string: '{"token":"bzwAyFQzcchf_hgDQhz3"}'
|
192
252
|
http_version:
|
193
|
-
recorded_at:
|
253
|
+
recorded_at: Sun, 17 Nov 2019 16:39:31 GMT
|
194
254
|
- request:
|
195
255
|
method: get
|
196
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json?auth_token=
|
256
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json?auth_token=bzwAyFQzcchf_hgDQhz3
|
197
257
|
body:
|
198
|
-
encoding:
|
258
|
+
encoding: UTF-8
|
199
259
|
string: ''
|
200
260
|
headers:
|
261
|
+
User-Agent:
|
262
|
+
- Faraday v0.15.4
|
201
263
|
Accept:
|
202
264
|
- application/json
|
265
|
+
Accept-Encoding:
|
266
|
+
- gzip,deflate
|
267
|
+
Date:
|
268
|
+
- Sun, 17 Nov 2019 16:39:31 GMT
|
203
269
|
X-Locomotive-Account-Email:
|
204
270
|
- admin@locomotivecms.com
|
205
271
|
X-Locomotive-Account-Token:
|
206
|
-
-
|
207
|
-
Accept-Encoding:
|
208
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
209
|
-
User-Agent:
|
210
|
-
- Ruby
|
272
|
+
- bzwAyFQzcchf_hgDQhz3
|
211
273
|
response:
|
212
274
|
status:
|
213
275
|
code: 200
|
@@ -215,40 +277,54 @@ http_interactions:
|
|
215
277
|
headers:
|
216
278
|
Content-Type:
|
217
279
|
- application/json
|
218
|
-
|
219
|
-
-
|
280
|
+
Transfer-Encoding:
|
281
|
+
- chunked
|
282
|
+
Connection:
|
283
|
+
- keep-alive
|
284
|
+
Status:
|
285
|
+
- 200 OK
|
220
286
|
Cache-Control:
|
221
287
|
- max-age=0, private, must-revalidate
|
222
|
-
|
223
|
-
-
|
288
|
+
Etag:
|
289
|
+
- W/"44a92f5b21a45896e5d20b2eaf366da6"
|
224
290
|
X-Runtime:
|
225
|
-
- '0.
|
226
|
-
|
227
|
-
-
|
291
|
+
- '0.013723'
|
292
|
+
X-Request-Id:
|
293
|
+
- 4483c884-e690-4e50-b36b-872f2a81ad5c
|
294
|
+
Date:
|
295
|
+
- Sun, 17 Nov 2019 16:39:31 GMT
|
296
|
+
X-Powered-By:
|
297
|
+
- Phusion Passenger 6.0.4
|
298
|
+
Server:
|
299
|
+
- nginx/1.17.3 + Phusion Passenger 6.0.4
|
300
|
+
Content-Encoding:
|
301
|
+
- gzip
|
228
302
|
body:
|
229
303
|
encoding: UTF-8
|
230
|
-
string: '[{"_id":"
|
304
|
+
string: '[{"_id":"5dd177c3a95330aa17f8f8e0","created_at":"2019-11-17T16:39:31Z","updated_at":"2019-11-17T16:39:31Z","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,"recaptcha_required":false,"entry_template":null,"display_settings":null,"filter_fields":null,"fields":[{"_id":"5dd177c3a95330aa17f8f8e1","created_at":null,"updated_at":null,"name":"name","type":"string","label":"Name","hint":null,"required":true,"localized":false,"unique":false,"default":null,"position":0,"group":null}],"order_by":"created_at","group_by":null,"public_submission_account_emails":[]}]'
|
231
305
|
http_version:
|
232
|
-
recorded_at:
|
306
|
+
recorded_at: Sun, 17 Nov 2019 16:39:31 GMT
|
233
307
|
- request:
|
234
308
|
method: put
|
235
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/content_types/
|
309
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/content_types/5dd177c3a95330aa17f8f8e0.json
|
236
310
|
body:
|
237
311
|
encoding: UTF-8
|
238
|
-
string: auth_token=
|
312
|
+
string: auth_token=bzwAyFQzcchf_hgDQhz3&content_type%5Bname%5D=Our+projects
|
239
313
|
headers:
|
314
|
+
User-Agent:
|
315
|
+
- Faraday v0.15.4
|
240
316
|
Accept:
|
241
317
|
- application/json
|
318
|
+
Accept-Encoding:
|
319
|
+
- gzip,deflate
|
320
|
+
Date:
|
321
|
+
- Sun, 17 Nov 2019 16:39:31 GMT
|
242
322
|
X-Locomotive-Account-Email:
|
243
323
|
- admin@locomotivecms.com
|
244
324
|
X-Locomotive-Account-Token:
|
245
|
-
-
|
325
|
+
- bzwAyFQzcchf_hgDQhz3
|
246
326
|
Content-Type:
|
247
327
|
- application/x-www-form-urlencoded
|
248
|
-
Accept-Encoding:
|
249
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
250
|
-
User-Agent:
|
251
|
-
- Ruby
|
252
328
|
response:
|
253
329
|
status:
|
254
330
|
code: 200
|
@@ -256,22 +332,34 @@ http_interactions:
|
|
256
332
|
headers:
|
257
333
|
Content-Type:
|
258
334
|
- application/json
|
259
|
-
|
260
|
-
-
|
335
|
+
Transfer-Encoding:
|
336
|
+
- chunked
|
337
|
+
Connection:
|
338
|
+
- keep-alive
|
339
|
+
Status:
|
340
|
+
- 200 OK
|
261
341
|
Cache-Control:
|
262
342
|
- max-age=0, private, must-revalidate
|
263
|
-
|
264
|
-
-
|
343
|
+
Etag:
|
344
|
+
- W/"fd00427806d5cfed5582896b1c5e3628"
|
265
345
|
X-Runtime:
|
266
|
-
- '0.
|
267
|
-
|
268
|
-
-
|
346
|
+
- '0.076354'
|
347
|
+
X-Request-Id:
|
348
|
+
- 83935294-a5e1-470f-9f25-3b459d81c7aa
|
349
|
+
Date:
|
350
|
+
- Sun, 17 Nov 2019 16:39:31 GMT
|
351
|
+
X-Powered-By:
|
352
|
+
- Phusion Passenger 6.0.4
|
353
|
+
Server:
|
354
|
+
- nginx/1.17.3 + Phusion Passenger 6.0.4
|
355
|
+
Content-Encoding:
|
356
|
+
- gzip
|
269
357
|
body:
|
270
358
|
encoding: UTF-8
|
271
|
-
string: '{"_id":"
|
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":"
|
359
|
+
string: '{"_id":"5dd177c3a95330aa17f8f8e0","created_at":"2019-11-17T16:39:31Z","updated_at":"2019-11-17T16:39:31Z","name":"Our
|
360
|
+
projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"public_submission_accounts":[],"public_submission_title_template":null,"recaptcha_required":false,"entry_template":null,"display_settings":null,"filter_fields":null,"fields":[{"_id":"5dd177c3a95330aa17f8f8e1","created_at":null,"updated_at":null,"name":"name","type":"string","label":"Name","hint":null,"required":true,"localized":false,"unique":false,"default":null,"position":0,"group":null}],"order_by":"created_at","group_by":null,"public_submission_account_emails":[]}'
|
273
361
|
http_version:
|
274
|
-
recorded_at:
|
362
|
+
recorded_at: Sun, 17 Nov 2019 16:39:31 GMT
|
275
363
|
- request:
|
276
364
|
method: post
|
277
365
|
uri: http://localhost:3000/locomotive/api/v3/tokens.json
|
@@ -279,14 +367,16 @@ http_interactions:
|
|
279
367
|
encoding: UTF-8
|
280
368
|
string: email=admin%40locomotivecms.com&password=locomotive
|
281
369
|
headers:
|
370
|
+
User-Agent:
|
371
|
+
- Faraday v0.15.4
|
282
372
|
Accept:
|
283
373
|
- application/json
|
374
|
+
Accept-Encoding:
|
375
|
+
- gzip,deflate
|
376
|
+
Date:
|
377
|
+
- Sun, 17 Nov 2019 16:39:31 GMT
|
284
378
|
Content-Type:
|
285
379
|
- application/x-www-form-urlencoded
|
286
|
-
Accept-Encoding:
|
287
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
288
|
-
User-Agent:
|
289
|
-
- Ruby
|
290
380
|
response:
|
291
381
|
status:
|
292
382
|
code: 201
|
@@ -294,38 +384,50 @@ http_interactions:
|
|
294
384
|
headers:
|
295
385
|
Content-Type:
|
296
386
|
- application/json
|
297
|
-
|
298
|
-
-
|
387
|
+
Content-Length:
|
388
|
+
- '32'
|
389
|
+
Connection:
|
390
|
+
- keep-alive
|
391
|
+
Status:
|
392
|
+
- 201 Created
|
299
393
|
Cache-Control:
|
300
394
|
- max-age=0, private, must-revalidate
|
301
|
-
|
302
|
-
-
|
395
|
+
Etag:
|
396
|
+
- W/"410e3d6fde24f39257a7cc619b61baa7"
|
303
397
|
X-Runtime:
|
304
|
-
- '0.
|
305
|
-
|
306
|
-
-
|
398
|
+
- '0.004795'
|
399
|
+
X-Request-Id:
|
400
|
+
- 156db0e1-dc0a-45b1-9bfe-1ba06ffa5eeb
|
401
|
+
Date:
|
402
|
+
- Sun, 17 Nov 2019 16:39:31 GMT
|
403
|
+
X-Powered-By:
|
404
|
+
- Phusion Passenger 6.0.4
|
405
|
+
Server:
|
406
|
+
- nginx/1.17.3 + Phusion Passenger 6.0.4
|
307
407
|
body:
|
308
408
|
encoding: UTF-8
|
309
|
-
string: '{"token":"
|
409
|
+
string: '{"token":"bzwAyFQzcchf_hgDQhz3"}'
|
310
410
|
http_version:
|
311
|
-
recorded_at:
|
411
|
+
recorded_at: Sun, 17 Nov 2019 16:39:31 GMT
|
312
412
|
- request:
|
313
413
|
method: get
|
314
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json?auth_token=
|
414
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json?auth_token=bzwAyFQzcchf_hgDQhz3
|
315
415
|
body:
|
316
|
-
encoding:
|
416
|
+
encoding: UTF-8
|
317
417
|
string: ''
|
318
418
|
headers:
|
419
|
+
User-Agent:
|
420
|
+
- Faraday v0.15.4
|
319
421
|
Accept:
|
320
422
|
- application/json
|
423
|
+
Accept-Encoding:
|
424
|
+
- gzip,deflate
|
425
|
+
Date:
|
426
|
+
- Sun, 17 Nov 2019 16:39:31 GMT
|
321
427
|
X-Locomotive-Account-Email:
|
322
428
|
- admin@locomotivecms.com
|
323
429
|
X-Locomotive-Account-Token:
|
324
|
-
-
|
325
|
-
Accept-Encoding:
|
326
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
327
|
-
User-Agent:
|
328
|
-
- Ruby
|
430
|
+
- bzwAyFQzcchf_hgDQhz3
|
329
431
|
response:
|
330
432
|
status:
|
331
433
|
code: 200
|
@@ -333,39 +435,53 @@ http_interactions:
|
|
333
435
|
headers:
|
334
436
|
Content-Type:
|
335
437
|
- application/json
|
336
|
-
|
337
|
-
-
|
438
|
+
Transfer-Encoding:
|
439
|
+
- chunked
|
440
|
+
Connection:
|
441
|
+
- keep-alive
|
442
|
+
Status:
|
443
|
+
- 200 OK
|
338
444
|
Cache-Control:
|
339
445
|
- max-age=0, private, must-revalidate
|
340
|
-
|
341
|
-
-
|
446
|
+
Etag:
|
447
|
+
- W/"7c87c8c468d5d0b3e1a862ae23e98a0c"
|
342
448
|
X-Runtime:
|
343
|
-
- '0.
|
344
|
-
|
345
|
-
-
|
449
|
+
- '0.017344'
|
450
|
+
X-Request-Id:
|
451
|
+
- 7c19dfce-9779-4da9-9a36-66682c437cf9
|
452
|
+
Date:
|
453
|
+
- Sun, 17 Nov 2019 16:39:31 GMT
|
454
|
+
X-Powered-By:
|
455
|
+
- Phusion Passenger 6.0.4
|
456
|
+
Server:
|
457
|
+
- nginx/1.17.3 + Phusion Passenger 6.0.4
|
458
|
+
Content-Encoding:
|
459
|
+
- gzip
|
346
460
|
body:
|
347
461
|
encoding: UTF-8
|
348
|
-
string: '[{"_id":"
|
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":"
|
462
|
+
string: '[{"_id":"5dd177c3a95330aa17f8f8e0","created_at":"2019-11-17T16:39:31Z","updated_at":"2019-11-17T16:39:31Z","name":"Our
|
463
|
+
projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"public_submission_accounts":[],"public_submission_title_template":null,"recaptcha_required":false,"entry_template":null,"display_settings":null,"filter_fields":null,"fields":[{"_id":"5dd177c3a95330aa17f8f8e1","created_at":null,"updated_at":null,"name":"name","type":"string","label":"Name","hint":null,"required":true,"localized":false,"unique":false,"default":null,"position":0,"group":null}],"order_by":"created_at","group_by":null,"public_submission_account_emails":[]}]'
|
350
464
|
http_version:
|
351
|
-
recorded_at:
|
465
|
+
recorded_at: Sun, 17 Nov 2019 16:39:31 GMT
|
352
466
|
- request:
|
353
467
|
method: delete
|
354
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/content_types/
|
468
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/content_types/5dd177c3a95330aa17f8f8e0.json?auth_token=bzwAyFQzcchf_hgDQhz3
|
355
469
|
body:
|
356
|
-
encoding:
|
470
|
+
encoding: UTF-8
|
357
471
|
string: ''
|
358
472
|
headers:
|
473
|
+
User-Agent:
|
474
|
+
- Faraday v0.15.4
|
359
475
|
Accept:
|
360
476
|
- application/json
|
477
|
+
Accept-Encoding:
|
478
|
+
- gzip,deflate
|
479
|
+
Date:
|
480
|
+
- Sun, 17 Nov 2019 16:39:31 GMT
|
361
481
|
X-Locomotive-Account-Email:
|
362
482
|
- admin@locomotivecms.com
|
363
483
|
X-Locomotive-Account-Token:
|
364
|
-
-
|
365
|
-
Accept-Encoding:
|
366
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
367
|
-
User-Agent:
|
368
|
-
- Ruby
|
484
|
+
- bzwAyFQzcchf_hgDQhz3
|
369
485
|
response:
|
370
486
|
status:
|
371
487
|
code: 200
|
@@ -373,22 +489,34 @@ http_interactions:
|
|
373
489
|
headers:
|
374
490
|
Content-Type:
|
375
491
|
- application/json
|
376
|
-
|
377
|
-
-
|
492
|
+
Transfer-Encoding:
|
493
|
+
- chunked
|
494
|
+
Connection:
|
495
|
+
- keep-alive
|
496
|
+
Status:
|
497
|
+
- 200 OK
|
378
498
|
Cache-Control:
|
379
499
|
- max-age=0, private, must-revalidate
|
380
|
-
|
381
|
-
-
|
500
|
+
Etag:
|
501
|
+
- W/"fd00427806d5cfed5582896b1c5e3628"
|
382
502
|
X-Runtime:
|
383
|
-
- '0.
|
384
|
-
|
385
|
-
-
|
503
|
+
- '0.022730'
|
504
|
+
X-Request-Id:
|
505
|
+
- 27d2df10-48fc-4dc2-8054-17c3c32a1724
|
506
|
+
Date:
|
507
|
+
- Sun, 17 Nov 2019 16:39:31 GMT
|
508
|
+
X-Powered-By:
|
509
|
+
- Phusion Passenger 6.0.4
|
510
|
+
Server:
|
511
|
+
- nginx/1.17.3 + Phusion Passenger 6.0.4
|
512
|
+
Content-Encoding:
|
513
|
+
- gzip
|
386
514
|
body:
|
387
515
|
encoding: UTF-8
|
388
|
-
string: '{"_id":"
|
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":"
|
516
|
+
string: '{"_id":"5dd177c3a95330aa17f8f8e0","created_at":"2019-11-17T16:39:31Z","updated_at":"2019-11-17T16:39:31Z","name":"Our
|
517
|
+
projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"public_submission_accounts":[],"public_submission_title_template":null,"recaptcha_required":false,"entry_template":null,"display_settings":null,"filter_fields":null,"fields":[{"_id":"5dd177c3a95330aa17f8f8e1","created_at":null,"updated_at":null,"name":"name","type":"string","label":"Name","hint":null,"required":true,"localized":false,"unique":false,"default":null,"position":0,"group":null}],"order_by":"created_at","group_by":null,"public_submission_account_emails":[]}'
|
390
518
|
http_version:
|
391
|
-
recorded_at:
|
519
|
+
recorded_at: Sun, 17 Nov 2019 16:39:31 GMT
|
392
520
|
- request:
|
393
521
|
method: post
|
394
522
|
uri: http://localhost:3000/locomotive/api/v3/tokens.json
|
@@ -396,14 +524,16 @@ http_interactions:
|
|
396
524
|
encoding: UTF-8
|
397
525
|
string: email=admin%40locomotivecms.com&password=locomotive
|
398
526
|
headers:
|
527
|
+
User-Agent:
|
528
|
+
- Faraday v0.15.4
|
399
529
|
Accept:
|
400
530
|
- application/json
|
531
|
+
Accept-Encoding:
|
532
|
+
- gzip,deflate
|
533
|
+
Date:
|
534
|
+
- Sun, 17 Nov 2019 16:39:31 GMT
|
401
535
|
Content-Type:
|
402
536
|
- application/x-www-form-urlencoded
|
403
|
-
Accept-Encoding:
|
404
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
405
|
-
User-Agent:
|
406
|
-
- Ruby
|
407
537
|
response:
|
408
538
|
status:
|
409
539
|
code: 201
|
@@ -411,38 +541,50 @@ http_interactions:
|
|
411
541
|
headers:
|
412
542
|
Content-Type:
|
413
543
|
- application/json
|
414
|
-
|
415
|
-
-
|
544
|
+
Content-Length:
|
545
|
+
- '32'
|
546
|
+
Connection:
|
547
|
+
- keep-alive
|
548
|
+
Status:
|
549
|
+
- 201 Created
|
416
550
|
Cache-Control:
|
417
551
|
- max-age=0, private, must-revalidate
|
418
|
-
|
419
|
-
-
|
552
|
+
Etag:
|
553
|
+
- W/"410e3d6fde24f39257a7cc619b61baa7"
|
420
554
|
X-Runtime:
|
421
|
-
- '0.
|
422
|
-
|
423
|
-
-
|
555
|
+
- '0.005318'
|
556
|
+
X-Request-Id:
|
557
|
+
- 976bdeef-5945-4ad1-ab18-9cb2dd8ef2e5
|
558
|
+
Date:
|
559
|
+
- Sun, 17 Nov 2019 16:39:31 GMT
|
560
|
+
X-Powered-By:
|
561
|
+
- Phusion Passenger 6.0.4
|
562
|
+
Server:
|
563
|
+
- nginx/1.17.3 + Phusion Passenger 6.0.4
|
424
564
|
body:
|
425
565
|
encoding: UTF-8
|
426
|
-
string: '{"token":"
|
566
|
+
string: '{"token":"bzwAyFQzcchf_hgDQhz3"}'
|
427
567
|
http_version:
|
428
|
-
recorded_at:
|
568
|
+
recorded_at: Sun, 17 Nov 2019 16:39:31 GMT
|
429
569
|
- request:
|
430
570
|
method: get
|
431
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json?auth_token=
|
571
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json?auth_token=bzwAyFQzcchf_hgDQhz3
|
432
572
|
body:
|
433
|
-
encoding:
|
573
|
+
encoding: UTF-8
|
434
574
|
string: ''
|
435
575
|
headers:
|
576
|
+
User-Agent:
|
577
|
+
- Faraday v0.15.4
|
436
578
|
Accept:
|
437
579
|
- application/json
|
580
|
+
Accept-Encoding:
|
581
|
+
- gzip,deflate
|
582
|
+
Date:
|
583
|
+
- Sun, 17 Nov 2019 16:39:31 GMT
|
438
584
|
X-Locomotive-Account-Email:
|
439
585
|
- admin@locomotivecms.com
|
440
586
|
X-Locomotive-Account-Token:
|
441
|
-
-
|
442
|
-
Accept-Encoding:
|
443
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
444
|
-
User-Agent:
|
445
|
-
- Ruby
|
587
|
+
- bzwAyFQzcchf_hgDQhz3
|
446
588
|
response:
|
447
589
|
status:
|
448
590
|
code: 200
|
@@ -450,40 +592,52 @@ http_interactions:
|
|
450
592
|
headers:
|
451
593
|
Content-Type:
|
452
594
|
- application/json
|
453
|
-
|
454
|
-
-
|
595
|
+
Content-Length:
|
596
|
+
- '2'
|
597
|
+
Connection:
|
598
|
+
- keep-alive
|
599
|
+
Status:
|
600
|
+
- 200 OK
|
455
601
|
Cache-Control:
|
456
602
|
- max-age=0, private, must-revalidate
|
457
|
-
|
458
|
-
-
|
603
|
+
Etag:
|
604
|
+
- W/"4f53cda18c2baa0c0354bb5f9a3ecbe5"
|
459
605
|
X-Runtime:
|
460
|
-
- '0.
|
461
|
-
|
462
|
-
-
|
606
|
+
- '0.013738'
|
607
|
+
X-Request-Id:
|
608
|
+
- e0cef2ff-8040-461d-8968-48484e361304
|
609
|
+
Date:
|
610
|
+
- Sun, 17 Nov 2019 16:39:31 GMT
|
611
|
+
X-Powered-By:
|
612
|
+
- Phusion Passenger 6.0.4
|
613
|
+
Server:
|
614
|
+
- nginx/1.17.3 + Phusion Passenger 6.0.4
|
463
615
|
body:
|
464
616
|
encoding: UTF-8
|
465
617
|
string: "[]"
|
466
618
|
http_version:
|
467
|
-
recorded_at:
|
619
|
+
recorded_at: Sun, 17 Nov 2019 16:39:31 GMT
|
468
620
|
- request:
|
469
621
|
method: post
|
470
622
|
uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json
|
471
623
|
body:
|
472
624
|
encoding: UTF-8
|
473
|
-
string: auth_token=
|
625
|
+
string: auth_token=bzwAyFQzcchf_hgDQhz3&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
626
|
headers:
|
627
|
+
User-Agent:
|
628
|
+
- Faraday v0.15.4
|
475
629
|
Accept:
|
476
630
|
- application/json
|
631
|
+
Accept-Encoding:
|
632
|
+
- gzip,deflate
|
633
|
+
Date:
|
634
|
+
- Sun, 17 Nov 2019 16:39:31 GMT
|
477
635
|
X-Locomotive-Account-Email:
|
478
636
|
- admin@locomotivecms.com
|
479
637
|
X-Locomotive-Account-Token:
|
480
|
-
-
|
638
|
+
- bzwAyFQzcchf_hgDQhz3
|
481
639
|
Content-Type:
|
482
640
|
- application/x-www-form-urlencoded
|
483
|
-
Accept-Encoding:
|
484
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
485
|
-
User-Agent:
|
486
|
-
- Ruby
|
487
641
|
response:
|
488
642
|
status:
|
489
643
|
code: 201
|
@@ -491,38 +645,50 @@ http_interactions:
|
|
491
645
|
headers:
|
492
646
|
Content-Type:
|
493
647
|
- application/json
|
494
|
-
|
495
|
-
-
|
648
|
+
Content-Length:
|
649
|
+
- '718'
|
650
|
+
Connection:
|
651
|
+
- keep-alive
|
652
|
+
Status:
|
653
|
+
- 201 Created
|
496
654
|
Cache-Control:
|
497
655
|
- max-age=0, private, must-revalidate
|
498
|
-
|
499
|
-
-
|
656
|
+
Etag:
|
657
|
+
- W/"befb1f6886030ee91b882410e972091c"
|
500
658
|
X-Runtime:
|
501
|
-
- '0.
|
502
|
-
|
503
|
-
-
|
659
|
+
- '0.027679'
|
660
|
+
X-Request-Id:
|
661
|
+
- 647c4005-6493-4ef7-9f99-fc15b9e4744b
|
662
|
+
Date:
|
663
|
+
- Sun, 17 Nov 2019 16:39:31 GMT
|
664
|
+
X-Powered-By:
|
665
|
+
- Phusion Passenger 6.0.4
|
666
|
+
Server:
|
667
|
+
- nginx/1.17.3 + Phusion Passenger 6.0.4
|
504
668
|
body:
|
505
669
|
encoding: UTF-8
|
506
|
-
string: '{"_id":"
|
670
|
+
string: '{"_id":"5dd177c3a95330aa17f8f8e2","created_at":"2019-11-17T16:39:31Z","updated_at":"2019-11-17T16:39:31Z","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,"recaptcha_required":false,"entry_template":null,"display_settings":null,"filter_fields":null,"fields":[{"_id":"5dd177c3a95330aa17f8f8e3","created_at":null,"updated_at":null,"name":"name","type":"string","label":"Name","hint":null,"required":true,"localized":false,"unique":false,"default":null,"position":0,"group":null}],"order_by":"created_at","group_by":null,"public_submission_account_emails":[]}'
|
507
671
|
http_version:
|
508
|
-
recorded_at:
|
672
|
+
recorded_at: Sun, 17 Nov 2019 16:39:31 GMT
|
509
673
|
- request:
|
510
674
|
method: get
|
511
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json?auth_token=
|
675
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json?auth_token=bzwAyFQzcchf_hgDQhz3
|
512
676
|
body:
|
513
|
-
encoding:
|
677
|
+
encoding: UTF-8
|
514
678
|
string: ''
|
515
679
|
headers:
|
680
|
+
User-Agent:
|
681
|
+
- Faraday v0.15.4
|
516
682
|
Accept:
|
517
683
|
- application/json
|
684
|
+
Accept-Encoding:
|
685
|
+
- gzip,deflate
|
686
|
+
Date:
|
687
|
+
- Sun, 17 Nov 2019 16:39:31 GMT
|
518
688
|
X-Locomotive-Account-Email:
|
519
689
|
- admin@locomotivecms.com
|
520
690
|
X-Locomotive-Account-Token:
|
521
|
-
-
|
522
|
-
Accept-Encoding:
|
523
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
524
|
-
User-Agent:
|
525
|
-
- Ruby
|
691
|
+
- bzwAyFQzcchf_hgDQhz3
|
526
692
|
response:
|
527
693
|
status:
|
528
694
|
code: 200
|
@@ -530,19 +696,31 @@ http_interactions:
|
|
530
696
|
headers:
|
531
697
|
Content-Type:
|
532
698
|
- application/json
|
533
|
-
|
534
|
-
-
|
699
|
+
Transfer-Encoding:
|
700
|
+
- chunked
|
701
|
+
Connection:
|
702
|
+
- keep-alive
|
703
|
+
Status:
|
704
|
+
- 200 OK
|
535
705
|
Cache-Control:
|
536
706
|
- max-age=0, private, must-revalidate
|
537
|
-
|
538
|
-
-
|
707
|
+
Etag:
|
708
|
+
- W/"8040cebb98ad22d53903648dfe561d68"
|
539
709
|
X-Runtime:
|
540
|
-
- '0.
|
541
|
-
|
542
|
-
-
|
710
|
+
- '0.013466'
|
711
|
+
X-Request-Id:
|
712
|
+
- c8f8c9d5-b8e2-48b4-a161-9fcfe507ce1e
|
713
|
+
Date:
|
714
|
+
- Sun, 17 Nov 2019 16:39:31 GMT
|
715
|
+
X-Powered-By:
|
716
|
+
- Phusion Passenger 6.0.4
|
717
|
+
Server:
|
718
|
+
- nginx/1.17.3 + Phusion Passenger 6.0.4
|
719
|
+
Content-Encoding:
|
720
|
+
- gzip
|
543
721
|
body:
|
544
722
|
encoding: UTF-8
|
545
|
-
string: '[{"_id":"
|
723
|
+
string: '[{"_id":"5dd177c3a95330aa17f8f8e2","created_at":"2019-11-17T16:39:31Z","updated_at":"2019-11-17T16:39:31Z","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,"recaptcha_required":false,"entry_template":null,"display_settings":null,"filter_fields":null,"fields":[{"_id":"5dd177c3a95330aa17f8f8e3","created_at":null,"updated_at":null,"name":"name","type":"string","label":"Name","hint":null,"required":true,"localized":false,"unique":false,"default":null,"position":0,"group":null}],"order_by":"created_at","group_by":null,"public_submission_account_emails":[]}]'
|
546
724
|
http_version:
|
547
|
-
recorded_at:
|
548
|
-
recorded_with: VCR
|
725
|
+
recorded_at: Sun, 17 Nov 2019 16:39:31 GMT
|
726
|
+
recorded_with: VCR 4.0.0
|