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
@@ -2,19 +2,21 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://localhost:3000/locomotive/api/v3/
|
5
|
+
uri: http://localhost:3000/locomotive/api/v3/tokens.json
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
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,175 +24,237 @@ 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.004127'
|
39
|
+
X-Request-Id:
|
40
|
+
- edee538a-e182-4fc2-87d7-2e4bc60c00d6
|
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: '{"
|
38
|
-
Doe","email":"jack@doe.net","locale":"en","api_key":"92f2e03b57b3f31f485ecf4d99bc94ea20eee862","super_admin":false,"local_admin":false}'
|
49
|
+
string: '{"token":"bzwAyFQzcchf_hgDQhz3"}'
|
39
50
|
http_version:
|
40
|
-
recorded_at:
|
51
|
+
recorded_at: Sun, 17 Nov 2019 16:39:30 GMT
|
41
52
|
- request:
|
42
|
-
method:
|
53
|
+
method: put
|
43
54
|
uri: http://localhost:3000/locomotive/api/v3/my_account.json
|
44
55
|
body:
|
45
56
|
encoding: UTF-8
|
46
|
-
string: account%5Bname%5D=
|
57
|
+
string: account%5Bname%5D=John+Doe&auth_token=bzwAyFQzcchf_hgDQhz3
|
47
58
|
headers:
|
59
|
+
User-Agent:
|
60
|
+
- Faraday v0.15.4
|
48
61
|
Accept:
|
49
62
|
- application/json
|
63
|
+
Accept-Encoding:
|
64
|
+
- gzip,deflate
|
65
|
+
Date:
|
66
|
+
- Sun, 17 Nov 2019 16:39:30 GMT
|
67
|
+
X-Locomotive-Account-Email:
|
68
|
+
- admin@locomotivecms.com
|
69
|
+
X-Locomotive-Account-Token:
|
70
|
+
- bzwAyFQzcchf_hgDQhz3
|
50
71
|
Content-Type:
|
51
72
|
- application/x-www-form-urlencoded
|
52
|
-
Accept-Encoding:
|
53
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
54
|
-
User-Agent:
|
55
|
-
- Ruby
|
56
73
|
response:
|
57
74
|
status:
|
58
|
-
code:
|
59
|
-
message:
|
75
|
+
code: 200
|
76
|
+
message: OK
|
60
77
|
headers:
|
61
78
|
Content-Type:
|
62
79
|
- application/json
|
80
|
+
Transfer-Encoding:
|
81
|
+
- chunked
|
82
|
+
Connection:
|
83
|
+
- keep-alive
|
84
|
+
Status:
|
85
|
+
- 200 OK
|
63
86
|
Cache-Control:
|
64
|
-
-
|
65
|
-
|
66
|
-
-
|
87
|
+
- max-age=0, private, must-revalidate
|
88
|
+
Etag:
|
89
|
+
- W/"7f5b02da1aa964d6d9d0be396d5d6fb9"
|
67
90
|
X-Runtime:
|
68
|
-
- '0.
|
69
|
-
|
70
|
-
-
|
91
|
+
- '0.016235'
|
92
|
+
X-Request-Id:
|
93
|
+
- 7b9c8cd3-5e5e-4bc6-baec-567c194bcec9
|
94
|
+
Date:
|
95
|
+
- Sun, 17 Nov 2019 16:39:30 GMT
|
96
|
+
X-Powered-By:
|
97
|
+
- Phusion Passenger 6.0.4
|
98
|
+
Server:
|
99
|
+
- nginx/1.17.3 + Phusion Passenger 6.0.4
|
100
|
+
Content-Encoding:
|
101
|
+
- gzip
|
71
102
|
body:
|
72
103
|
encoding: UTF-8
|
73
|
-
string: '{"
|
74
|
-
|
104
|
+
string: '{"_id":"5dd1779ba95330a94bf7253c","created_at":"2019-11-17T16:38:51Z","updated_at":"2019-11-17T16:39:30Z","name":"John
|
105
|
+
Doe","email":"admin@locomotivecms.com","locale":"en","api_key":"d49cd50f6f0d2b163f48fc73cb249f0244c37074","super_admin":true,"local_admin":true}'
|
75
106
|
http_version:
|
76
|
-
recorded_at:
|
107
|
+
recorded_at: Sun, 17 Nov 2019 16:39:30 GMT
|
77
108
|
- request:
|
78
|
-
method:
|
79
|
-
uri: http://localhost:3000/locomotive/api/v3/
|
109
|
+
method: get
|
110
|
+
uri: http://localhost:3000/locomotive/api/v3/my_account.json?auth_token=bzwAyFQzcchf_hgDQhz3
|
80
111
|
body:
|
81
112
|
encoding: UTF-8
|
82
|
-
string:
|
113
|
+
string: ''
|
83
114
|
headers:
|
115
|
+
User-Agent:
|
116
|
+
- Faraday v0.15.4
|
84
117
|
Accept:
|
85
118
|
- application/json
|
86
|
-
Content-Type:
|
87
|
-
- application/x-www-form-urlencoded
|
88
119
|
Accept-Encoding:
|
89
|
-
- gzip
|
90
|
-
|
91
|
-
-
|
120
|
+
- gzip,deflate
|
121
|
+
Date:
|
122
|
+
- Sun, 17 Nov 2019 16:39:30 GMT
|
123
|
+
X-Locomotive-Account-Email:
|
124
|
+
- admin@locomotivecms.com
|
125
|
+
X-Locomotive-Account-Token:
|
126
|
+
- bzwAyFQzcchf_hgDQhz3
|
92
127
|
response:
|
93
128
|
status:
|
94
|
-
code:
|
95
|
-
message:
|
129
|
+
code: 200
|
130
|
+
message: OK
|
96
131
|
headers:
|
97
132
|
Content-Type:
|
98
133
|
- application/json
|
99
|
-
|
100
|
-
-
|
134
|
+
Transfer-Encoding:
|
135
|
+
- chunked
|
136
|
+
Connection:
|
137
|
+
- keep-alive
|
138
|
+
Status:
|
139
|
+
- 200 OK
|
101
140
|
Cache-Control:
|
102
141
|
- max-age=0, private, must-revalidate
|
103
|
-
|
104
|
-
-
|
142
|
+
Etag:
|
143
|
+
- W/"7f5b02da1aa964d6d9d0be396d5d6fb9"
|
105
144
|
X-Runtime:
|
106
|
-
- '0.
|
107
|
-
|
108
|
-
-
|
145
|
+
- '0.007792'
|
146
|
+
X-Request-Id:
|
147
|
+
- 2037c4b1-cd3c-4f90-a52b-d7d8ed64ffca
|
148
|
+
Date:
|
149
|
+
- Sun, 17 Nov 2019 16:39:30 GMT
|
150
|
+
X-Powered-By:
|
151
|
+
- Phusion Passenger 6.0.4
|
152
|
+
Server:
|
153
|
+
- nginx/1.17.3 + Phusion Passenger 6.0.4
|
154
|
+
Content-Encoding:
|
155
|
+
- gzip
|
109
156
|
body:
|
110
157
|
encoding: UTF-8
|
111
|
-
string: '{"
|
158
|
+
string: '{"_id":"5dd1779ba95330a94bf7253c","created_at":"2019-11-17T16:38:51Z","updated_at":"2019-11-17T16:39:30Z","name":"John
|
159
|
+
Doe","email":"admin@locomotivecms.com","locale":"en","api_key":"d49cd50f6f0d2b163f48fc73cb249f0244c37074","super_admin":true,"local_admin":true}'
|
112
160
|
http_version:
|
113
|
-
recorded_at:
|
161
|
+
recorded_at: Sun, 17 Nov 2019 16:39:30 GMT
|
114
162
|
- request:
|
115
|
-
method:
|
163
|
+
method: post
|
116
164
|
uri: http://localhost:3000/locomotive/api/v3/my_account.json
|
117
165
|
body:
|
118
166
|
encoding: UTF-8
|
119
|
-
string: account%5Bname%5D=
|
167
|
+
string: account%5Bemail%5D=jack%40doe.net&account%5Bname%5D=Jack+Doe&account%5Bpassword%5D=easyone&account%5Bpassword_confirmation%5D=easyone
|
120
168
|
headers:
|
169
|
+
User-Agent:
|
170
|
+
- Faraday v0.15.4
|
121
171
|
Accept:
|
122
172
|
- application/json
|
123
|
-
|
124
|
-
-
|
125
|
-
|
126
|
-
-
|
173
|
+
Accept-Encoding:
|
174
|
+
- gzip,deflate
|
175
|
+
Date:
|
176
|
+
- Sun, 17 Nov 2019 16:39:30 GMT
|
127
177
|
Content-Type:
|
128
178
|
- application/x-www-form-urlencoded
|
129
|
-
Accept-Encoding:
|
130
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
131
|
-
User-Agent:
|
132
|
-
- Ruby
|
133
179
|
response:
|
134
180
|
status:
|
135
|
-
code:
|
136
|
-
message:
|
181
|
+
code: 201
|
182
|
+
message: Created
|
137
183
|
headers:
|
138
184
|
Content-Type:
|
139
185
|
- application/json
|
140
|
-
|
141
|
-
-
|
186
|
+
Content-Length:
|
187
|
+
- '254'
|
188
|
+
Connection:
|
189
|
+
- keep-alive
|
190
|
+
Status:
|
191
|
+
- 201 Created
|
142
192
|
Cache-Control:
|
143
193
|
- max-age=0, private, must-revalidate
|
144
|
-
|
145
|
-
-
|
194
|
+
Etag:
|
195
|
+
- W/"a6622ed0db1411c79380131ed794f25f"
|
146
196
|
X-Runtime:
|
147
|
-
- '0.
|
148
|
-
|
149
|
-
-
|
197
|
+
- '0.013885'
|
198
|
+
X-Request-Id:
|
199
|
+
- 4672e3bc-c78d-4dda-936b-717500fc9daf
|
200
|
+
Date:
|
201
|
+
- Sun, 17 Nov 2019 16:39:30 GMT
|
202
|
+
X-Powered-By:
|
203
|
+
- Phusion Passenger 6.0.4
|
204
|
+
Server:
|
205
|
+
- nginx/1.17.3 + Phusion Passenger 6.0.4
|
150
206
|
body:
|
151
207
|
encoding: UTF-8
|
152
|
-
string: '{"_id":"
|
153
|
-
Doe","email":"
|
208
|
+
string: '{"_id":"5dd177c2a95330aa17f8f8df","created_at":"2019-11-17T16:39:30Z","updated_at":"2019-11-17T16:39:30Z","name":"Jack
|
209
|
+
Doe","email":"jack@doe.net","locale":"en","api_key":"b99855e630e7510ee902e0871f213328cfcbc552","super_admin":false,"local_admin":false}'
|
154
210
|
http_version:
|
155
|
-
recorded_at:
|
211
|
+
recorded_at: Sun, 17 Nov 2019 16:39:30 GMT
|
156
212
|
- request:
|
157
|
-
method:
|
158
|
-
uri: http://localhost:3000/locomotive/api/v3/my_account.json
|
213
|
+
method: post
|
214
|
+
uri: http://localhost:3000/locomotive/api/v3/my_account.json
|
159
215
|
body:
|
160
|
-
encoding:
|
161
|
-
string:
|
216
|
+
encoding: UTF-8
|
217
|
+
string: account%5Bname%5D=Wrong+account
|
162
218
|
headers:
|
219
|
+
User-Agent:
|
220
|
+
- Faraday v0.15.4
|
163
221
|
Accept:
|
164
222
|
- application/json
|
165
|
-
X-Locomotive-Account-Email:
|
166
|
-
- admin@locomotivecms.com
|
167
|
-
X-Locomotive-Account-Token:
|
168
|
-
- E2aoXzMxkFsLnCcmCcc_
|
169
223
|
Accept-Encoding:
|
170
|
-
- gzip
|
171
|
-
|
172
|
-
-
|
224
|
+
- gzip,deflate
|
225
|
+
Date:
|
226
|
+
- Sun, 17 Nov 2019 16:39:30 GMT
|
227
|
+
Content-Type:
|
228
|
+
- application/x-www-form-urlencoded
|
173
229
|
response:
|
174
230
|
status:
|
175
|
-
code:
|
176
|
-
message:
|
231
|
+
code: 422
|
232
|
+
message: Unprocessable Entity
|
177
233
|
headers:
|
178
234
|
Content-Type:
|
179
235
|
- application/json
|
180
|
-
|
181
|
-
-
|
236
|
+
Content-Length:
|
237
|
+
- '92'
|
238
|
+
Connection:
|
239
|
+
- keep-alive
|
240
|
+
Status:
|
241
|
+
- 422 Unprocessable Entity
|
182
242
|
Cache-Control:
|
183
|
-
-
|
184
|
-
X-Request-Id:
|
185
|
-
- 92138415-2bf7-452a-b04c-d947488d0b71
|
243
|
+
- no-cache
|
186
244
|
X-Runtime:
|
187
|
-
- '0.
|
188
|
-
|
189
|
-
-
|
245
|
+
- '0.006917'
|
246
|
+
X-Request-Id:
|
247
|
+
- 323b1477-94b4-4e06-9da3-48e09f37bbc3
|
248
|
+
Date:
|
249
|
+
- Sun, 17 Nov 2019 16:39:30 GMT
|
250
|
+
X-Powered-By:
|
251
|
+
- Phusion Passenger 6.0.4
|
252
|
+
Server:
|
253
|
+
- nginx/1.17.3 + Phusion Passenger 6.0.4
|
190
254
|
body:
|
191
255
|
encoding: UTF-8
|
192
|
-
string: '{"
|
193
|
-
|
256
|
+
string: '{"error":"Resource invalid","attributes":{"email":["is missing"],"password":["is
|
257
|
+
missing"]}}'
|
194
258
|
http_version:
|
195
|
-
recorded_at:
|
196
|
-
recorded_with: VCR
|
259
|
+
recorded_at: Sun, 17 Nov 2019 16:39:30 GMT
|
260
|
+
recorded_with: VCR 4.0.0
|
@@ -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,40 +24,52 @@ 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.008515'
|
39
|
+
X-Request-Id:
|
40
|
+
- abceaaf0-2c63-4d63-8cb2-755376ade183
|
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/pages.json?auth_token=
|
54
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/pages.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
|
-
-
|
70
|
+
- bzwAyFQzcchf_hgDQhz3
|
53
71
|
X-Locomotive-Locale:
|
54
72
|
- en
|
55
|
-
Accept-Encoding:
|
56
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
57
|
-
User-Agent:
|
58
|
-
- Ruby
|
59
73
|
response:
|
60
74
|
status:
|
61
75
|
code: 200
|
@@ -63,44 +77,58 @@ http_interactions:
|
|
63
77
|
headers:
|
64
78
|
Content-Type:
|
65
79
|
- application/json
|
66
|
-
|
67
|
-
-
|
80
|
+
Transfer-Encoding:
|
81
|
+
- chunked
|
82
|
+
Connection:
|
83
|
+
- keep-alive
|
84
|
+
Status:
|
85
|
+
- 200 OK
|
68
86
|
Cache-Control:
|
69
87
|
- max-age=0, private, must-revalidate
|
70
|
-
|
71
|
-
-
|
88
|
+
Etag:
|
89
|
+
- W/"1b00f374830ea6182c6d0304124d3b56"
|
72
90
|
X-Runtime:
|
73
|
-
- '0.
|
74
|
-
|
75
|
-
-
|
91
|
+
- '0.021310'
|
92
|
+
X-Request-Id:
|
93
|
+
- be014f45-8790-4975-b98b-cb4a963b00a1
|
94
|
+
Date:
|
95
|
+
- Sun, 17 Nov 2019 16:39:30 GMT
|
96
|
+
X-Powered-By:
|
97
|
+
- Phusion Passenger 6.0.4
|
98
|
+
Server:
|
99
|
+
- nginx/1.17.3 + Phusion Passenger 6.0.4
|
100
|
+
Content-Encoding:
|
101
|
+
- gzip
|
76
102
|
body:
|
77
103
|
encoding: UTF-8
|
78
|
-
string: '[{"_id":"
|
79
|
-
page","parent_id":null,"position":0,"handle":null,"depth":0,"response_type":"text/html","listed":true,"published":true,"translated_in":["en"],"cache_enabled":true,"slug":"index","fullpath":"index","localized_fullpaths":{"en":""},"redirect":false,"redirect_url":"","redirect_type":301,"templatized":false,"templatized_from_parent":false,"content_type":null,"is_layout":false,"allow_layout":true,"template":"Content
|
80
|
-
of the home page","editable_elements":[],"seo_title":null,"meta_keywords":null,"meta_description":null},{"_id":"
|
81
|
-
not found","parent_id":null,"position":1,"handle":null,"depth":0,"response_type":"text/html","listed":true,"published":true,"translated_in":["en"],"cache_enabled":true,"slug":"404","fullpath":"404","localized_fullpaths":{"en":"404"},"redirect":false,"redirect_url":"","redirect_type":301,"templatized":false,"templatized_from_parent":false,"content_type":null,"is_layout":false,"allow_layout":true,"template":"Content
|
104
|
+
string: '[{"_id":"5dd1779ca95330a94bf72543","created_at":"2019-11-17T16:38:52Z","updated_at":"2019-11-17T16:38:52Z","title":"Home
|
105
|
+
page","parent_id":null,"position":0,"handle":null,"depth":0,"response_type":"text/html","listed":true,"published":true,"translated_in":["en"],"cache_enabled":true,"slug":"index","fullpath":"index","sections_dropzone_content":"[]","sections_content":"{}","localized_fullpaths":{"en":"/"},"redirect":false,"redirect_url":"","redirect_type":301,"templatized":false,"templatized_from_parent":false,"content_type":null,"is_layout":false,"allow_layout":true,"template":"Content
|
106
|
+
of the home page","editable_elements":[],"seo_title":null,"meta_keywords":null,"meta_description":null},{"_id":"5dd1779ca95330a94bf72544","created_at":"2019-11-17T16:38:52Z","updated_at":"2019-11-17T16:38:52Z","title":"Page
|
107
|
+
not found","parent_id":null,"position":1,"handle":null,"depth":0,"response_type":"text/html","listed":true,"published":true,"translated_in":["en"],"cache_enabled":true,"slug":"404","fullpath":"404","sections_dropzone_content":"[]","sections_content":"{}","localized_fullpaths":{"en":"/404"},"redirect":false,"redirect_url":"","redirect_type":301,"templatized":false,"templatized_from_parent":false,"content_type":null,"is_layout":false,"allow_layout":true,"template":"Content
|
82
108
|
of the 404 page","editable_elements":[],"seo_title":null,"meta_keywords":null,"meta_description":null}]'
|
83
109
|
http_version:
|
84
|
-
recorded_at:
|
110
|
+
recorded_at: Sun, 17 Nov 2019 16:39:30 GMT
|
85
111
|
- request:
|
86
112
|
method: get
|
87
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/pages/fullpaths.json?auth_token=
|
113
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/pages/fullpaths.json?auth_token=bzwAyFQzcchf_hgDQhz3
|
88
114
|
body:
|
89
|
-
encoding:
|
115
|
+
encoding: UTF-8
|
90
116
|
string: ''
|
91
117
|
headers:
|
118
|
+
User-Agent:
|
119
|
+
- Faraday v0.15.4
|
92
120
|
Accept:
|
93
121
|
- application/json
|
122
|
+
Accept-Encoding:
|
123
|
+
- gzip,deflate
|
124
|
+
Date:
|
125
|
+
- Sun, 17 Nov 2019 16:39:30 GMT
|
94
126
|
X-Locomotive-Account-Email:
|
95
127
|
- admin@locomotivecms.com
|
96
128
|
X-Locomotive-Account-Token:
|
97
|
-
-
|
129
|
+
- bzwAyFQzcchf_hgDQhz3
|
98
130
|
X-Locomotive-Locale:
|
99
131
|
- en
|
100
|
-
Accept-Encoding:
|
101
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
102
|
-
User-Agent:
|
103
|
-
- Ruby
|
104
132
|
response:
|
105
133
|
status:
|
106
134
|
code: 200
|
@@ -108,40 +136,52 @@ http_interactions:
|
|
108
136
|
headers:
|
109
137
|
Content-Type:
|
110
138
|
- application/json
|
111
|
-
|
112
|
-
-
|
139
|
+
Content-Length:
|
140
|
+
- '135'
|
141
|
+
Connection:
|
142
|
+
- keep-alive
|
143
|
+
Status:
|
144
|
+
- 200 OK
|
113
145
|
Cache-Control:
|
114
146
|
- max-age=0, private, must-revalidate
|
115
|
-
|
116
|
-
-
|
147
|
+
Etag:
|
148
|
+
- W/"09a5c21a0428a453af63546ad46ca082"
|
117
149
|
X-Runtime:
|
118
|
-
- '0.
|
119
|
-
|
120
|
-
-
|
150
|
+
- '0.015544'
|
151
|
+
X-Request-Id:
|
152
|
+
- 27d8ef26-0883-44ee-bf6a-5162ad9c10ac
|
153
|
+
Date:
|
154
|
+
- Sun, 17 Nov 2019 16:39:30 GMT
|
155
|
+
X-Powered-By:
|
156
|
+
- Phusion Passenger 6.0.4
|
157
|
+
Server:
|
158
|
+
- nginx/1.17.3 + Phusion Passenger 6.0.4
|
121
159
|
body:
|
122
160
|
encoding: UTF-8
|
123
|
-
string: '[{"_id":"
|
161
|
+
string: '[{"_id":"5dd1779ca95330a94bf72543","fullpath":"index","handle":null},{"_id":"5dd1779ca95330a94bf72544","fullpath":"404","handle":null}]'
|
124
162
|
http_version:
|
125
|
-
recorded_at:
|
163
|
+
recorded_at: Sun, 17 Nov 2019 16:39:30 GMT
|
126
164
|
- request:
|
127
165
|
method: post
|
128
166
|
uri: http://localhost:3000/locomotive/sample/api/v3/pages.json
|
129
167
|
body:
|
130
168
|
encoding: UTF-8
|
131
|
-
string: auth_token=
|
169
|
+
string: auth_token=bzwAyFQzcchf_hgDQhz3&page%5Bparent%5D=index&page%5Bslug%5D=about-us&page%5Btemplate%5D=Locomotive+rocks%21&page%5Btitle%5D=About+us
|
132
170
|
headers:
|
171
|
+
User-Agent:
|
172
|
+
- Faraday v0.15.4
|
133
173
|
Accept:
|
134
174
|
- application/json
|
175
|
+
Accept-Encoding:
|
176
|
+
- gzip,deflate
|
177
|
+
Date:
|
178
|
+
- Sun, 17 Nov 2019 16:39:30 GMT
|
135
179
|
X-Locomotive-Account-Email:
|
136
180
|
- admin@locomotivecms.com
|
137
181
|
X-Locomotive-Account-Token:
|
138
|
-
-
|
182
|
+
- bzwAyFQzcchf_hgDQhz3
|
139
183
|
Content-Type:
|
140
184
|
- application/x-www-form-urlencoded
|
141
|
-
Accept-Encoding:
|
142
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
143
|
-
User-Agent:
|
144
|
-
- Ruby
|
145
185
|
response:
|
146
186
|
status:
|
147
187
|
code: 201
|
@@ -149,44 +189,56 @@ http_interactions:
|
|
149
189
|
headers:
|
150
190
|
Content-Type:
|
151
191
|
- application/json
|
152
|
-
|
153
|
-
-
|
192
|
+
Content-Length:
|
193
|
+
- '724'
|
194
|
+
Connection:
|
195
|
+
- keep-alive
|
196
|
+
Status:
|
197
|
+
- 201 Created
|
154
198
|
Cache-Control:
|
155
199
|
- max-age=0, private, must-revalidate
|
156
|
-
|
157
|
-
-
|
200
|
+
Etag:
|
201
|
+
- W/"734da27ece892ec53e1f757b78723b82"
|
158
202
|
X-Runtime:
|
159
|
-
- '0.
|
160
|
-
|
161
|
-
-
|
203
|
+
- '0.035574'
|
204
|
+
X-Request-Id:
|
205
|
+
- 8b94d2b9-6028-41f5-b27a-108955dd7820
|
206
|
+
Date:
|
207
|
+
- Sun, 17 Nov 2019 16:39:30 GMT
|
208
|
+
X-Powered-By:
|
209
|
+
- Phusion Passenger 6.0.4
|
210
|
+
Server:
|
211
|
+
- nginx/1.17.3 + Phusion Passenger 6.0.4
|
162
212
|
body:
|
163
213
|
encoding: UTF-8
|
164
|
-
string: '{"_id":"
|
165
|
-
us","parent_id":"
|
214
|
+
string: '{"_id":"5dd177c2a95330aa17f8f8dd","created_at":"2019-11-17T16:39:30Z","updated_at":"2019-11-17T16:39:30Z","title":"About
|
215
|
+
us","parent_id":"5dd1779ca95330a94bf72543","position":0,"handle":null,"depth":1,"response_type":"text/html","listed":true,"published":false,"translated_in":["en"],"cache_enabled":true,"slug":"about-us","fullpath":"about-us","sections_dropzone_content":"[]","sections_content":"{}","localized_fullpaths":{"en":"/about-us"},"redirect":false,"redirect_url":"","redirect_type":301,"templatized":false,"templatized_from_parent":false,"content_type":null,"is_layout":false,"allow_layout":true,"template":"Locomotive
|
166
216
|
rocks!","editable_elements":[],"seo_title":null,"meta_keywords":null,"meta_description":null}'
|
167
217
|
http_version:
|
168
|
-
recorded_at:
|
218
|
+
recorded_at: Sun, 17 Nov 2019 16:39:30 GMT
|
169
219
|
- request:
|
170
220
|
method: put
|
171
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/pages/
|
221
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/pages/5dd177c2a95330aa17f8f8dd.json
|
172
222
|
body:
|
173
223
|
encoding: UTF-8
|
174
|
-
string: auth_token=
|
224
|
+
string: auth_token=bzwAyFQzcchf_hgDQhz3&page%5Btemplate%5D=Locomotive+rocks.+period
|
175
225
|
headers:
|
226
|
+
User-Agent:
|
227
|
+
- Faraday v0.15.4
|
176
228
|
Accept:
|
177
229
|
- application/json
|
230
|
+
Accept-Encoding:
|
231
|
+
- gzip,deflate
|
232
|
+
Date:
|
233
|
+
- Sun, 17 Nov 2019 16:39:30 GMT
|
178
234
|
X-Locomotive-Account-Email:
|
179
235
|
- admin@locomotivecms.com
|
180
236
|
X-Locomotive-Account-Token:
|
181
|
-
-
|
237
|
+
- bzwAyFQzcchf_hgDQhz3
|
182
238
|
X-Locomotive-Locale:
|
183
239
|
- en
|
184
240
|
Content-Type:
|
185
241
|
- application/x-www-form-urlencoded
|
186
|
-
Accept-Encoding:
|
187
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
188
|
-
User-Agent:
|
189
|
-
- Ruby
|
190
242
|
response:
|
191
243
|
status:
|
192
244
|
code: 200
|
@@ -194,40 +246,54 @@ http_interactions:
|
|
194
246
|
headers:
|
195
247
|
Content-Type:
|
196
248
|
- application/json
|
197
|
-
|
198
|
-
-
|
249
|
+
Transfer-Encoding:
|
250
|
+
- chunked
|
251
|
+
Connection:
|
252
|
+
- keep-alive
|
253
|
+
Status:
|
254
|
+
- 200 OK
|
199
255
|
Cache-Control:
|
200
256
|
- max-age=0, private, must-revalidate
|
201
|
-
|
202
|
-
-
|
257
|
+
Etag:
|
258
|
+
- W/"668b21155cea7d89ea8c9be9b96f0829"
|
203
259
|
X-Runtime:
|
204
|
-
- '0.
|
205
|
-
|
206
|
-
-
|
260
|
+
- '0.027743'
|
261
|
+
X-Request-Id:
|
262
|
+
- 2a7b6a61-77f7-4ca4-98d8-c3f501153f29
|
263
|
+
Date:
|
264
|
+
- Sun, 17 Nov 2019 16:39:30 GMT
|
265
|
+
X-Powered-By:
|
266
|
+
- Phusion Passenger 6.0.4
|
267
|
+
Server:
|
268
|
+
- nginx/1.17.3 + Phusion Passenger 6.0.4
|
269
|
+
Content-Encoding:
|
270
|
+
- gzip
|
207
271
|
body:
|
208
272
|
encoding: UTF-8
|
209
|
-
string: '{"_id":"
|
210
|
-
us","parent_id":"
|
273
|
+
string: '{"_id":"5dd177c2a95330aa17f8f8dd","created_at":"2019-11-17T16:39:30Z","updated_at":"2019-11-17T16:39:30Z","title":"About
|
274
|
+
us","parent_id":"5dd1779ca95330a94bf72543","position":0,"handle":null,"depth":1,"response_type":"text/html","listed":true,"published":false,"translated_in":["en"],"cache_enabled":true,"slug":"about-us","fullpath":"about-us","sections_dropzone_content":"[]","sections_content":"{}","localized_fullpaths":{"en":"/about-us"},"redirect":false,"redirect_url":"","redirect_type":301,"templatized":false,"templatized_from_parent":false,"content_type":null,"is_layout":false,"allow_layout":true,"template":"Locomotive
|
211
275
|
rocks. period","editable_elements":[],"seo_title":null,"meta_keywords":null,"meta_description":null}'
|
212
276
|
http_version:
|
213
|
-
recorded_at:
|
277
|
+
recorded_at: Sun, 17 Nov 2019 16:39:30 GMT
|
214
278
|
- request:
|
215
279
|
method: delete
|
216
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/pages/
|
280
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/pages/5dd177c2a95330aa17f8f8dd.json?auth_token=bzwAyFQzcchf_hgDQhz3
|
217
281
|
body:
|
218
|
-
encoding:
|
282
|
+
encoding: UTF-8
|
219
283
|
string: ''
|
220
284
|
headers:
|
285
|
+
User-Agent:
|
286
|
+
- Faraday v0.15.4
|
221
287
|
Accept:
|
222
288
|
- application/json
|
289
|
+
Accept-Encoding:
|
290
|
+
- gzip,deflate
|
291
|
+
Date:
|
292
|
+
- Sun, 17 Nov 2019 16:39:30 GMT
|
223
293
|
X-Locomotive-Account-Email:
|
224
294
|
- admin@locomotivecms.com
|
225
295
|
X-Locomotive-Account-Token:
|
226
|
-
-
|
227
|
-
Accept-Encoding:
|
228
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
229
|
-
User-Agent:
|
230
|
-
- Ruby
|
296
|
+
- bzwAyFQzcchf_hgDQhz3
|
231
297
|
response:
|
232
298
|
status:
|
233
299
|
code: 200
|
@@ -235,21 +301,33 @@ http_interactions:
|
|
235
301
|
headers:
|
236
302
|
Content-Type:
|
237
303
|
- application/json
|
238
|
-
|
239
|
-
-
|
304
|
+
Transfer-Encoding:
|
305
|
+
- chunked
|
306
|
+
Connection:
|
307
|
+
- keep-alive
|
308
|
+
Status:
|
309
|
+
- 200 OK
|
240
310
|
Cache-Control:
|
241
311
|
- max-age=0, private, must-revalidate
|
242
|
-
|
243
|
-
-
|
312
|
+
Etag:
|
313
|
+
- W/"668b21155cea7d89ea8c9be9b96f0829"
|
244
314
|
X-Runtime:
|
245
|
-
- '0.
|
246
|
-
|
247
|
-
-
|
315
|
+
- '0.050051'
|
316
|
+
X-Request-Id:
|
317
|
+
- 0c09b481-d654-4a52-97db-ea28825fbed8
|
318
|
+
Date:
|
319
|
+
- Sun, 17 Nov 2019 16:39:30 GMT
|
320
|
+
X-Powered-By:
|
321
|
+
- Phusion Passenger 6.0.4
|
322
|
+
Server:
|
323
|
+
- nginx/1.17.3 + Phusion Passenger 6.0.4
|
324
|
+
Content-Encoding:
|
325
|
+
- gzip
|
248
326
|
body:
|
249
327
|
encoding: UTF-8
|
250
|
-
string: '{"_id":"
|
251
|
-
us","parent_id":"
|
328
|
+
string: '{"_id":"5dd177c2a95330aa17f8f8dd","created_at":"2019-11-17T16:39:30Z","updated_at":"2019-11-17T16:39:30Z","title":"About
|
329
|
+
us","parent_id":"5dd1779ca95330a94bf72543","position":0,"handle":null,"depth":1,"response_type":"text/html","listed":true,"published":false,"translated_in":["en"],"cache_enabled":true,"slug":"about-us","fullpath":"about-us","sections_dropzone_content":"[]","sections_content":"{}","localized_fullpaths":{"en":"/about-us"},"redirect":false,"redirect_url":"","redirect_type":301,"templatized":false,"templatized_from_parent":false,"content_type":null,"is_layout":false,"allow_layout":true,"template":"Locomotive
|
252
330
|
rocks. period","editable_elements":[],"seo_title":null,"meta_keywords":null,"meta_description":null}'
|
253
331
|
http_version:
|
254
|
-
recorded_at:
|
255
|
-
recorded_with: VCR
|
332
|
+
recorded_at: Sun, 17 Nov 2019 16:39:30 GMT
|
333
|
+
recorded_with: VCR 4.0.0
|