locomotivecms_coal 1.6.0.beta1 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +2 -3
- data/Gemfile +1 -6
- data/Gemfile.lock +54 -59
- data/MIT-LICENSE +1 -1
- data/README.md +20 -5
- data/lib/locomotive/coal/client.rb +8 -0
- data/lib/locomotive/coal/resources/accounts.rb +33 -0
- data/lib/locomotive/coal/resources/concerns/request.rb +19 -1
- data/lib/locomotive/coal/version.rb +1 -1
- data/lib/locomotive/coal.rb +1 -0
- data/locomotivecms_coal.gemspec +5 -6
- data/spec/fixtures/coal_cassettes/accounts.yml +214 -0
- data/spec/fixtures/coal_cassettes/client.yml +277 -163
- data/spec/fixtures/coal_cassettes/content_assets.yml +144 -445
- data/spec/fixtures/coal_cassettes/content_entries.yml +963 -1647
- data/spec/fixtures/coal_cassettes/content_types.yml +387 -209
- data/spec/fixtures/coal_cassettes/current_site.yml +89 -49
- data/spec/fixtures/coal_cassettes/memberships.yml +143 -77
- data/spec/fixtures/coal_cassettes/my_account.yml +163 -99
- data/spec/fixtures/coal_cassettes/pages.yml +177 -99
- data/spec/fixtures/coal_cassettes/sections.yml +121 -78
- data/spec/fixtures/coal_cassettes/sites.yml +108 -141
- data/spec/fixtures/coal_cassettes/snippets.yml +140 -76
- data/spec/fixtures/coal_cassettes/theme_assets.yml +142 -254
- data/spec/fixtures/coal_cassettes/token.yml +64 -43
- data/spec/fixtures/coal_cassettes/translations.yml +140 -76
- data/spec/fixtures/coal_cassettes/version.yml +54 -30
- data/spec/integration/resources/accounts_spec.rb +38 -0
- data/spec/integration/resources/sections_spec.rb +1 -1
- data/spec/integration/resources/token_spec.rb +1 -1
- metadata +20 -30
@@ -7,14 +7,16 @@ http_interactions:
|
|
7
7
|
encoding: UTF-8
|
8
8
|
string: email=admin%40locomotivecms.com&password=locomotive
|
9
9
|
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.15.4
|
10
12
|
Accept:
|
11
13
|
- application/json
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip,deflate
|
16
|
+
Date:
|
17
|
+
- Sun, 17 Nov 2019 16:39:30 GMT
|
12
18
|
Content-Type:
|
13
19
|
- application/x-www-form-urlencoded
|
14
|
-
Accept-Encoding:
|
15
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
-
User-Agent:
|
17
|
-
- Ruby
|
18
20
|
response:
|
19
21
|
status:
|
20
22
|
code: 201
|
@@ -22,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.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
|
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: put
|
42
54
|
uri: http://localhost:3000/locomotive/sample/api/v3/current_site.json
|
43
55
|
body:
|
44
56
|
encoding: UTF-8
|
45
|
-
string: auth_token=
|
57
|
+
string: auth_token=bzwAyFQzcchf_hgDQhz3&site%5Bname%5D=John+Doe
|
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
|
Content-Type:
|
54
72
|
- application/x-www-form-urlencoded
|
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,42 +77,56 @@ 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/"ac375c9f025ecfea668ba13d656aa21c"
|
72
90
|
X-Runtime:
|
73
|
-
- '0.
|
74
|
-
|
75
|
-
-
|
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
|
76
102
|
body:
|
77
103
|
encoding: UTF-8
|
78
|
-
string: '{"_id":"
|
79
|
-
Doe","handle":"sample","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"cache_enabled":false,"locales":["en"],"domains":["sample.example.com"],"memberships":[{"_id":"
|
80
|
-
Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"content_version":
|
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":"[]"}'
|
81
107
|
http_version:
|
82
|
-
recorded_at:
|
108
|
+
recorded_at: Sun, 17 Nov 2019 16:39:30 GMT
|
83
109
|
- request:
|
84
110
|
method: get
|
85
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/current_site.json?auth_token=
|
111
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/current_site.json?auth_token=bzwAyFQzcchf_hgDQhz3
|
86
112
|
body:
|
87
|
-
encoding:
|
113
|
+
encoding: UTF-8
|
88
114
|
string: ''
|
89
115
|
headers:
|
116
|
+
User-Agent:
|
117
|
+
- Faraday v0.15.4
|
90
118
|
Accept:
|
91
119
|
- application/json
|
120
|
+
Accept-Encoding:
|
121
|
+
- gzip,deflate
|
122
|
+
Date:
|
123
|
+
- Sun, 17 Nov 2019 16:39:30 GMT
|
92
124
|
X-Locomotive-Account-Email:
|
93
125
|
- admin@locomotivecms.com
|
94
126
|
X-Locomotive-Account-Token:
|
95
|
-
-
|
127
|
+
- bzwAyFQzcchf_hgDQhz3
|
96
128
|
X-Locomotive-Locale:
|
97
129
|
- ''
|
98
|
-
Accept-Encoding:
|
99
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
100
|
-
User-Agent:
|
101
|
-
- Ruby
|
102
130
|
response:
|
103
131
|
status:
|
104
132
|
code: 200
|
@@ -106,21 +134,33 @@ http_interactions:
|
|
106
134
|
headers:
|
107
135
|
Content-Type:
|
108
136
|
- application/json
|
109
|
-
|
110
|
-
-
|
137
|
+
Transfer-Encoding:
|
138
|
+
- chunked
|
139
|
+
Connection:
|
140
|
+
- keep-alive
|
141
|
+
Status:
|
142
|
+
- 200 OK
|
111
143
|
Cache-Control:
|
112
144
|
- max-age=0, private, must-revalidate
|
113
|
-
|
114
|
-
-
|
145
|
+
Etag:
|
146
|
+
- W/"ac375c9f025ecfea668ba13d656aa21c"
|
115
147
|
X-Runtime:
|
116
|
-
- '0.
|
117
|
-
|
118
|
-
-
|
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
|
119
159
|
body:
|
120
160
|
encoding: UTF-8
|
121
|
-
string: '{"_id":"
|
122
|
-
Doe","handle":"sample","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"cache_enabled":false,"locales":["en"],"domains":["sample.example.com"],"memberships":[{"_id":"
|
123
|
-
Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"content_version":
|
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":"[]"}'
|
124
164
|
http_version:
|
125
|
-
recorded_at:
|
126
|
-
recorded_with: VCR
|
165
|
+
recorded_at: Sun, 17 Nov 2019 16:39:30 GMT
|
166
|
+
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:31 GMT
|
12
18
|
Content-Type:
|
13
19
|
- application/x-www-form-urlencoded
|
14
|
-
Accept-Encoding:
|
15
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
-
User-Agent:
|
17
|
-
- Ruby
|
18
20
|
response:
|
19
21
|
status:
|
20
22
|
code: 201
|
@@ -22,38 +24,50 @@ http_interactions:
|
|
22
24
|
headers:
|
23
25
|
Content-Type:
|
24
26
|
- application/json
|
25
|
-
|
26
|
-
-
|
27
|
+
Content-Length:
|
28
|
+
- '32'
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Status:
|
32
|
+
- 201 Created
|
27
33
|
Cache-Control:
|
28
34
|
- max-age=0, private, must-revalidate
|
29
|
-
|
30
|
-
-
|
35
|
+
Etag:
|
36
|
+
- W/"410e3d6fde24f39257a7cc619b61baa7"
|
31
37
|
X-Runtime:
|
32
|
-
- '0.
|
33
|
-
|
34
|
-
-
|
38
|
+
- '0.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
|
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:31 GMT
|
40
52
|
- request:
|
41
53
|
method: get
|
42
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/memberships.json?auth_token=
|
54
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/memberships.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:31 GMT
|
49
67
|
X-Locomotive-Account-Email:
|
50
68
|
- admin@locomotivecms.com
|
51
69
|
X-Locomotive-Account-Token:
|
52
|
-
-
|
53
|
-
Accept-Encoding:
|
54
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
55
|
-
User-Agent:
|
56
|
-
- Ruby
|
70
|
+
- bzwAyFQzcchf_hgDQhz3
|
57
71
|
response:
|
58
72
|
status:
|
59
73
|
code: 200
|
@@ -61,41 +75,55 @@ http_interactions:
|
|
61
75
|
headers:
|
62
76
|
Content-Type:
|
63
77
|
- application/json
|
64
|
-
|
65
|
-
-
|
78
|
+
Transfer-Encoding:
|
79
|
+
- chunked
|
80
|
+
Connection:
|
81
|
+
- keep-alive
|
82
|
+
Status:
|
83
|
+
- 200 OK
|
66
84
|
Cache-Control:
|
67
85
|
- max-age=0, private, must-revalidate
|
68
|
-
|
69
|
-
-
|
86
|
+
Etag:
|
87
|
+
- W/"5037afd5d1ab42233b7b8cf0691f8989"
|
70
88
|
X-Runtime:
|
71
|
-
- '0.
|
72
|
-
|
73
|
-
-
|
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
|
74
100
|
body:
|
75
101
|
encoding: UTF-8
|
76
|
-
string: '[{"_id":"
|
102
|
+
string: '[{"_id":"5dd1779ca95330a94bf72545","created_at":null,"updated_at":null,"role":"admin","account_id":"5dd1779ba95330a94bf7253c","name":"John
|
77
103
|
Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}]'
|
78
104
|
http_version:
|
79
|
-
recorded_at:
|
105
|
+
recorded_at: Sun, 17 Nov 2019 16:39:31 GMT
|
80
106
|
- request:
|
81
107
|
method: post
|
82
108
|
uri: http://localhost:3000/locomotive/sample/api/v3/memberships.json
|
83
109
|
body:
|
84
110
|
encoding: UTF-8
|
85
|
-
string: auth_token=
|
111
|
+
string: auth_token=bzwAyFQzcchf_hgDQhz3&membership%5Baccount_email%5D=new_admin%40locomotivecms.com&membership%5Brole%5D=Admin
|
86
112
|
headers:
|
113
|
+
User-Agent:
|
114
|
+
- Faraday v0.15.4
|
87
115
|
Accept:
|
88
116
|
- application/json
|
117
|
+
Accept-Encoding:
|
118
|
+
- gzip,deflate
|
119
|
+
Date:
|
120
|
+
- Sun, 17 Nov 2019 16:39:31 GMT
|
89
121
|
X-Locomotive-Account-Email:
|
90
122
|
- admin@locomotivecms.com
|
91
123
|
X-Locomotive-Account-Token:
|
92
|
-
-
|
124
|
+
- bzwAyFQzcchf_hgDQhz3
|
93
125
|
Content-Type:
|
94
126
|
- application/x-www-form-urlencoded
|
95
|
-
Accept-Encoding:
|
96
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
97
|
-
User-Agent:
|
98
|
-
- Ruby
|
99
127
|
response:
|
100
128
|
status:
|
101
129
|
code: 201
|
@@ -103,41 +131,53 @@ http_interactions:
|
|
103
131
|
headers:
|
104
132
|
Content-Type:
|
105
133
|
- application/json
|
106
|
-
|
107
|
-
-
|
134
|
+
Content-Length:
|
135
|
+
- '246'
|
136
|
+
Connection:
|
137
|
+
- keep-alive
|
138
|
+
Status:
|
139
|
+
- 201 Created
|
108
140
|
Cache-Control:
|
109
141
|
- max-age=0, private, must-revalidate
|
110
|
-
|
111
|
-
-
|
142
|
+
Etag:
|
143
|
+
- W/"95eafc91cab3792756ddf131ec2b863d"
|
112
144
|
X-Runtime:
|
113
|
-
- '0.
|
114
|
-
|
115
|
-
-
|
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
|
116
154
|
body:
|
117
155
|
encoding: UTF-8
|
118
|
-
string: '{"_id":"
|
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
|
119
157
|
Admin","role_name":"Administrator","email":"new_admin@locomotivecms.com"}'
|
120
158
|
http_version:
|
121
|
-
recorded_at:
|
159
|
+
recorded_at: Sun, 17 Nov 2019 16:39:31 GMT
|
122
160
|
- request:
|
123
161
|
method: put
|
124
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/memberships/
|
162
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/memberships/5dd177c3a95330aa17f8f8e4.json
|
125
163
|
body:
|
126
164
|
encoding: UTF-8
|
127
|
-
string: auth_token=
|
165
|
+
string: auth_token=bzwAyFQzcchf_hgDQhz3&membership%5Brole%5D=author
|
128
166
|
headers:
|
167
|
+
User-Agent:
|
168
|
+
- Faraday v0.15.4
|
129
169
|
Accept:
|
130
170
|
- application/json
|
171
|
+
Accept-Encoding:
|
172
|
+
- gzip,deflate
|
173
|
+
Date:
|
174
|
+
- Sun, 17 Nov 2019 16:39:31 GMT
|
131
175
|
X-Locomotive-Account-Email:
|
132
176
|
- admin@locomotivecms.com
|
133
177
|
X-Locomotive-Account-Token:
|
134
|
-
-
|
178
|
+
- bzwAyFQzcchf_hgDQhz3
|
135
179
|
Content-Type:
|
136
180
|
- application/x-www-form-urlencoded
|
137
|
-
Accept-Encoding:
|
138
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
139
|
-
User-Agent:
|
140
|
-
- Ruby
|
141
181
|
response:
|
142
182
|
status:
|
143
183
|
code: 200
|
@@ -145,39 +185,53 @@ http_interactions:
|
|
145
185
|
headers:
|
146
186
|
Content-Type:
|
147
187
|
- application/json
|
148
|
-
|
149
|
-
-
|
188
|
+
Transfer-Encoding:
|
189
|
+
- chunked
|
190
|
+
Connection:
|
191
|
+
- keep-alive
|
192
|
+
Status:
|
193
|
+
- 200 OK
|
150
194
|
Cache-Control:
|
151
195
|
- max-age=0, private, must-revalidate
|
152
|
-
|
153
|
-
-
|
196
|
+
Etag:
|
197
|
+
- W/"e659962511b85d7292156401c647292e"
|
154
198
|
X-Runtime:
|
155
|
-
- '0.
|
156
|
-
|
157
|
-
-
|
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
|
158
210
|
body:
|
159
211
|
encoding: UTF-8
|
160
|
-
string: '{"_id":"
|
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
|
161
213
|
Admin","role_name":"Author","email":"new_admin@locomotivecms.com"}'
|
162
214
|
http_version:
|
163
|
-
recorded_at:
|
215
|
+
recorded_at: Sun, 17 Nov 2019 16:39:31 GMT
|
164
216
|
- request:
|
165
217
|
method: delete
|
166
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/memberships/
|
218
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/memberships/5dd177c3a95330aa17f8f8e4.json?auth_token=bzwAyFQzcchf_hgDQhz3
|
167
219
|
body:
|
168
|
-
encoding:
|
220
|
+
encoding: UTF-8
|
169
221
|
string: ''
|
170
222
|
headers:
|
223
|
+
User-Agent:
|
224
|
+
- Faraday v0.15.4
|
171
225
|
Accept:
|
172
226
|
- application/json
|
227
|
+
Accept-Encoding:
|
228
|
+
- gzip,deflate
|
229
|
+
Date:
|
230
|
+
- Sun, 17 Nov 2019 16:39:31 GMT
|
173
231
|
X-Locomotive-Account-Email:
|
174
232
|
- admin@locomotivecms.com
|
175
233
|
X-Locomotive-Account-Token:
|
176
|
-
-
|
177
|
-
Accept-Encoding:
|
178
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
179
|
-
User-Agent:
|
180
|
-
- Ruby
|
234
|
+
- bzwAyFQzcchf_hgDQhz3
|
181
235
|
response:
|
182
236
|
status:
|
183
237
|
code: 200
|
@@ -185,20 +239,32 @@ http_interactions:
|
|
185
239
|
headers:
|
186
240
|
Content-Type:
|
187
241
|
- application/json
|
188
|
-
|
189
|
-
-
|
242
|
+
Transfer-Encoding:
|
243
|
+
- chunked
|
244
|
+
Connection:
|
245
|
+
- keep-alive
|
246
|
+
Status:
|
247
|
+
- 200 OK
|
190
248
|
Cache-Control:
|
191
249
|
- max-age=0, private, must-revalidate
|
192
|
-
|
193
|
-
-
|
250
|
+
Etag:
|
251
|
+
- W/"e659962511b85d7292156401c647292e"
|
194
252
|
X-Runtime:
|
195
|
-
- '0.
|
196
|
-
|
197
|
-
-
|
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
|
198
264
|
body:
|
199
265
|
encoding: UTF-8
|
200
|
-
string: '{"_id":"
|
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
|
201
267
|
Admin","role_name":"Author","email":"new_admin@locomotivecms.com"}'
|
202
268
|
http_version:
|
203
|
-
recorded_at:
|
204
|
-
recorded_with: VCR
|
269
|
+
recorded_at: Sun, 17 Nov 2019 16:39:31 GMT
|
270
|
+
recorded_with: VCR 4.0.0
|