locomotivecms_coal 1.6.0 → 1.8.0.alpha1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/README.md +3 -3
- data/lib/locomotive/coal/resources/concerns/request.rb +1 -1
- data/lib/locomotive/coal/version.rb +1 -1
- metadata +20 -123
- data/.gitignore +0 -4
- data/.rspec +0 -2
- data/.travis.yml +0 -8
- data/Gemfile +0 -21
- data/Gemfile.lock +0 -125
- data/Rakefile +0 -21
- data/locomotivecms_coal.gemspec +0 -27
- data/spec/fixtures/assets/locomotive.png +0 -0
- data/spec/fixtures/assets/rails.png +0 -0
- data/spec/fixtures/coal_cassettes/accounts.yml +0 -214
- data/spec/fixtures/coal_cassettes/client.yml +0 -479
- data/spec/fixtures/coal_cassettes/content_assets.yml +0 -270
- data/spec/fixtures/coal_cassettes/content_entries.yml +0 -2189
- data/spec/fixtures/coal_cassettes/content_types.yml +0 -726
- data/spec/fixtures/coal_cassettes/current_site.yml +0 -166
- data/spec/fixtures/coal_cassettes/memberships.yml +0 -270
- data/spec/fixtures/coal_cassettes/my_account.yml +0 -260
- data/spec/fixtures/coal_cassettes/pages.yml +0 -333
- data/spec/fixtures/coal_cassettes/sections.yml +0 -267
- data/spec/fixtures/coal_cassettes/sites.yml +0 -212
- data/spec/fixtures/coal_cassettes/snippets.yml +0 -269
- data/spec/fixtures/coal_cassettes/theme_assets.yml +0 -270
- data/spec/fixtures/coal_cassettes/token.yml +0 -103
- data/spec/fixtures/coal_cassettes/translations.yml +0 -267
- data/spec/fixtures/coal_cassettes/version.yml +0 -103
- data/spec/integration/client_spec.rb +0 -67
- data/spec/integration/resources/accounts_spec.rb +0 -38
- data/spec/integration/resources/content_assets_spec.rb +0 -42
- data/spec/integration/resources/content_entries_spec.rb +0 -97
- data/spec/integration/resources/content_types_spec.rb +0 -44
- data/spec/integration/resources/current_site_spec.rb +0 -22
- data/spec/integration/resources/engine_version_spec.rb +0 -17
- data/spec/integration/resources/memberships_spec.rb +0 -39
- data/spec/integration/resources/my_account_spec.rb +0 -34
- data/spec/integration/resources/pages_spec.rb +0 -43
- data/spec/integration/resources/sections_spec.rb +0 -46
- data/spec/integration/resources/sites_spec.rb +0 -43
- data/spec/integration/resources/snippets_spec.rb +0 -38
- data/spec/integration/resources/theme_assets_spec.rb +0 -43
- data/spec/integration/resources/token_spec.rb +0 -38
- data/spec/integration/resources/translations_spec.rb +0 -38
- data/spec/spec_helper.rb +0 -28
- data/spec/support/api_settings.rb +0 -10
- data/spec/support/assets.rb +0 -4
- data/spec/support/default_resources.rb +0 -7
- data/spec/support/pry.rb +0 -4
- data/spec/support/vcr.rb +0 -10
- data/spec/unit/client_spec.rb +0 -52
- data/spec/unit/client_v2_spec.rb +0 -22
- data/spec/unit/error_spec.rb +0 -36
- data/spec/unit/paginated_resources_spec.rb +0 -50
- data/spec/unit/resource_spec.rb +0 -29
@@ -1,166 +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:30 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.005737'
|
39
|
-
X-Request-Id:
|
40
|
-
- babf30ab-aa5d-4f70-b161-1a8726a494be
|
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
|
47
|
-
body:
|
48
|
-
encoding: UTF-8
|
49
|
-
string: '{"token":"bzwAyFQzcchf_hgDQhz3"}'
|
50
|
-
http_version:
|
51
|
-
recorded_at: Sun, 17 Nov 2019 16:39:30 GMT
|
52
|
-
- request:
|
53
|
-
method: put
|
54
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/current_site.json
|
55
|
-
body:
|
56
|
-
encoding: UTF-8
|
57
|
-
string: auth_token=bzwAyFQzcchf_hgDQhz3&site%5Bname%5D=John+Doe
|
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:30 GMT
|
67
|
-
X-Locomotive-Account-Email:
|
68
|
-
- admin@locomotivecms.com
|
69
|
-
X-Locomotive-Account-Token:
|
70
|
-
- bzwAyFQzcchf_hgDQhz3
|
71
|
-
Content-Type:
|
72
|
-
- application/x-www-form-urlencoded
|
73
|
-
response:
|
74
|
-
status:
|
75
|
-
code: 200
|
76
|
-
message: OK
|
77
|
-
headers:
|
78
|
-
Content-Type:
|
79
|
-
- application/json
|
80
|
-
Transfer-Encoding:
|
81
|
-
- chunked
|
82
|
-
Connection:
|
83
|
-
- keep-alive
|
84
|
-
Status:
|
85
|
-
- 200 OK
|
86
|
-
Cache-Control:
|
87
|
-
- max-age=0, private, must-revalidate
|
88
|
-
Etag:
|
89
|
-
- W/"ac375c9f025ecfea668ba13d656aa21c"
|
90
|
-
X-Runtime:
|
91
|
-
- '0.031247'
|
92
|
-
X-Request-Id:
|
93
|
-
- 309dc750-c07c-4edd-8810-72001ed7b672
|
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
|
102
|
-
body:
|
103
|
-
encoding: UTF-8
|
104
|
-
string: '{"_id":"5dd1779ca95330a94bf72542","created_at":"2019-11-17T16:38:52Z","updated_at":"2019-11-17T16:39:30Z","name":"John
|
105
|
-
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
|
106
|
-
Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"content_version":1574008770,"template_version":1574008770,"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":"[]"}'
|
107
|
-
http_version:
|
108
|
-
recorded_at: Sun, 17 Nov 2019 16:39:30 GMT
|
109
|
-
- request:
|
110
|
-
method: get
|
111
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/current_site.json?auth_token=bzwAyFQzcchf_hgDQhz3
|
112
|
-
body:
|
113
|
-
encoding: UTF-8
|
114
|
-
string: ''
|
115
|
-
headers:
|
116
|
-
User-Agent:
|
117
|
-
- Faraday v0.15.4
|
118
|
-
Accept:
|
119
|
-
- application/json
|
120
|
-
Accept-Encoding:
|
121
|
-
- gzip,deflate
|
122
|
-
Date:
|
123
|
-
- Sun, 17 Nov 2019 16:39:30 GMT
|
124
|
-
X-Locomotive-Account-Email:
|
125
|
-
- admin@locomotivecms.com
|
126
|
-
X-Locomotive-Account-Token:
|
127
|
-
- bzwAyFQzcchf_hgDQhz3
|
128
|
-
X-Locomotive-Locale:
|
129
|
-
- ''
|
130
|
-
response:
|
131
|
-
status:
|
132
|
-
code: 200
|
133
|
-
message: OK
|
134
|
-
headers:
|
135
|
-
Content-Type:
|
136
|
-
- application/json
|
137
|
-
Transfer-Encoding:
|
138
|
-
- chunked
|
139
|
-
Connection:
|
140
|
-
- keep-alive
|
141
|
-
Status:
|
142
|
-
- 200 OK
|
143
|
-
Cache-Control:
|
144
|
-
- max-age=0, private, must-revalidate
|
145
|
-
Etag:
|
146
|
-
- W/"ac375c9f025ecfea668ba13d656aa21c"
|
147
|
-
X-Runtime:
|
148
|
-
- '0.014064'
|
149
|
-
X-Request-Id:
|
150
|
-
- 5fbdb457-f233-4a29-99cd-07773254c79c
|
151
|
-
Date:
|
152
|
-
- Sun, 17 Nov 2019 16:39:30 GMT
|
153
|
-
X-Powered-By:
|
154
|
-
- Phusion Passenger 6.0.4
|
155
|
-
Server:
|
156
|
-
- nginx/1.17.3 + Phusion Passenger 6.0.4
|
157
|
-
Content-Encoding:
|
158
|
-
- gzip
|
159
|
-
body:
|
160
|
-
encoding: UTF-8
|
161
|
-
string: '{"_id":"5dd1779ca95330a94bf72542","created_at":"2019-11-17T16:38:52Z","updated_at":"2019-11-17T16:39:30Z","name":"John
|
162
|
-
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
|
163
|
-
Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"content_version":1574008770,"template_version":1574008770,"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":"[]"}'
|
164
|
-
http_version:
|
165
|
-
recorded_at: Sun, 17 Nov 2019 16:39:30 GMT
|
166
|
-
recorded_with: VCR 4.0.0
|
@@ -1,270 +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.005710'
|
39
|
-
X-Request-Id:
|
40
|
-
- fe19e09a-5802-40bb-929e-ce34f85a9c4b
|
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/sample/api/v3/memberships.json?auth_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: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/"5037afd5d1ab42233b7b8cf0691f8989"
|
88
|
-
X-Runtime:
|
89
|
-
- '0.012145'
|
90
|
-
X-Request-Id:
|
91
|
-
- a62551cc-ec7f-41af-b7b0-69ffb796315d
|
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":"5dd1779ca95330a94bf72545","created_at":null,"updated_at":null,"role":"admin","account_id":"5dd1779ba95330a94bf7253c","name":"John
|
103
|
-
Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}]'
|
104
|
-
http_version:
|
105
|
-
recorded_at: Sun, 17 Nov 2019 16:39:31 GMT
|
106
|
-
- request:
|
107
|
-
method: post
|
108
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/memberships.json
|
109
|
-
body:
|
110
|
-
encoding: UTF-8
|
111
|
-
string: auth_token=bzwAyFQzcchf_hgDQhz3&membership%5Baccount_email%5D=new_admin%40locomotivecms.com&membership%5Brole%5D=Admin
|
112
|
-
headers:
|
113
|
-
User-Agent:
|
114
|
-
- Faraday v0.15.4
|
115
|
-
Accept:
|
116
|
-
- application/json
|
117
|
-
Accept-Encoding:
|
118
|
-
- gzip,deflate
|
119
|
-
Date:
|
120
|
-
- Sun, 17 Nov 2019 16:39:31 GMT
|
121
|
-
X-Locomotive-Account-Email:
|
122
|
-
- admin@locomotivecms.com
|
123
|
-
X-Locomotive-Account-Token:
|
124
|
-
- bzwAyFQzcchf_hgDQhz3
|
125
|
-
Content-Type:
|
126
|
-
- application/x-www-form-urlencoded
|
127
|
-
response:
|
128
|
-
status:
|
129
|
-
code: 201
|
130
|
-
message: Created
|
131
|
-
headers:
|
132
|
-
Content-Type:
|
133
|
-
- application/json
|
134
|
-
Content-Length:
|
135
|
-
- '246'
|
136
|
-
Connection:
|
137
|
-
- keep-alive
|
138
|
-
Status:
|
139
|
-
- 201 Created
|
140
|
-
Cache-Control:
|
141
|
-
- max-age=0, private, must-revalidate
|
142
|
-
Etag:
|
143
|
-
- W/"95eafc91cab3792756ddf131ec2b863d"
|
144
|
-
X-Runtime:
|
145
|
-
- '0.019690'
|
146
|
-
X-Request-Id:
|
147
|
-
- e82e024e-575b-401b-90e1-dcf837dab1f9
|
148
|
-
Date:
|
149
|
-
- Sun, 17 Nov 2019 16:39:31 GMT
|
150
|
-
X-Powered-By:
|
151
|
-
- Phusion Passenger 6.0.4
|
152
|
-
Server:
|
153
|
-
- nginx/1.17.3 + Phusion Passenger 6.0.4
|
154
|
-
body:
|
155
|
-
encoding: UTF-8
|
156
|
-
string: '{"_id":"5dd177c3a95330aa17f8f8e4","created_at":"2019-11-17T16:39:31Z","updated_at":"2019-11-17T16:39:31Z","role":"admin","account_id":"5dd1779ba95330a94bf7253d","name":"New
|
157
|
-
Admin","role_name":"Administrator","email":"new_admin@locomotivecms.com"}'
|
158
|
-
http_version:
|
159
|
-
recorded_at: Sun, 17 Nov 2019 16:39:31 GMT
|
160
|
-
- request:
|
161
|
-
method: put
|
162
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/memberships/5dd177c3a95330aa17f8f8e4.json
|
163
|
-
body:
|
164
|
-
encoding: UTF-8
|
165
|
-
string: auth_token=bzwAyFQzcchf_hgDQhz3&membership%5Brole%5D=author
|
166
|
-
headers:
|
167
|
-
User-Agent:
|
168
|
-
- Faraday v0.15.4
|
169
|
-
Accept:
|
170
|
-
- application/json
|
171
|
-
Accept-Encoding:
|
172
|
-
- gzip,deflate
|
173
|
-
Date:
|
174
|
-
- Sun, 17 Nov 2019 16:39:31 GMT
|
175
|
-
X-Locomotive-Account-Email:
|
176
|
-
- admin@locomotivecms.com
|
177
|
-
X-Locomotive-Account-Token:
|
178
|
-
- bzwAyFQzcchf_hgDQhz3
|
179
|
-
Content-Type:
|
180
|
-
- application/x-www-form-urlencoded
|
181
|
-
response:
|
182
|
-
status:
|
183
|
-
code: 200
|
184
|
-
message: OK
|
185
|
-
headers:
|
186
|
-
Content-Type:
|
187
|
-
- application/json
|
188
|
-
Transfer-Encoding:
|
189
|
-
- chunked
|
190
|
-
Connection:
|
191
|
-
- keep-alive
|
192
|
-
Status:
|
193
|
-
- 200 OK
|
194
|
-
Cache-Control:
|
195
|
-
- max-age=0, private, must-revalidate
|
196
|
-
Etag:
|
197
|
-
- W/"e659962511b85d7292156401c647292e"
|
198
|
-
X-Runtime:
|
199
|
-
- '0.019208'
|
200
|
-
X-Request-Id:
|
201
|
-
- ccba0e5c-9077-4fbc-b460-5c755a947a8c
|
202
|
-
Date:
|
203
|
-
- Sun, 17 Nov 2019 16:39:31 GMT
|
204
|
-
X-Powered-By:
|
205
|
-
- Phusion Passenger 6.0.4
|
206
|
-
Server:
|
207
|
-
- nginx/1.17.3 + Phusion Passenger 6.0.4
|
208
|
-
Content-Encoding:
|
209
|
-
- gzip
|
210
|
-
body:
|
211
|
-
encoding: UTF-8
|
212
|
-
string: '{"_id":"5dd177c3a95330aa17f8f8e4","created_at":"2019-11-17T16:39:31Z","updated_at":"2019-11-17T16:39:31Z","role":"author","account_id":"5dd1779ba95330a94bf7253d","name":"New
|
213
|
-
Admin","role_name":"Author","email":"new_admin@locomotivecms.com"}'
|
214
|
-
http_version:
|
215
|
-
recorded_at: Sun, 17 Nov 2019 16:39:31 GMT
|
216
|
-
- request:
|
217
|
-
method: delete
|
218
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/memberships/5dd177c3a95330aa17f8f8e4.json?auth_token=bzwAyFQzcchf_hgDQhz3
|
219
|
-
body:
|
220
|
-
encoding: UTF-8
|
221
|
-
string: ''
|
222
|
-
headers:
|
223
|
-
User-Agent:
|
224
|
-
- Faraday v0.15.4
|
225
|
-
Accept:
|
226
|
-
- application/json
|
227
|
-
Accept-Encoding:
|
228
|
-
- gzip,deflate
|
229
|
-
Date:
|
230
|
-
- Sun, 17 Nov 2019 16:39:31 GMT
|
231
|
-
X-Locomotive-Account-Email:
|
232
|
-
- admin@locomotivecms.com
|
233
|
-
X-Locomotive-Account-Token:
|
234
|
-
- bzwAyFQzcchf_hgDQhz3
|
235
|
-
response:
|
236
|
-
status:
|
237
|
-
code: 200
|
238
|
-
message: OK
|
239
|
-
headers:
|
240
|
-
Content-Type:
|
241
|
-
- application/json
|
242
|
-
Transfer-Encoding:
|
243
|
-
- chunked
|
244
|
-
Connection:
|
245
|
-
- keep-alive
|
246
|
-
Status:
|
247
|
-
- 200 OK
|
248
|
-
Cache-Control:
|
249
|
-
- max-age=0, private, must-revalidate
|
250
|
-
Etag:
|
251
|
-
- W/"e659962511b85d7292156401c647292e"
|
252
|
-
X-Runtime:
|
253
|
-
- '0.013956'
|
254
|
-
X-Request-Id:
|
255
|
-
- 4050ac48-1b57-4b29-8687-db62d76f3b78
|
256
|
-
Date:
|
257
|
-
- Sun, 17 Nov 2019 16:39:31 GMT
|
258
|
-
X-Powered-By:
|
259
|
-
- Phusion Passenger 6.0.4
|
260
|
-
Server:
|
261
|
-
- nginx/1.17.3 + Phusion Passenger 6.0.4
|
262
|
-
Content-Encoding:
|
263
|
-
- gzip
|
264
|
-
body:
|
265
|
-
encoding: UTF-8
|
266
|
-
string: '{"_id":"5dd177c3a95330aa17f8f8e4","created_at":"2019-11-17T16:39:31Z","updated_at":"2019-11-17T16:39:31Z","role":"author","account_id":"5dd1779ba95330a94bf7253d","name":"New
|
267
|
-
Admin","role_name":"Author","email":"new_admin@locomotivecms.com"}'
|
268
|
-
http_version:
|
269
|
-
recorded_at: Sun, 17 Nov 2019 16:39:31 GMT
|
270
|
-
recorded_with: VCR 4.0.0
|
@@ -1,260 +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:30 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.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
|
47
|
-
body:
|
48
|
-
encoding: UTF-8
|
49
|
-
string: '{"token":"bzwAyFQzcchf_hgDQhz3"}'
|
50
|
-
http_version:
|
51
|
-
recorded_at: Sun, 17 Nov 2019 16:39:30 GMT
|
52
|
-
- request:
|
53
|
-
method: put
|
54
|
-
uri: http://localhost:3000/locomotive/api/v3/my_account.json
|
55
|
-
body:
|
56
|
-
encoding: UTF-8
|
57
|
-
string: account%5Bname%5D=John+Doe&auth_token=bzwAyFQzcchf_hgDQhz3
|
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:30 GMT
|
67
|
-
X-Locomotive-Account-Email:
|
68
|
-
- admin@locomotivecms.com
|
69
|
-
X-Locomotive-Account-Token:
|
70
|
-
- bzwAyFQzcchf_hgDQhz3
|
71
|
-
Content-Type:
|
72
|
-
- application/x-www-form-urlencoded
|
73
|
-
response:
|
74
|
-
status:
|
75
|
-
code: 200
|
76
|
-
message: OK
|
77
|
-
headers:
|
78
|
-
Content-Type:
|
79
|
-
- application/json
|
80
|
-
Transfer-Encoding:
|
81
|
-
- chunked
|
82
|
-
Connection:
|
83
|
-
- keep-alive
|
84
|
-
Status:
|
85
|
-
- 200 OK
|
86
|
-
Cache-Control:
|
87
|
-
- max-age=0, private, must-revalidate
|
88
|
-
Etag:
|
89
|
-
- W/"7f5b02da1aa964d6d9d0be396d5d6fb9"
|
90
|
-
X-Runtime:
|
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
|
102
|
-
body:
|
103
|
-
encoding: UTF-8
|
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}'
|
106
|
-
http_version:
|
107
|
-
recorded_at: Sun, 17 Nov 2019 16:39:30 GMT
|
108
|
-
- request:
|
109
|
-
method: get
|
110
|
-
uri: http://localhost:3000/locomotive/api/v3/my_account.json?auth_token=bzwAyFQzcchf_hgDQhz3
|
111
|
-
body:
|
112
|
-
encoding: UTF-8
|
113
|
-
string: ''
|
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:30 GMT
|
123
|
-
X-Locomotive-Account-Email:
|
124
|
-
- admin@locomotivecms.com
|
125
|
-
X-Locomotive-Account-Token:
|
126
|
-
- bzwAyFQzcchf_hgDQhz3
|
127
|
-
response:
|
128
|
-
status:
|
129
|
-
code: 200
|
130
|
-
message: OK
|
131
|
-
headers:
|
132
|
-
Content-Type:
|
133
|
-
- application/json
|
134
|
-
Transfer-Encoding:
|
135
|
-
- chunked
|
136
|
-
Connection:
|
137
|
-
- keep-alive
|
138
|
-
Status:
|
139
|
-
- 200 OK
|
140
|
-
Cache-Control:
|
141
|
-
- max-age=0, private, must-revalidate
|
142
|
-
Etag:
|
143
|
-
- W/"7f5b02da1aa964d6d9d0be396d5d6fb9"
|
144
|
-
X-Runtime:
|
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
|
156
|
-
body:
|
157
|
-
encoding: UTF-8
|
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}'
|
160
|
-
http_version:
|
161
|
-
recorded_at: Sun, 17 Nov 2019 16:39:30 GMT
|
162
|
-
- request:
|
163
|
-
method: post
|
164
|
-
uri: http://localhost:3000/locomotive/api/v3/my_account.json
|
165
|
-
body:
|
166
|
-
encoding: UTF-8
|
167
|
-
string: account%5Bemail%5D=jack%40doe.net&account%5Bname%5D=Jack+Doe&account%5Bpassword%5D=easyone&account%5Bpassword_confirmation%5D=easyone
|
168
|
-
headers:
|
169
|
-
User-Agent:
|
170
|
-
- Faraday v0.15.4
|
171
|
-
Accept:
|
172
|
-
- application/json
|
173
|
-
Accept-Encoding:
|
174
|
-
- gzip,deflate
|
175
|
-
Date:
|
176
|
-
- Sun, 17 Nov 2019 16:39:30 GMT
|
177
|
-
Content-Type:
|
178
|
-
- application/x-www-form-urlencoded
|
179
|
-
response:
|
180
|
-
status:
|
181
|
-
code: 201
|
182
|
-
message: Created
|
183
|
-
headers:
|
184
|
-
Content-Type:
|
185
|
-
- application/json
|
186
|
-
Content-Length:
|
187
|
-
- '254'
|
188
|
-
Connection:
|
189
|
-
- keep-alive
|
190
|
-
Status:
|
191
|
-
- 201 Created
|
192
|
-
Cache-Control:
|
193
|
-
- max-age=0, private, must-revalidate
|
194
|
-
Etag:
|
195
|
-
- W/"a6622ed0db1411c79380131ed794f25f"
|
196
|
-
X-Runtime:
|
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
|
206
|
-
body:
|
207
|
-
encoding: UTF-8
|
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}'
|
210
|
-
http_version:
|
211
|
-
recorded_at: Sun, 17 Nov 2019 16:39:30 GMT
|
212
|
-
- request:
|
213
|
-
method: post
|
214
|
-
uri: http://localhost:3000/locomotive/api/v3/my_account.json
|
215
|
-
body:
|
216
|
-
encoding: UTF-8
|
217
|
-
string: account%5Bname%5D=Wrong+account
|
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:30 GMT
|
227
|
-
Content-Type:
|
228
|
-
- application/x-www-form-urlencoded
|
229
|
-
response:
|
230
|
-
status:
|
231
|
-
code: 422
|
232
|
-
message: Unprocessable Entity
|
233
|
-
headers:
|
234
|
-
Content-Type:
|
235
|
-
- application/json
|
236
|
-
Content-Length:
|
237
|
-
- '92'
|
238
|
-
Connection:
|
239
|
-
- keep-alive
|
240
|
-
Status:
|
241
|
-
- 422 Unprocessable Entity
|
242
|
-
Cache-Control:
|
243
|
-
- no-cache
|
244
|
-
X-Runtime:
|
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
|
254
|
-
body:
|
255
|
-
encoding: UTF-8
|
256
|
-
string: '{"error":"Resource invalid","attributes":{"email":["is missing"],"password":["is
|
257
|
-
missing"]}}'
|
258
|
-
http_version:
|
259
|
-
recorded_at: Sun, 17 Nov 2019 16:39:30 GMT
|
260
|
-
recorded_with: VCR 4.0.0
|