locomotivecms_coal 1.0.0.pre.alpha.1 → 1.0.0.pre.alpha.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.DS_Store +0 -0
- data/.gitignore +1 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +23 -12
- data/README.md +167 -10
- data/lib/locomotive/coal/client.rb +70 -20
- data/lib/locomotive/coal/client_v2.rb +31 -0
- data/lib/locomotive/coal/error.rb +46 -5
- data/lib/locomotive/coal/resources/base.rb +57 -0
- data/lib/locomotive/coal/resources/concerns/request.rb +101 -0
- data/lib/locomotive/coal/resources/content_assets.rb +9 -0
- data/lib/locomotive/coal/resources/content_entries.rb +17 -11
- data/lib/locomotive/coal/resources/{contents.rb → content_types.rb} +4 -5
- data/lib/locomotive/coal/resources/engine_version.rb +15 -0
- data/lib/locomotive/coal/resources/my_account.rb +14 -2
- data/lib/locomotive/coal/resources/pages.rb +25 -0
- data/lib/locomotive/coal/resources/sites.rb +5 -17
- data/lib/locomotive/coal/resources/snippets.rb +9 -0
- data/lib/locomotive/coal/resources/theme_assets.rb +13 -0
- data/lib/locomotive/coal/resources/token.rb +2 -2
- data/lib/locomotive/coal/resources/translations.rb +9 -0
- data/lib/locomotive/coal/upload_io.rb +11 -0
- data/lib/locomotive/coal/version.rb +1 -1
- data/lib/locomotive/coal.rb +11 -3
- data/locomotivecms_coal.gemspec +4 -4
- data/spec/fixtures/assets/locomotive.png +0 -0
- data/spec/fixtures/assets/rails.png +0 -0
- data/spec/fixtures/coal_cassettes/client.yml +333 -69
- data/spec/fixtures/coal_cassettes/content_assets.yml +595 -0
- data/spec/fixtures/coal_cassettes/content_entries.yml +1134 -223
- data/spec/fixtures/coal_cassettes/content_types.yml +616 -0
- data/spec/fixtures/coal_cassettes/my_account.yml +167 -47
- data/spec/fixtures/coal_cassettes/pages.yml +281 -0
- data/spec/fixtures/coal_cassettes/sites.yml +93 -117
- data/spec/fixtures/coal_cassettes/snippets.yml +227 -0
- data/spec/fixtures/coal_cassettes/theme_assets.yml +406 -0
- data/spec/fixtures/coal_cassettes/token.yml +37 -55
- data/spec/fixtures/coal_cassettes/translations.yml +227 -0
- data/spec/fixtures/coal_cassettes/version.yml +89 -0
- data/spec/integration/client_spec.rb +37 -3
- data/spec/integration/resources/content_assets_spec.rb +42 -0
- data/spec/integration/resources/content_entries_spec.rb +45 -18
- data/spec/integration/resources/content_types_spec.rb +44 -0
- data/spec/integration/resources/engine_version_spec.rb +17 -0
- data/spec/integration/resources/my_account_spec.rb +22 -5
- data/spec/integration/resources/pages_spec.rb +43 -0
- data/spec/integration/resources/sites_spec.rb +9 -9
- data/spec/integration/resources/snippets_spec.rb +38 -0
- data/spec/integration/resources/theme_assets_spec.rb +43 -0
- data/spec/integration/resources/token_spec.rb +7 -7
- data/spec/integration/resources/translations_spec.rb +38 -0
- data/spec/spec_helper.rb +2 -13
- data/spec/support/api_settings.rb +7 -3
- data/spec/support/assets.rb +4 -0
- data/spec/support/vcr.rb +10 -0
- data/spec/unit/error_spec.rb +28 -0
- metadata +71 -13
- data/lib/locomotive/coal/request.rb +0 -63
- data/spec/fixtures/coal_cassettes/contents.yml +0 -120
- data/spec/integration/resources/contents_spec.rb +0 -22
@@ -2,143 +2,407 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://
|
5
|
+
uri: http://localhost:3000/locomotive/api/v3/tokens.json
|
6
6
|
body:
|
7
|
-
encoding:
|
8
|
-
string: email=
|
7
|
+
encoding: UTF-8
|
8
|
+
string: email=admin%40locomotivecms.com&password=locomotive
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Content-Type:
|
13
|
+
- 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
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 201
|
21
|
+
message: Created
|
22
|
+
headers:
|
23
|
+
Content-Type:
|
24
|
+
- application/json
|
25
|
+
Content-Length:
|
26
|
+
- '32'
|
27
|
+
Etag:
|
28
|
+
- W/"6ba0e226b40adfde2d656d9027a1335f"
|
29
|
+
Cache-Control:
|
30
|
+
- max-age=0, private, must-revalidate
|
31
|
+
X-Request-Id:
|
32
|
+
- 0ec191d2-e289-4cbc-b837-2ced17afaa07
|
33
|
+
X-Runtime:
|
34
|
+
- '0.015012'
|
35
|
+
Connection:
|
36
|
+
- keep-alive
|
37
|
+
Server:
|
38
|
+
- thin
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"token":"Z9s7W_-BXyGQsDPFsorr"}'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Mon, 04 May 2015 13:51:30 GMT
|
44
|
+
- request:
|
45
|
+
method: get
|
46
|
+
uri: http://localhost:3000/locomotive/api/v3/translations.json
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: auth_token=Z9s7W_-BXyGQsDPFsorr
|
9
50
|
headers:
|
10
51
|
Accept:
|
11
52
|
- application/json
|
53
|
+
X-Locomotive-Account-Email:
|
54
|
+
- admin@locomotivecms.com
|
55
|
+
X-Locomotive-Account-Token:
|
56
|
+
- Z9s7W_-BXyGQsDPFsorr
|
57
|
+
X-Locomotive-Site-Handle:
|
58
|
+
- sample
|
59
|
+
Content-Type:
|
60
|
+
- application/x-www-form-urlencoded
|
12
61
|
Accept-Encoding:
|
13
|
-
- gzip
|
62
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
63
|
User-Agent:
|
15
|
-
-
|
64
|
+
- Ruby
|
65
|
+
response:
|
66
|
+
status:
|
67
|
+
code: 200
|
68
|
+
message: OK
|
69
|
+
headers:
|
70
|
+
Content-Type:
|
71
|
+
- application/json
|
16
72
|
Content-Length:
|
17
|
-
- '
|
73
|
+
- '2'
|
74
|
+
Etag:
|
75
|
+
- W/"d751713988987e9331980363e24189ce"
|
76
|
+
Cache-Control:
|
77
|
+
- max-age=0, private, must-revalidate
|
78
|
+
X-Request-Id:
|
79
|
+
- 6c80facc-11f4-43a1-9a0b-3d4843a05db1
|
80
|
+
X-Runtime:
|
81
|
+
- '0.037026'
|
82
|
+
Connection:
|
83
|
+
- keep-alive
|
84
|
+
Server:
|
85
|
+
- thin
|
86
|
+
body:
|
87
|
+
encoding: UTF-8
|
88
|
+
string: "[]"
|
89
|
+
http_version:
|
90
|
+
recorded_at: Mon, 04 May 2015 13:51:30 GMT
|
91
|
+
- request:
|
92
|
+
method: get
|
93
|
+
uri: http://localhost:3000/locomotive/api/v3/snippets.json
|
94
|
+
body:
|
95
|
+
encoding: UTF-8
|
96
|
+
string: auth_token=Z9s7W_-BXyGQsDPFsorr
|
97
|
+
headers:
|
98
|
+
Accept:
|
99
|
+
- application/json
|
100
|
+
X-Locomotive-Account-Email:
|
101
|
+
- admin@locomotivecms.com
|
102
|
+
X-Locomotive-Account-Token:
|
103
|
+
- Z9s7W_-BXyGQsDPFsorr
|
104
|
+
X-Locomotive-Site-Handle:
|
105
|
+
- sample
|
18
106
|
Content-Type:
|
19
107
|
- application/x-www-form-urlencoded
|
108
|
+
Accept-Encoding:
|
109
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
110
|
+
User-Agent:
|
111
|
+
- Ruby
|
20
112
|
response:
|
21
113
|
status:
|
22
114
|
code: 200
|
23
115
|
message: OK
|
24
116
|
headers:
|
25
|
-
|
26
|
-
-
|
27
|
-
|
28
|
-
-
|
117
|
+
Content-Type:
|
118
|
+
- application/json
|
119
|
+
Content-Length:
|
120
|
+
- '2'
|
121
|
+
Etag:
|
122
|
+
- W/"d751713988987e9331980363e24189ce"
|
123
|
+
Cache-Control:
|
124
|
+
- max-age=0, private, must-revalidate
|
125
|
+
X-Request-Id:
|
126
|
+
- 9932aff8-11a2-414b-baed-73401abde9b4
|
127
|
+
X-Runtime:
|
128
|
+
- '0.025186'
|
29
129
|
Connection:
|
30
|
-
-
|
31
|
-
|
32
|
-
-
|
130
|
+
- keep-alive
|
131
|
+
Server:
|
132
|
+
- thin
|
133
|
+
body:
|
134
|
+
encoding: UTF-8
|
135
|
+
string: "[]"
|
136
|
+
http_version:
|
137
|
+
recorded_at: Mon, 04 May 2015 13:51:30 GMT
|
138
|
+
- request:
|
139
|
+
method: get
|
140
|
+
uri: http://localhost:3000/locomotive/api/v3/theme_assets.json
|
141
|
+
body:
|
142
|
+
encoding: UTF-8
|
143
|
+
string: auth_token=Z9s7W_-BXyGQsDPFsorr
|
144
|
+
headers:
|
145
|
+
Accept:
|
146
|
+
- application/json
|
147
|
+
X-Locomotive-Account-Email:
|
148
|
+
- admin@locomotivecms.com
|
149
|
+
X-Locomotive-Account-Token:
|
150
|
+
- Z9s7W_-BXyGQsDPFsorr
|
151
|
+
X-Locomotive-Site-Handle:
|
152
|
+
- sample
|
153
|
+
Content-Type:
|
154
|
+
- application/x-www-form-urlencoded
|
155
|
+
Accept-Encoding:
|
156
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
157
|
+
User-Agent:
|
158
|
+
- Ruby
|
159
|
+
response:
|
160
|
+
status:
|
161
|
+
code: 200
|
162
|
+
message: OK
|
163
|
+
headers:
|
33
164
|
Content-Type:
|
34
|
-
- application/json
|
35
|
-
|
36
|
-
-
|
165
|
+
- application/json
|
166
|
+
Content-Length:
|
167
|
+
- '2'
|
37
168
|
Etag:
|
38
|
-
-
|
169
|
+
- W/"d751713988987e9331980363e24189ce"
|
39
170
|
Cache-Control:
|
40
171
|
- max-age=0, private, must-revalidate
|
41
|
-
Set-Cookie:
|
42
|
-
- _locomotive_session=7XFF9yj2WvX-fANMtQgTDPqqDQY; domain=.sample.lvh.me; path=/;
|
43
|
-
HttpOnly
|
44
172
|
X-Request-Id:
|
45
|
-
-
|
173
|
+
- 73f7645b-1b44-443b-a477-66462bd60cf2
|
46
174
|
X-Runtime:
|
47
|
-
- '0.
|
175
|
+
- '0.024025'
|
176
|
+
Connection:
|
177
|
+
- keep-alive
|
178
|
+
Server:
|
179
|
+
- thin
|
48
180
|
body:
|
49
181
|
encoding: UTF-8
|
50
|
-
string:
|
182
|
+
string: "[]"
|
51
183
|
http_version:
|
52
|
-
recorded_at:
|
184
|
+
recorded_at: Mon, 04 May 2015 13:51:30 GMT
|
53
185
|
- request:
|
54
186
|
method: get
|
55
|
-
uri: http://
|
187
|
+
uri: http://localhost:3000/locomotive/api/v3/my_account.json
|
56
188
|
body:
|
57
|
-
encoding:
|
58
|
-
string:
|
189
|
+
encoding: UTF-8
|
190
|
+
string: auth_token=Z9s7W_-BXyGQsDPFsorr
|
59
191
|
headers:
|
60
192
|
Accept:
|
61
193
|
- application/json
|
194
|
+
X-Locomotive-Account-Email:
|
195
|
+
- admin@locomotivecms.com
|
196
|
+
X-Locomotive-Account-Token:
|
197
|
+
- Z9s7W_-BXyGQsDPFsorr
|
198
|
+
Content-Type:
|
199
|
+
- application/x-www-form-urlencoded
|
62
200
|
Accept-Encoding:
|
63
|
-
- gzip
|
201
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
64
202
|
User-Agent:
|
65
|
-
-
|
203
|
+
- Ruby
|
66
204
|
response:
|
67
205
|
status:
|
68
206
|
code: 200
|
69
207
|
message: OK
|
70
208
|
headers:
|
71
|
-
|
72
|
-
-
|
73
|
-
|
74
|
-
-
|
209
|
+
Content-Type:
|
210
|
+
- application/json
|
211
|
+
Content-Length:
|
212
|
+
- '261'
|
213
|
+
Etag:
|
214
|
+
- W/"8fad791a4f5d5da4ee14fa5bc5058ba4"
|
215
|
+
Cache-Control:
|
216
|
+
- max-age=0, private, must-revalidate
|
217
|
+
X-Request-Id:
|
218
|
+
- 7bfe3620-ce6d-467a-8a50-370a633857f7
|
219
|
+
X-Runtime:
|
220
|
+
- '0.016831'
|
221
|
+
Connection:
|
222
|
+
- keep-alive
|
223
|
+
Server:
|
224
|
+
- thin
|
225
|
+
body:
|
226
|
+
encoding: UTF-8
|
227
|
+
string: '{"_id":"554779596469644d44000000","created_at":"2015-05-04T13:51:21Z","updated_at":"2015-05-04T13:51:21Z","name":"Admin","email":"admin@locomotivecms.com","locale":"en","api_key":"d49cd50f6f0d2b163f48fc73cb249f0244c37074","super_admin":false,"local_admin":true}'
|
228
|
+
http_version:
|
229
|
+
recorded_at: Mon, 04 May 2015 13:51:30 GMT
|
230
|
+
- request:
|
231
|
+
method: post
|
232
|
+
uri: http://www.example.com:3000/locomotive/api/v3/tokens.json
|
233
|
+
body:
|
234
|
+
encoding: UTF-8
|
235
|
+
string: email=admin%40locomotivecms.com&password=locomotive
|
236
|
+
headers:
|
237
|
+
Accept:
|
238
|
+
- application/json
|
239
|
+
Content-Type:
|
240
|
+
- application/x-www-form-urlencoded
|
241
|
+
Accept-Encoding:
|
242
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
243
|
+
User-Agent:
|
244
|
+
- Ruby
|
245
|
+
response:
|
246
|
+
status:
|
247
|
+
code: 201
|
248
|
+
message: Created
|
249
|
+
headers:
|
250
|
+
Content-Type:
|
251
|
+
- application/json
|
252
|
+
Content-Length:
|
253
|
+
- '32'
|
254
|
+
Etag:
|
255
|
+
- W/"6ba0e226b40adfde2d656d9027a1335f"
|
256
|
+
Cache-Control:
|
257
|
+
- max-age=0, private, must-revalidate
|
258
|
+
X-Request-Id:
|
259
|
+
- 06635287-8e00-4bea-9bce-ee735e1a3185
|
260
|
+
X-Runtime:
|
261
|
+
- '0.016993'
|
75
262
|
Connection:
|
76
|
-
-
|
263
|
+
- keep-alive
|
264
|
+
Server:
|
265
|
+
- thin
|
266
|
+
body:
|
267
|
+
encoding: UTF-8
|
268
|
+
string: '{"token":"Z9s7W_-BXyGQsDPFsorr"}'
|
269
|
+
http_version:
|
270
|
+
recorded_at: Mon, 04 May 2015 13:51:30 GMT
|
271
|
+
- request:
|
272
|
+
method: get
|
273
|
+
uri: http://www.example.com:3000/locomotive/api/v3/sites.json
|
274
|
+
body:
|
275
|
+
encoding: UTF-8
|
276
|
+
string: auth_token=Z9s7W_-BXyGQsDPFsorr
|
277
|
+
headers:
|
278
|
+
Accept:
|
279
|
+
- application/json
|
280
|
+
X-Locomotive-Account-Email:
|
281
|
+
- admin@locomotivecms.com
|
282
|
+
X-Locomotive-Account-Token:
|
283
|
+
- Z9s7W_-BXyGQsDPFsorr
|
284
|
+
Content-Type:
|
285
|
+
- 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
|
+
response:
|
291
|
+
status:
|
292
|
+
code: 200
|
293
|
+
message: OK
|
294
|
+
headers:
|
77
295
|
Content-Type:
|
78
|
-
- application/json
|
79
|
-
|
80
|
-
-
|
296
|
+
- application/json
|
297
|
+
Content-Length:
|
298
|
+
- '1021'
|
81
299
|
Etag:
|
82
|
-
-
|
300
|
+
- W/"7447d8e7cdca76d1abcbb9df74b1cab8"
|
83
301
|
Cache-Control:
|
84
302
|
- max-age=0, private, must-revalidate
|
85
|
-
Set-Cookie:
|
86
|
-
- _locomotive_session=r30pUG0LUjkbzPNo_VqKzr0J98g; domain=.sample.lvh.me; path=/;
|
87
|
-
HttpOnly
|
88
303
|
X-Request-Id:
|
89
|
-
-
|
304
|
+
- efd892db-8b7f-425f-8337-34120d36898e
|
90
305
|
X-Runtime:
|
91
|
-
- '0.
|
306
|
+
- '0.041425'
|
307
|
+
Connection:
|
308
|
+
- keep-alive
|
309
|
+
Server:
|
310
|
+
- thin
|
92
311
|
body:
|
93
312
|
encoding: UTF-8
|
94
|
-
string: '[{"
|
95
|
-
|
96
|
-
simple LocomotiveCMS website","meta_keywords":"some meta keywords","meta_description":"some
|
97
|
-
meta description"}]'
|
313
|
+
string: '[{"_id":"554779596469644d44010000","created_at":"2015-05-04T13:51:21Z","updated_at":"2015-05-04T13:51:21Z","name":"LocomotiveCMS","handle":"www","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":["www.example.com"],"memberships":[{"_id":"554779596469644d44040000","created_at":null,"updated_at":null,"role":"admin","account_id":"554779596469644d44000000","name":"Admin","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC"},{"_id":"554779596469644d44050000","created_at":"2015-05-04T13:51:21Z","updated_at":"2015-05-04T13:51:21Z","name":"Sample
|
314
|
+
site","handle":"sample","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":["sample.example.com"],"memberships":[{"_id":"554779596469644d44080000","created_at":null,"updated_at":null,"role":"admin","account_id":"554779596469644d44000000","name":"Admin","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC"}]'
|
98
315
|
http_version:
|
99
|
-
recorded_at:
|
316
|
+
recorded_at: Mon, 04 May 2015 13:51:30 GMT
|
100
317
|
- request:
|
101
318
|
method: get
|
102
|
-
uri: http://
|
319
|
+
uri: http://localhost:3000/locomotive/api/v3/sites.json
|
103
320
|
body:
|
104
|
-
encoding:
|
105
|
-
string:
|
321
|
+
encoding: UTF-8
|
322
|
+
string: auth_token=Z9s7W_-BXyGQsDPFsorr
|
106
323
|
headers:
|
107
324
|
Accept:
|
108
325
|
- application/json
|
326
|
+
X-Locomotive-Account-Email:
|
327
|
+
- admin@locomotivecms.com
|
328
|
+
X-Locomotive-Account-Token:
|
329
|
+
- Z9s7W_-BXyGQsDPFsorr
|
330
|
+
Content-Type:
|
331
|
+
- application/x-www-form-urlencoded
|
109
332
|
Accept-Encoding:
|
110
|
-
- gzip
|
333
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
111
334
|
User-Agent:
|
112
|
-
-
|
335
|
+
- Ruby
|
113
336
|
response:
|
114
337
|
status:
|
115
338
|
code: 200
|
116
339
|
message: OK
|
117
340
|
headers:
|
118
|
-
|
119
|
-
-
|
120
|
-
|
121
|
-
-
|
341
|
+
Content-Type:
|
342
|
+
- application/json
|
343
|
+
Content-Length:
|
344
|
+
- '1021'
|
345
|
+
Etag:
|
346
|
+
- W/"7447d8e7cdca76d1abcbb9df74b1cab8"
|
347
|
+
Cache-Control:
|
348
|
+
- max-age=0, private, must-revalidate
|
349
|
+
X-Request-Id:
|
350
|
+
- 07693e18-8e3e-4c44-afd8-2197f9be4d5d
|
351
|
+
X-Runtime:
|
352
|
+
- '0.041525'
|
122
353
|
Connection:
|
123
|
-
-
|
354
|
+
- keep-alive
|
355
|
+
Server:
|
356
|
+
- thin
|
357
|
+
body:
|
358
|
+
encoding: UTF-8
|
359
|
+
string: '[{"_id":"554779596469644d44010000","created_at":"2015-05-04T13:51:21Z","updated_at":"2015-05-04T13:51:21Z","name":"LocomotiveCMS","handle":"www","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":["www.example.com"],"memberships":[{"_id":"554779596469644d44040000","created_at":null,"updated_at":null,"role":"admin","account_id":"554779596469644d44000000","name":"Admin","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC"},{"_id":"554779596469644d44050000","created_at":"2015-05-04T13:51:21Z","updated_at":"2015-05-04T13:51:21Z","name":"Sample
|
360
|
+
site","handle":"sample","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":["sample.example.com"],"memberships":[{"_id":"554779596469644d44080000","created_at":null,"updated_at":null,"role":"admin","account_id":"554779596469644d44000000","name":"Admin","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC"}]'
|
361
|
+
http_version:
|
362
|
+
recorded_at: Mon, 04 May 2015 13:51:30 GMT
|
363
|
+
- request:
|
364
|
+
method: get
|
365
|
+
uri: http://localhost:3000/locomotive/api/v3/version.json
|
366
|
+
body:
|
367
|
+
encoding: UTF-8
|
368
|
+
string: auth_token=Z9s7W_-BXyGQsDPFsorr&email=admin%40locomotivecms.com&handle=&password=locomotive&token=Z9s7W_-BXyGQsDPFsorr
|
369
|
+
headers:
|
370
|
+
Accept:
|
371
|
+
- application/json
|
372
|
+
X-Locomotive-Account-Email:
|
373
|
+
- admin@locomotivecms.com
|
374
|
+
X-Locomotive-Account-Token:
|
375
|
+
- Z9s7W_-BXyGQsDPFsorr
|
376
|
+
Content-Type:
|
377
|
+
- application/x-www-form-urlencoded
|
378
|
+
Accept-Encoding:
|
379
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
380
|
+
User-Agent:
|
381
|
+
- Ruby
|
382
|
+
response:
|
383
|
+
status:
|
384
|
+
code: 200
|
385
|
+
message: OK
|
386
|
+
headers:
|
124
387
|
Content-Type:
|
125
|
-
- application/json
|
126
|
-
|
127
|
-
-
|
388
|
+
- application/json
|
389
|
+
Content-Length:
|
390
|
+
- '18'
|
128
391
|
Etag:
|
129
|
-
-
|
392
|
+
- W/"02b2733eaed04ddde340a02b57d9bc85"
|
130
393
|
Cache-Control:
|
131
394
|
- max-age=0, private, must-revalidate
|
132
|
-
Set-Cookie:
|
133
|
-
- _locomotive_session=nu6AWiHpGDmXtQfgkDrWtGkC0oY; domain=.sample.lvh.me; path=/;
|
134
|
-
HttpOnly
|
135
395
|
X-Request-Id:
|
136
|
-
-
|
396
|
+
- cdfc7489-fe43-4475-a98e-65c1712d321b
|
137
397
|
X-Runtime:
|
138
|
-
- '0.
|
398
|
+
- '0.008635'
|
399
|
+
Connection:
|
400
|
+
- keep-alive
|
401
|
+
Server:
|
402
|
+
- thin
|
139
403
|
body:
|
140
404
|
encoding: UTF-8
|
141
|
-
string: '{"
|
405
|
+
string: '{"engine":"3.0.0"}'
|
142
406
|
http_version:
|
143
|
-
recorded_at:
|
407
|
+
recorded_at: Tue, 12 May 2015 13:23:38 GMT
|
144
408
|
recorded_with: VCR 2.9.3
|