locomotivecms_coal 1.7.0 → 1.8.0.alpha1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/lib/locomotive/coal/resources/concerns/request.rb +1 -1
  3. data/lib/locomotive/coal/version.rb +1 -1
  4. metadata +20 -123
  5. data/.gitignore +0 -4
  6. data/.rspec +0 -2
  7. data/.travis.yml +0 -7
  8. data/Gemfile +0 -20
  9. data/Gemfile.lock +0 -122
  10. data/Rakefile +0 -21
  11. data/locomotivecms_coal.gemspec +0 -27
  12. data/spec/fixtures/assets/locomotive.png +0 -0
  13. data/spec/fixtures/assets/rails.png +0 -0
  14. data/spec/fixtures/coal_cassettes/accounts.yml +0 -214
  15. data/spec/fixtures/coal_cassettes/client.yml +0 -479
  16. data/spec/fixtures/coal_cassettes/content_assets.yml +0 -270
  17. data/spec/fixtures/coal_cassettes/content_entries.yml +0 -2189
  18. data/spec/fixtures/coal_cassettes/content_types.yml +0 -726
  19. data/spec/fixtures/coal_cassettes/current_site.yml +0 -166
  20. data/spec/fixtures/coal_cassettes/memberships.yml +0 -270
  21. data/spec/fixtures/coal_cassettes/my_account.yml +0 -260
  22. data/spec/fixtures/coal_cassettes/pages.yml +0 -333
  23. data/spec/fixtures/coal_cassettes/sections.yml +0 -267
  24. data/spec/fixtures/coal_cassettes/sites.yml +0 -212
  25. data/spec/fixtures/coal_cassettes/snippets.yml +0 -269
  26. data/spec/fixtures/coal_cassettes/theme_assets.yml +0 -270
  27. data/spec/fixtures/coal_cassettes/token.yml +0 -103
  28. data/spec/fixtures/coal_cassettes/translations.yml +0 -267
  29. data/spec/fixtures/coal_cassettes/version.yml +0 -103
  30. data/spec/integration/client_spec.rb +0 -67
  31. data/spec/integration/resources/accounts_spec.rb +0 -38
  32. data/spec/integration/resources/content_assets_spec.rb +0 -42
  33. data/spec/integration/resources/content_entries_spec.rb +0 -97
  34. data/spec/integration/resources/content_types_spec.rb +0 -44
  35. data/spec/integration/resources/current_site_spec.rb +0 -22
  36. data/spec/integration/resources/engine_version_spec.rb +0 -17
  37. data/spec/integration/resources/memberships_spec.rb +0 -39
  38. data/spec/integration/resources/my_account_spec.rb +0 -34
  39. data/spec/integration/resources/pages_spec.rb +0 -43
  40. data/spec/integration/resources/sections_spec.rb +0 -46
  41. data/spec/integration/resources/sites_spec.rb +0 -43
  42. data/spec/integration/resources/snippets_spec.rb +0 -38
  43. data/spec/integration/resources/theme_assets_spec.rb +0 -43
  44. data/spec/integration/resources/token_spec.rb +0 -38
  45. data/spec/integration/resources/translations_spec.rb +0 -38
  46. data/spec/spec_helper.rb +0 -28
  47. data/spec/support/api_settings.rb +0 -10
  48. data/spec/support/assets.rb +0 -4
  49. data/spec/support/default_resources.rb +0 -7
  50. data/spec/support/pry.rb +0 -4
  51. data/spec/support/vcr.rb +0 -10
  52. data/spec/unit/client_spec.rb +0 -52
  53. data/spec/unit/client_v2_spec.rb +0 -22
  54. data/spec/unit/error_spec.rb +0 -36
  55. data/spec/unit/paginated_resources_spec.rb +0 -50
  56. data/spec/unit/resource_spec.rb +0 -29
@@ -1,214 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: http://localhost:3000/locomotive/api/v3/tokens.json
6
- body:
7
- encoding: UTF-8
8
- string: email=admin%40locomotivecms.com&password=locomotive
9
- headers:
10
- User-Agent:
11
- - Faraday v0.15.4
12
- Accept:
13
- - application/json
14
- Accept-Encoding:
15
- - gzip,deflate
16
- Date:
17
- - Sun, 17 Nov 2019 16:39:31 GMT
18
- Content-Type:
19
- - application/x-www-form-urlencoded
20
- response:
21
- status:
22
- code: 201
23
- message: Created
24
- headers:
25
- Content-Type:
26
- - application/json
27
- Content-Length:
28
- - '32'
29
- Connection:
30
- - keep-alive
31
- Status:
32
- - 201 Created
33
- Cache-Control:
34
- - max-age=0, private, must-revalidate
35
- Etag:
36
- - W/"410e3d6fde24f39257a7cc619b61baa7"
37
- X-Runtime:
38
- - '0.003847'
39
- X-Request-Id:
40
- - 37641f2b-e3b4-4c75-a947-67001077f519
41
- Date:
42
- - Sun, 17 Nov 2019 16:39:31 GMT
43
- X-Powered-By:
44
- - Phusion Passenger 6.0.4
45
- Server:
46
- - nginx/1.17.3 + Phusion Passenger 6.0.4
47
- body:
48
- encoding: UTF-8
49
- string: '{"token":"bzwAyFQzcchf_hgDQhz3"}'
50
- http_version:
51
- recorded_at: Sun, 17 Nov 2019 16:39:31 GMT
52
- - request:
53
- method: get
54
- uri: http://localhost:3000/locomotive/api/v3/accounts.json?auth_token=bzwAyFQzcchf_hgDQhz3&where=%7B%7D
55
- body:
56
- encoding: UTF-8
57
- string: ''
58
- headers:
59
- User-Agent:
60
- - Faraday v0.15.4
61
- Accept:
62
- - application/json
63
- Accept-Encoding:
64
- - gzip,deflate
65
- Date:
66
- - Sun, 17 Nov 2019 16:39:31 GMT
67
- X-Locomotive-Account-Email:
68
- - admin@locomotivecms.com
69
- X-Locomotive-Account-Token:
70
- - bzwAyFQzcchf_hgDQhz3
71
- response:
72
- status:
73
- code: 200
74
- message: OK
75
- headers:
76
- Content-Type:
77
- - application/json
78
- Transfer-Encoding:
79
- - chunked
80
- Connection:
81
- - keep-alive
82
- Status:
83
- - 200 OK
84
- Cache-Control:
85
- - max-age=0, private, must-revalidate
86
- Etag:
87
- - W/"b45c198e9ff3646c60b8055f5230fe83"
88
- X-Runtime:
89
- - '0.011734'
90
- X-Request-Id:
91
- - 5467f046-9d4c-49af-86aa-3ac502e50b13
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
98
- Content-Encoding:
99
- - gzip
100
- body:
101
- encoding: UTF-8
102
- string: '[{"_id":"5dd1779ba95330a94bf7253c","created_at":"2019-11-17T16:38:51Z","updated_at":"2019-11-17T16:39:30Z","name":"John
103
- Doe","email":"admin@locomotivecms.com","locale":"en","api_key":"d49cd50f6f0d2b163f48fc73cb249f0244c37074","super_admin":true,"local_admin":true},{"_id":"5dd1779ba95330a94bf7253d","created_at":"2019-11-17T16:38:51Z","updated_at":"2019-11-17T16:38:51Z","name":"New
104
- Admin","email":"new_admin@locomotivecms.com","locale":"en","api_key":"d49cd50f6f0d2b163f48fc73cb249f0244c37074","super_admin":false,"local_admin":false},{"_id":"5dd177c2a95330aa17f8f8df","created_at":"2019-11-17T16:39:30Z","updated_at":"2019-11-17T16:39:30Z","name":"Jack
105
- Doe","email":"jack@doe.net","locale":"en","api_key":"b99855e630e7510ee902e0871f213328cfcbc552","super_admin":false,"local_admin":false}]'
106
- http_version:
107
- recorded_at: Sun, 17 Nov 2019 16:39:31 GMT
108
- - request:
109
- method: post
110
- uri: http://localhost:3000/locomotive/api/v3/accounts.json
111
- body:
112
- encoding: UTF-8
113
- string: account%5Bemail%5D=jane%40doe.net&account%5Bname%5D=Jane&account%5Bpassword%5D=easyone&account%5Bpassword_confirmation%5D=easyone&auth_token=bzwAyFQzcchf_hgDQhz3
114
- headers:
115
- User-Agent:
116
- - Faraday v0.15.4
117
- Accept:
118
- - application/json
119
- Accept-Encoding:
120
- - gzip,deflate
121
- Date:
122
- - Sun, 17 Nov 2019 16:39:32 GMT
123
- X-Locomotive-Account-Email:
124
- - admin@locomotivecms.com
125
- X-Locomotive-Account-Token:
126
- - bzwAyFQzcchf_hgDQhz3
127
- Content-Type:
128
- - application/x-www-form-urlencoded
129
- response:
130
- status:
131
- code: 201
132
- message: Created
133
- headers:
134
- Content-Type:
135
- - application/json
136
- Content-Length:
137
- - '250'
138
- Connection:
139
- - keep-alive
140
- Status:
141
- - 201 Created
142
- Cache-Control:
143
- - max-age=0, private, must-revalidate
144
- Etag:
145
- - W/"93c7e6382bd0ad95a3e47fac8db86283"
146
- X-Runtime:
147
- - '0.014507'
148
- X-Request-Id:
149
- - 4643a202-a742-423f-8f83-a39b66034328
150
- Date:
151
- - Sun, 17 Nov 2019 16:39:32 GMT
152
- X-Powered-By:
153
- - Phusion Passenger 6.0.4
154
- Server:
155
- - nginx/1.17.3 + Phusion Passenger 6.0.4
156
- body:
157
- encoding: UTF-8
158
- string: '{"_id":"5dd177c4a95330aa17f8f8e7","created_at":"2019-11-17T16:39:32Z","updated_at":"2019-11-17T16:39:32Z","name":"Jane","email":"jane@doe.net","locale":"en","api_key":"55ce1c667d4da4509641fc5bcecd8e4542b72d76","super_admin":false,"local_admin":false}'
159
- http_version:
160
- recorded_at: Sun, 17 Nov 2019 16:39:32 GMT
161
- - request:
162
- method: delete
163
- uri: http://localhost:3000/locomotive/api/v3/accounts/5dd177c4a95330aa17f8f8e7.json?auth_token=bzwAyFQzcchf_hgDQhz3
164
- body:
165
- encoding: UTF-8
166
- string: ''
167
- headers:
168
- User-Agent:
169
- - Faraday v0.15.4
170
- Accept:
171
- - application/json
172
- Accept-Encoding:
173
- - gzip,deflate
174
- Date:
175
- - Sun, 17 Nov 2019 16:39:32 GMT
176
- X-Locomotive-Account-Email:
177
- - admin@locomotivecms.com
178
- X-Locomotive-Account-Token:
179
- - bzwAyFQzcchf_hgDQhz3
180
- response:
181
- status:
182
- code: 200
183
- message: OK
184
- headers:
185
- Content-Type:
186
- - application/json
187
- Transfer-Encoding:
188
- - chunked
189
- Connection:
190
- - keep-alive
191
- Status:
192
- - 200 OK
193
- Cache-Control:
194
- - max-age=0, private, must-revalidate
195
- Etag:
196
- - W/"93c7e6382bd0ad95a3e47fac8db86283"
197
- X-Runtime:
198
- - '0.019832'
199
- X-Request-Id:
200
- - 5e0ae3a4-71ea-4235-aaf4-1ce98404e225
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
207
- Content-Encoding:
208
- - gzip
209
- body:
210
- encoding: UTF-8
211
- string: '{"_id":"5dd177c4a95330aa17f8f8e7","created_at":"2019-11-17T16:39:32Z","updated_at":"2019-11-17T16:39:32Z","name":"Jane","email":"jane@doe.net","locale":"en","api_key":"55ce1c667d4da4509641fc5bcecd8e4542b72d76","super_admin":false,"local_admin":false}'
212
- http_version:
213
- recorded_at: Sun, 17 Nov 2019 16:39:32 GMT
214
- recorded_with: VCR 4.0.0
@@ -1,479 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: http://localhost:3000/locomotive/api/v3/tokens.json
6
- body:
7
- encoding: UTF-8
8
- string: email=admin%40locomotivecms.com&password=locomotive
9
- headers:
10
- User-Agent:
11
- - Faraday v0.15.4
12
- Accept:
13
- - application/json
14
- Accept-Encoding:
15
- - gzip,deflate
16
- Date:
17
- - Sun, 17 Nov 2019 16:39:32 GMT
18
- Content-Type:
19
- - application/x-www-form-urlencoded
20
- response:
21
- status:
22
- code: 201
23
- message: Created
24
- headers:
25
- Content-Type:
26
- - application/json
27
- Content-Length:
28
- - '32'
29
- Connection:
30
- - keep-alive
31
- Status:
32
- - 201 Created
33
- Cache-Control:
34
- - max-age=0, private, must-revalidate
35
- Etag:
36
- - W/"410e3d6fde24f39257a7cc619b61baa7"
37
- X-Runtime:
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
47
- body:
48
- encoding: UTF-8
49
- string: '{"token":"bzwAyFQzcchf_hgDQhz3"}'
50
- http_version:
51
- recorded_at: Sun, 17 Nov 2019 16:39:32 GMT
52
- - request:
53
- method: get
54
- uri: http://localhost:3000/locomotive/api/v3/version.json?auth_token=bzwAyFQzcchf_hgDQhz3&email=admin@locomotivecms.com&handle&password=locomotive&token=bzwAyFQzcchf_hgDQhz3
55
- body:
56
- encoding: UTF-8
57
- string: ''
58
- headers:
59
- User-Agent:
60
- - Faraday v0.15.4
61
- Accept:
62
- - application/json
63
- Accept-Encoding:
64
- - gzip,deflate
65
- Date:
66
- - Sun, 17 Nov 2019 16:39:32 GMT
67
- X-Locomotive-Account-Email:
68
- - admin@locomotivecms.com
69
- X-Locomotive-Account-Token:
70
- - bzwAyFQzcchf_hgDQhz3
71
- response:
72
- status:
73
- code: 200
74
- message: OK
75
- headers:
76
- Content-Type:
77
- - application/json
78
- Content-Length:
79
- - '22'
80
- Connection:
81
- - keep-alive
82
- Status:
83
- - 200 OK
84
- Cache-Control:
85
- - max-age=0, private, must-revalidate
86
- Etag:
87
- - W/"f981a5a7069dbbda33875006acb1b026"
88
- X-Runtime:
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
98
- body:
99
- encoding: UTF-8
100
- string: '{"engine":"4.0.0.rc0"}'
101
- http_version:
102
- recorded_at: Sun, 17 Nov 2019 16:39:32 GMT
103
- - request:
104
- method: get
105
- uri: http://localhost:3000/locomotive/api/v3/sites.json?auth_token=bzwAyFQzcchf_hgDQhz3
106
- body:
107
- encoding: UTF-8
108
- string: ''
109
- headers:
110
- User-Agent:
111
- - Faraday v0.15.4
112
- Accept:
113
- - application/json
114
- Accept-Encoding:
115
- - gzip,deflate
116
- Date:
117
- - Sun, 17 Nov 2019 16:39:32 GMT
118
- X-Locomotive-Account-Email:
119
- - admin@locomotivecms.com
120
- X-Locomotive-Account-Token:
121
- - bzwAyFQzcchf_hgDQhz3
122
- response:
123
- status:
124
- code: 200
125
- message: OK
126
- headers:
127
- Content-Type:
128
- - application/json
129
- Transfer-Encoding:
130
- - chunked
131
- Connection:
132
- - keep-alive
133
- Status:
134
- - 200 OK
135
- Cache-Control:
136
- - max-age=0, private, must-revalidate
137
- Etag:
138
- - W/"1ae391370bc74e2e90cb2d350c757b60"
139
- X-Runtime:
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
151
- body:
152
- encoding: UTF-8
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":"[]"}]'
157
- http_version:
158
- recorded_at: Sun, 17 Nov 2019 16:39:32 GMT
159
- - request:
160
- method: get
161
- uri: http://localhost:3000/locomotive/api/v3/translations.json?auth_token=bzwAyFQzcchf_hgDQhz3
162
- body:
163
- encoding: UTF-8
164
- string: ''
165
- headers:
166
- User-Agent:
167
- - Faraday v0.15.4
168
- Accept:
169
- - application/json
170
- Accept-Encoding:
171
- - gzip,deflate
172
- Date:
173
- - Sun, 17 Nov 2019 16:39:32 GMT
174
- X-Locomotive-Account-Email:
175
- - admin@locomotivecms.com
176
- X-Locomotive-Account-Token:
177
- - bzwAyFQzcchf_hgDQhz3
178
- X-Locomotive-Site-Handle:
179
- - sample
180
- response:
181
- status:
182
- code: 200
183
- message: OK
184
- headers:
185
- Content-Type:
186
- - application/json
187
- Content-Length:
188
- - '2'
189
- Connection:
190
- - keep-alive
191
- Status:
192
- - 200 OK
193
- Cache-Control:
194
- - max-age=0, private, must-revalidate
195
- Etag:
196
- - W/"4f53cda18c2baa0c0354bb5f9a3ecbe5"
197
- X-Runtime:
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
207
- body:
208
- encoding: UTF-8
209
- string: "[]"
210
- http_version:
211
- recorded_at: Sun, 17 Nov 2019 16:39:32 GMT
212
- - request:
213
- method: get
214
- uri: http://localhost:3000/locomotive/api/v3/snippets.json?auth_token=bzwAyFQzcchf_hgDQhz3
215
- body:
216
- encoding: UTF-8
217
- string: ''
218
- headers:
219
- User-Agent:
220
- - Faraday v0.15.4
221
- Accept:
222
- - application/json
223
- Accept-Encoding:
224
- - gzip,deflate
225
- Date:
226
- - Sun, 17 Nov 2019 16:39:32 GMT
227
- X-Locomotive-Account-Email:
228
- - admin@locomotivecms.com
229
- X-Locomotive-Account-Token:
230
- - bzwAyFQzcchf_hgDQhz3
231
- X-Locomotive-Site-Handle:
232
- - sample
233
- X-Locomotive-Locale:
234
- - ''
235
- response:
236
- status:
237
- code: 200
238
- message: OK
239
- headers:
240
- Content-Type:
241
- - application/json
242
- Content-Length:
243
- - '2'
244
- Connection:
245
- - keep-alive
246
- Status:
247
- - 200 OK
248
- Cache-Control:
249
- - max-age=0, private, must-revalidate
250
- Etag:
251
- - W/"4f53cda18c2baa0c0354bb5f9a3ecbe5"
252
- X-Runtime:
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
262
- body:
263
- encoding: UTF-8
264
- string: "[]"
265
- http_version:
266
- recorded_at: Sun, 17 Nov 2019 16:39:32 GMT
267
- - request:
268
- method: get
269
- uri: http://localhost:3000/locomotive/api/v3/theme_assets.json?auth_token=bzwAyFQzcchf_hgDQhz3
270
- body:
271
- encoding: UTF-8
272
- string: ''
273
- headers:
274
- User-Agent:
275
- - Faraday v0.15.4
276
- Accept:
277
- - application/json
278
- Accept-Encoding:
279
- - gzip,deflate
280
- Date:
281
- - Sun, 17 Nov 2019 16:39:32 GMT
282
- X-Locomotive-Account-Email:
283
- - admin@locomotivecms.com
284
- X-Locomotive-Account-Token:
285
- - bzwAyFQzcchf_hgDQhz3
286
- X-Locomotive-Site-Handle:
287
- - sample
288
- response:
289
- status:
290
- code: 200
291
- message: OK
292
- headers:
293
- Content-Type:
294
- - application/json
295
- Content-Length:
296
- - '2'
297
- Connection:
298
- - keep-alive
299
- Status:
300
- - 200 OK
301
- Cache-Control:
302
- - max-age=0, private, must-revalidate
303
- Etag:
304
- - W/"4f53cda18c2baa0c0354bb5f9a3ecbe5"
305
- X-Runtime:
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
315
- body:
316
- encoding: UTF-8
317
- string: "[]"
318
- http_version:
319
- recorded_at: Sun, 17 Nov 2019 16:39:32 GMT
320
- - request:
321
- method: get
322
- uri: http://localhost:3000/locomotive/api/v3/my_account.json?auth_token=bzwAyFQzcchf_hgDQhz3
323
- body:
324
- encoding: UTF-8
325
- string: ''
326
- headers:
327
- User-Agent:
328
- - Faraday v0.15.4
329
- Accept:
330
- - application/json
331
- Accept-Encoding:
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
339
- response:
340
- status:
341
- code: 200
342
- message: OK
343
- headers:
344
- Content-Type:
345
- - application/json
346
- Transfer-Encoding:
347
- - chunked
348
- Connection:
349
- - keep-alive
350
- Status:
351
- - 200 OK
352
- Cache-Control:
353
- - max-age=0, private, must-revalidate
354
- Etag:
355
- - W/"7f5b02da1aa964d6d9d0be396d5d6fb9"
356
- X-Runtime:
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
368
- body:
369
- encoding: UTF-8
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}'
372
- http_version:
373
- recorded_at: Sun, 17 Nov 2019 16:39:32 GMT
374
- - request:
375
- method: post
376
- uri: http://www.example.com:3000/locomotive/api/v3/tokens.json
377
- body:
378
- encoding: UTF-8
379
- string: email=admin%40locomotivecms.com&password=locomotive
380
- headers:
381
- User-Agent:
382
- - Faraday v0.15.4
383
- Accept:
384
- - application/json
385
- Accept-Encoding:
386
- - gzip,deflate
387
- Date:
388
- - Sun, 17 Nov 2019 16:39:32 GMT
389
- Content-Type:
390
- - application/x-www-form-urlencoded
391
- response:
392
- status:
393
- code: 201
394
- message: Created
395
- headers:
396
- Content-Type:
397
- - application/json
398
- Content-Length:
399
- - '32'
400
- Connection:
401
- - keep-alive
402
- Status:
403
- - 201 Created
404
- Cache-Control:
405
- - max-age=0, private, must-revalidate
406
- Etag:
407
- - W/"410e3d6fde24f39257a7cc619b61baa7"
408
- X-Runtime:
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
418
- body:
419
- encoding: UTF-8
420
- string: '{"token":"bzwAyFQzcchf_hgDQhz3"}'
421
- http_version:
422
- recorded_at: Sun, 17 Nov 2019 16:39:32 GMT
423
- - request:
424
- method: get
425
- uri: http://www.example.com:3000/locomotive/api/v3/sites.json?auth_token=bzwAyFQzcchf_hgDQhz3
426
- body:
427
- encoding: UTF-8
428
- string: ''
429
- headers:
430
- User-Agent:
431
- - Faraday v0.15.4
432
- Accept:
433
- - application/json
434
- Accept-Encoding:
435
- - gzip,deflate
436
- Date:
437
- - Sun, 17 Nov 2019 16:39:32 GMT
438
- X-Locomotive-Account-Email:
439
- - admin@locomotivecms.com
440
- X-Locomotive-Account-Token:
441
- - bzwAyFQzcchf_hgDQhz3
442
- response:
443
- status:
444
- code: 200
445
- message: OK
446
- headers:
447
- Content-Type:
448
- - application/json
449
- Transfer-Encoding:
450
- - chunked
451
- Connection:
452
- - keep-alive
453
- Status:
454
- - 200 OK
455
- Cache-Control:
456
- - max-age=0, private, must-revalidate
457
- Etag:
458
- - W/"0d5f2b1c38ab048e2038cc485c409a84"
459
- X-Runtime:
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
471
- body:
472
- encoding: UTF-8
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":"[]"}]'
477
- http_version:
478
- recorded_at: Sun, 17 Nov 2019 16:39:32 GMT
479
- recorded_with: VCR 4.0.0