locomotivecms_coal 1.0.0.pre.alpha.3 → 1.0.0.pre.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +7 -7
- data/README.md +60 -3
- data/lib/locomotive/coal/client.rb +10 -3
- data/lib/locomotive/coal/error.rb +4 -3
- data/lib/locomotive/coal/resources/concerns/request.rb +3 -3
- data/lib/locomotive/coal/resources/content_entries.rb +9 -0
- data/lib/locomotive/coal/resources/current_site.rb +25 -0
- data/lib/locomotive/coal/resources/memberships.rb +13 -0
- data/lib/locomotive/coal/resources/pages.rb +1 -1
- data/lib/locomotive/coal/resources/snippets.rb +8 -0
- data/lib/locomotive/coal/version.rb +1 -1
- data/lib/locomotive/coal.rb +3 -0
- data/locomotivecms_coal.gemspec +2 -2
- data/spec/fixtures/coal_cassettes/client.yml +117 -160
- data/spec/fixtures/coal_cassettes/content_assets.yml +47 -71
- data/spec/fixtures/coal_cassettes/content_entries.yml +510 -388
- data/spec/fixtures/coal_cassettes/content_types.yml +128 -196
- data/spec/fixtures/coal_cassettes/current_site.yml +124 -0
- data/spec/fixtures/coal_cassettes/memberships.yml +203 -0
- data/spec/fixtures/coal_cassettes/my_account.yml +40 -62
- data/spec/fixtures/coal_cassettes/pages.yml +82 -108
- data/spec/fixtures/coal_cassettes/sites.yml +43 -59
- data/spec/fixtures/coal_cassettes/snippets.yml +48 -70
- data/spec/fixtures/coal_cassettes/theme_assets.yml +46 -70
- data/spec/fixtures/coal_cassettes/token.yml +25 -31
- data/spec/fixtures/coal_cassettes/translations.yml +46 -70
- data/spec/fixtures/coal_cassettes/version.yml +18 -28
- data/spec/integration/resources/content_entries_spec.rb +11 -0
- data/spec/integration/resources/current_site_spec.rb +22 -0
- data/spec/integration/resources/memberships_spec.rb +39 -0
- metadata +16 -6
@@ -0,0 +1,124 @@
|
|
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
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Content-Type:
|
13
|
+
- application/x-www-form-urlencoded
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 201
|
21
|
+
message: Created
|
22
|
+
headers:
|
23
|
+
Content-Type:
|
24
|
+
- application/json
|
25
|
+
Etag:
|
26
|
+
- W/"157eb61d395f237526d11950bbc5a1fa"
|
27
|
+
Cache-Control:
|
28
|
+
- max-age=0, private, must-revalidate
|
29
|
+
X-Request-Id:
|
30
|
+
- 162486bc-38c6-44fb-8f9e-d0543a162ede
|
31
|
+
X-Runtime:
|
32
|
+
- '0.014917'
|
33
|
+
Content-Length:
|
34
|
+
- '32'
|
35
|
+
body:
|
36
|
+
encoding: UTF-8
|
37
|
+
string: '{"token":"v6XDp282UyPDeM6DgA-S"}'
|
38
|
+
http_version:
|
39
|
+
recorded_at: Wed, 29 Jul 2015 15:36:34 GMT
|
40
|
+
- request:
|
41
|
+
method: get
|
42
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/current_site.json?auth_token=v6XDp282UyPDeM6DgA-S
|
43
|
+
body:
|
44
|
+
encoding: US-ASCII
|
45
|
+
string: ''
|
46
|
+
headers:
|
47
|
+
Accept:
|
48
|
+
- application/json
|
49
|
+
X-Locomotive-Account-Email:
|
50
|
+
- admin@locomotivecms.com
|
51
|
+
X-Locomotive-Account-Token:
|
52
|
+
- v6XDp282UyPDeM6DgA-S
|
53
|
+
X-Locomotive-Locale:
|
54
|
+
- ''
|
55
|
+
Accept-Encoding:
|
56
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
57
|
+
User-Agent:
|
58
|
+
- Ruby
|
59
|
+
response:
|
60
|
+
status:
|
61
|
+
code: 200
|
62
|
+
message: OK
|
63
|
+
headers:
|
64
|
+
Content-Type:
|
65
|
+
- application/json
|
66
|
+
Etag:
|
67
|
+
- W/"925089d718fbad762343e5cb8669c524"
|
68
|
+
Cache-Control:
|
69
|
+
- max-age=0, private, must-revalidate
|
70
|
+
X-Request-Id:
|
71
|
+
- 94dd19cf-7cf3-48a8-9e11-50d8e6c6122e
|
72
|
+
X-Runtime:
|
73
|
+
- '0.032038'
|
74
|
+
Content-Length:
|
75
|
+
- '559'
|
76
|
+
body:
|
77
|
+
encoding: UTF-8
|
78
|
+
string: '{"_id":"55b8f2ea4469646440000006","created_at":"2015-07-29T15:36:10Z","updated_at":"2015-07-29T15:36:10Z","name":"Sample
|
79
|
+
site","handle":"sample","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":["sample.example.com"],"memberships":[{"_id":"55b8f2ea4469646440000009","created_at":null,"updated_at":null,"role":"admin","account_id":"55b8f2ea4469646440000000","name":"Admin","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null}'
|
80
|
+
http_version:
|
81
|
+
recorded_at: Wed, 29 Jul 2015 15:36:34 GMT
|
82
|
+
- request:
|
83
|
+
method: put
|
84
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/current_site.json
|
85
|
+
body:
|
86
|
+
encoding: UTF-8
|
87
|
+
string: auth_token=v6XDp282UyPDeM6DgA-S&site%5Bname%5D=John+Doe
|
88
|
+
headers:
|
89
|
+
Accept:
|
90
|
+
- application/json
|
91
|
+
X-Locomotive-Account-Email:
|
92
|
+
- admin@locomotivecms.com
|
93
|
+
X-Locomotive-Account-Token:
|
94
|
+
- v6XDp282UyPDeM6DgA-S
|
95
|
+
Content-Type:
|
96
|
+
- application/x-www-form-urlencoded
|
97
|
+
Accept-Encoding:
|
98
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
99
|
+
User-Agent:
|
100
|
+
- Ruby
|
101
|
+
response:
|
102
|
+
status:
|
103
|
+
code: 200
|
104
|
+
message: OK
|
105
|
+
headers:
|
106
|
+
Content-Type:
|
107
|
+
- application/json
|
108
|
+
Etag:
|
109
|
+
- W/"23a9cf625b3465523205e52235a0760e"
|
110
|
+
Cache-Control:
|
111
|
+
- max-age=0, private, must-revalidate
|
112
|
+
X-Request-Id:
|
113
|
+
- 5ec0adc3-54dd-4884-aaa2-d99c5fdd172d
|
114
|
+
X-Runtime:
|
115
|
+
- '0.041137'
|
116
|
+
Content-Length:
|
117
|
+
- '556'
|
118
|
+
body:
|
119
|
+
encoding: UTF-8
|
120
|
+
string: '{"_id":"55b8f2ea4469646440000006","created_at":"2015-07-29T15:36:10Z","updated_at":"2015-07-29T15:36:34Z","name":"John
|
121
|
+
Doe","handle":"sample","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":["sample.example.com"],"memberships":[{"_id":"55b8f2ea4469646440000009","created_at":null,"updated_at":null,"role":"admin","account_id":"55b8f2ea4469646440000000","name":"Admin","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null}'
|
122
|
+
http_version:
|
123
|
+
recorded_at: Wed, 29 Jul 2015 15:36:34 GMT
|
124
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,203 @@
|
|
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
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Content-Type:
|
13
|
+
- application/x-www-form-urlencoded
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 201
|
21
|
+
message: Created
|
22
|
+
headers:
|
23
|
+
Content-Type:
|
24
|
+
- application/json
|
25
|
+
Etag:
|
26
|
+
- W/"157eb61d395f237526d11950bbc5a1fa"
|
27
|
+
Cache-Control:
|
28
|
+
- max-age=0, private, must-revalidate
|
29
|
+
X-Request-Id:
|
30
|
+
- e5ff54e2-a882-4db2-b0a2-f12f0b44ce15
|
31
|
+
X-Runtime:
|
32
|
+
- '0.513249'
|
33
|
+
Content-Length:
|
34
|
+
- '32'
|
35
|
+
body:
|
36
|
+
encoding: UTF-8
|
37
|
+
string: '{"token":"v6XDp282UyPDeM6DgA-S"}'
|
38
|
+
http_version:
|
39
|
+
recorded_at: Wed, 29 Jul 2015 15:36:33 GMT
|
40
|
+
- request:
|
41
|
+
method: get
|
42
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/memberships.json?auth_token=v6XDp282UyPDeM6DgA-S
|
43
|
+
body:
|
44
|
+
encoding: US-ASCII
|
45
|
+
string: ''
|
46
|
+
headers:
|
47
|
+
Accept:
|
48
|
+
- application/json
|
49
|
+
X-Locomotive-Account-Email:
|
50
|
+
- admin@locomotivecms.com
|
51
|
+
X-Locomotive-Account-Token:
|
52
|
+
- v6XDp282UyPDeM6DgA-S
|
53
|
+
Accept-Encoding:
|
54
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
55
|
+
User-Agent:
|
56
|
+
- Ruby
|
57
|
+
response:
|
58
|
+
status:
|
59
|
+
code: 200
|
60
|
+
message: OK
|
61
|
+
headers:
|
62
|
+
Content-Type:
|
63
|
+
- application/json
|
64
|
+
Etag:
|
65
|
+
- W/"940996dd4c216094aa1b77a1a499e90d"
|
66
|
+
Cache-Control:
|
67
|
+
- max-age=0, private, must-revalidate
|
68
|
+
X-Request-Id:
|
69
|
+
- 07572258-a6e3-484e-9962-b2ca44a3036a
|
70
|
+
X-Runtime:
|
71
|
+
- '0.406759'
|
72
|
+
Content-Length:
|
73
|
+
- '204'
|
74
|
+
body:
|
75
|
+
encoding: UTF-8
|
76
|
+
string: '[{"_id":"55b8f2ea4469646440000009","created_at":null,"updated_at":null,"role":"admin","account_id":"55b8f2ea4469646440000000","name":"Admin","role_name":"Administrator","email":"admin@locomotivecms.com"}]'
|
77
|
+
http_version:
|
78
|
+
recorded_at: Wed, 29 Jul 2015 15:36:33 GMT
|
79
|
+
- request:
|
80
|
+
method: post
|
81
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/memberships.json
|
82
|
+
body:
|
83
|
+
encoding: UTF-8
|
84
|
+
string: auth_token=v6XDp282UyPDeM6DgA-S&membership%5Baccount_email%5D=new_admin%40locomotivecms.com&membership%5Brole%5D=Admin
|
85
|
+
headers:
|
86
|
+
Accept:
|
87
|
+
- application/json
|
88
|
+
X-Locomotive-Account-Email:
|
89
|
+
- admin@locomotivecms.com
|
90
|
+
X-Locomotive-Account-Token:
|
91
|
+
- v6XDp282UyPDeM6DgA-S
|
92
|
+
Content-Type:
|
93
|
+
- application/x-www-form-urlencoded
|
94
|
+
Accept-Encoding:
|
95
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
96
|
+
User-Agent:
|
97
|
+
- Ruby
|
98
|
+
response:
|
99
|
+
status:
|
100
|
+
code: 201
|
101
|
+
message: Created
|
102
|
+
headers:
|
103
|
+
Content-Type:
|
104
|
+
- application/json
|
105
|
+
Etag:
|
106
|
+
- W/"3e61b5b03505c63e72ae0ce7cb448710"
|
107
|
+
Cache-Control:
|
108
|
+
- max-age=0, private, must-revalidate
|
109
|
+
X-Request-Id:
|
110
|
+
- 5682c09c-bad6-455b-ad4d-9b6ed74e6faf
|
111
|
+
X-Runtime:
|
112
|
+
- '0.050953'
|
113
|
+
Content-Length:
|
114
|
+
- '246'
|
115
|
+
body:
|
116
|
+
encoding: UTF-8
|
117
|
+
string: '{"_id":"55b8f301446964641a000000","created_at":"2015-07-29T15:36:33Z","updated_at":"2015-07-29T15:36:33Z","role":"admin","account_id":"55b8f2ea4469646440000001","name":"New
|
118
|
+
Admin","role_name":"Administrator","email":"new_admin@locomotivecms.com"}'
|
119
|
+
http_version:
|
120
|
+
recorded_at: Wed, 29 Jul 2015 15:36:33 GMT
|
121
|
+
- request:
|
122
|
+
method: put
|
123
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/memberships/55b8f301446964641a000000.json
|
124
|
+
body:
|
125
|
+
encoding: UTF-8
|
126
|
+
string: auth_token=v6XDp282UyPDeM6DgA-S&membership%5Brole%5D=author
|
127
|
+
headers:
|
128
|
+
Accept:
|
129
|
+
- application/json
|
130
|
+
X-Locomotive-Account-Email:
|
131
|
+
- admin@locomotivecms.com
|
132
|
+
X-Locomotive-Account-Token:
|
133
|
+
- v6XDp282UyPDeM6DgA-S
|
134
|
+
Content-Type:
|
135
|
+
- application/x-www-form-urlencoded
|
136
|
+
Accept-Encoding:
|
137
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
138
|
+
User-Agent:
|
139
|
+
- Ruby
|
140
|
+
response:
|
141
|
+
status:
|
142
|
+
code: 200
|
143
|
+
message: OK
|
144
|
+
headers:
|
145
|
+
Content-Type:
|
146
|
+
- application/json
|
147
|
+
Etag:
|
148
|
+
- W/"8703c965a9ed3d106c5473856cce0fa5"
|
149
|
+
Cache-Control:
|
150
|
+
- max-age=0, private, must-revalidate
|
151
|
+
X-Request-Id:
|
152
|
+
- 1b7db231-2abe-46a7-91c6-3502d3016d4a
|
153
|
+
X-Runtime:
|
154
|
+
- '0.033582'
|
155
|
+
Content-Length:
|
156
|
+
- '240'
|
157
|
+
body:
|
158
|
+
encoding: UTF-8
|
159
|
+
string: '{"_id":"55b8f301446964641a000000","created_at":"2015-07-29T15:36:33Z","updated_at":"2015-07-29T15:36:33Z","role":"author","account_id":"55b8f2ea4469646440000001","name":"New
|
160
|
+
Admin","role_name":"Author","email":"new_admin@locomotivecms.com"}'
|
161
|
+
http_version:
|
162
|
+
recorded_at: Wed, 29 Jul 2015 15:36:33 GMT
|
163
|
+
- request:
|
164
|
+
method: delete
|
165
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/memberships/55b8f301446964641a000000.json?auth_token=v6XDp282UyPDeM6DgA-S
|
166
|
+
body:
|
167
|
+
encoding: US-ASCII
|
168
|
+
string: ''
|
169
|
+
headers:
|
170
|
+
Accept:
|
171
|
+
- application/json
|
172
|
+
X-Locomotive-Account-Email:
|
173
|
+
- admin@locomotivecms.com
|
174
|
+
X-Locomotive-Account-Token:
|
175
|
+
- v6XDp282UyPDeM6DgA-S
|
176
|
+
Accept-Encoding:
|
177
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
178
|
+
User-Agent:
|
179
|
+
- Ruby
|
180
|
+
response:
|
181
|
+
status:
|
182
|
+
code: 200
|
183
|
+
message: OK
|
184
|
+
headers:
|
185
|
+
Content-Type:
|
186
|
+
- application/json
|
187
|
+
Etag:
|
188
|
+
- W/"8703c965a9ed3d106c5473856cce0fa5"
|
189
|
+
Cache-Control:
|
190
|
+
- max-age=0, private, must-revalidate
|
191
|
+
X-Request-Id:
|
192
|
+
- 989483af-20ec-41fe-88da-0fe624febabd
|
193
|
+
X-Runtime:
|
194
|
+
- '0.036029'
|
195
|
+
Content-Length:
|
196
|
+
- '240'
|
197
|
+
body:
|
198
|
+
encoding: UTF-8
|
199
|
+
string: '{"_id":"55b8f301446964641a000000","created_at":"2015-07-29T15:36:33Z","updated_at":"2015-07-29T15:36:33Z","role":"author","account_id":"55b8f2ea4469646440000001","name":"New
|
200
|
+
Admin","role_name":"Author","email":"new_admin@locomotivecms.com"}'
|
201
|
+
http_version:
|
202
|
+
recorded_at: Wed, 29 Jul 2015 15:36:33 GMT
|
203
|
+
recorded_with: VCR 2.9.3
|
@@ -22,26 +22,22 @@ http_interactions:
|
|
22
22
|
headers:
|
23
23
|
Content-Type:
|
24
24
|
- application/json
|
25
|
-
Content-Length:
|
26
|
-
- '254'
|
27
25
|
Etag:
|
28
|
-
- W/"
|
26
|
+
- W/"9e3cdac63725e7e1b6b1f00aa32438de"
|
29
27
|
Cache-Control:
|
30
28
|
- max-age=0, private, must-revalidate
|
31
29
|
X-Request-Id:
|
32
|
-
-
|
30
|
+
- 197c701d-cdc9-4aaa-adf2-e0c9ae97efa1
|
33
31
|
X-Runtime:
|
34
|
-
- '0.
|
35
|
-
|
36
|
-
-
|
37
|
-
Server:
|
38
|
-
- thin
|
32
|
+
- '0.028854'
|
33
|
+
Content-Length:
|
34
|
+
- '254'
|
39
35
|
body:
|
40
36
|
encoding: UTF-8
|
41
|
-
string: '{"_id":"
|
42
|
-
Doe","email":"jack@doe.net","locale":"en","api_key":"
|
37
|
+
string: '{"_id":"55b8f302446964641a000001","created_at":"2015-07-29T15:36:34Z","updated_at":"2015-07-29T15:36:34Z","name":"Jack
|
38
|
+
Doe","email":"jack@doe.net","locale":"en","api_key":"a6c20ed6c12c7bcd4cb172be50e04d55c1a02f3c","super_admin":false,"local_admin":false}'
|
43
39
|
http_version:
|
44
|
-
recorded_at:
|
40
|
+
recorded_at: Wed, 29 Jul 2015 15:36:34 GMT
|
45
41
|
- request:
|
46
42
|
method: post
|
47
43
|
uri: http://localhost:3000/locomotive/api/v3/my_account.json
|
@@ -64,24 +60,20 @@ http_interactions:
|
|
64
60
|
headers:
|
65
61
|
Content-Type:
|
66
62
|
- application/json
|
67
|
-
Content-Length:
|
68
|
-
- '92'
|
69
63
|
Cache-Control:
|
70
64
|
- no-cache
|
71
65
|
X-Request-Id:
|
72
|
-
-
|
66
|
+
- e9ccf26a-e5af-4d49-a4e9-e1966cd1da5b
|
73
67
|
X-Runtime:
|
74
|
-
- '0.
|
75
|
-
|
76
|
-
-
|
77
|
-
Server:
|
78
|
-
- thin
|
68
|
+
- '0.022062'
|
69
|
+
Content-Length:
|
70
|
+
- '92'
|
79
71
|
body:
|
80
72
|
encoding: UTF-8
|
81
73
|
string: '{"error":"Resource invalid","attributes":{"email":["is missing"],"password":["is
|
82
74
|
missing"]}}'
|
83
75
|
http_version:
|
84
|
-
recorded_at:
|
76
|
+
recorded_at: Wed, 29 Jul 2015 15:36:34 GMT
|
85
77
|
- request:
|
86
78
|
method: post
|
87
79
|
uri: http://localhost:3000/locomotive/api/v3/tokens.json
|
@@ -104,40 +96,34 @@ http_interactions:
|
|
104
96
|
headers:
|
105
97
|
Content-Type:
|
106
98
|
- application/json
|
107
|
-
Content-Length:
|
108
|
-
- '32'
|
109
99
|
Etag:
|
110
|
-
- W/"
|
100
|
+
- W/"157eb61d395f237526d11950bbc5a1fa"
|
111
101
|
Cache-Control:
|
112
102
|
- max-age=0, private, must-revalidate
|
113
103
|
X-Request-Id:
|
114
|
-
-
|
104
|
+
- 0badb0bc-5253-49de-8797-c093803532ba
|
115
105
|
X-Runtime:
|
116
|
-
- '0.
|
117
|
-
|
118
|
-
-
|
119
|
-
Server:
|
120
|
-
- thin
|
106
|
+
- '0.015612'
|
107
|
+
Content-Length:
|
108
|
+
- '32'
|
121
109
|
body:
|
122
110
|
encoding: UTF-8
|
123
|
-
string: '{"token":"
|
111
|
+
string: '{"token":"v6XDp282UyPDeM6DgA-S"}'
|
124
112
|
http_version:
|
125
|
-
recorded_at:
|
113
|
+
recorded_at: Wed, 29 Jul 2015 15:36:34 GMT
|
126
114
|
- request:
|
127
115
|
method: get
|
128
|
-
uri: http://localhost:3000/locomotive/api/v3/my_account.json
|
116
|
+
uri: http://localhost:3000/locomotive/api/v3/my_account.json?auth_token=v6XDp282UyPDeM6DgA-S
|
129
117
|
body:
|
130
|
-
encoding:
|
131
|
-
string:
|
118
|
+
encoding: US-ASCII
|
119
|
+
string: ''
|
132
120
|
headers:
|
133
121
|
Accept:
|
134
122
|
- application/json
|
135
123
|
X-Locomotive-Account-Email:
|
136
124
|
- admin@locomotivecms.com
|
137
125
|
X-Locomotive-Account-Token:
|
138
|
-
-
|
139
|
-
Content-Type:
|
140
|
-
- application/x-www-form-urlencoded
|
126
|
+
- v6XDp282UyPDeM6DgA-S
|
141
127
|
Accept-Encoding:
|
142
128
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
143
129
|
User-Agent:
|
@@ -149,38 +135,34 @@ http_interactions:
|
|
149
135
|
headers:
|
150
136
|
Content-Type:
|
151
137
|
- application/json
|
152
|
-
Content-Length:
|
153
|
-
- '261'
|
154
138
|
Etag:
|
155
|
-
- W/"
|
139
|
+
- W/"fafaeb02952b967231b7ce94b78171c0"
|
156
140
|
Cache-Control:
|
157
141
|
- max-age=0, private, must-revalidate
|
158
142
|
X-Request-Id:
|
159
|
-
-
|
143
|
+
- fe08d626-c969-4330-a25f-aa92f90da9bf
|
160
144
|
X-Runtime:
|
161
|
-
- '0.
|
162
|
-
|
163
|
-
-
|
164
|
-
Server:
|
165
|
-
- thin
|
145
|
+
- '0.017178'
|
146
|
+
Content-Length:
|
147
|
+
- '261'
|
166
148
|
body:
|
167
149
|
encoding: UTF-8
|
168
|
-
string: '{"_id":"
|
150
|
+
string: '{"_id":"55b8f2ea4469646440000000","created_at":"2015-07-29T15:36:10Z","updated_at":"2015-07-29T15:36:10Z","name":"Admin","email":"admin@locomotivecms.com","locale":"en","api_key":"d49cd50f6f0d2b163f48fc73cb249f0244c37074","super_admin":false,"local_admin":true}'
|
169
151
|
http_version:
|
170
|
-
recorded_at:
|
152
|
+
recorded_at: Wed, 29 Jul 2015 15:36:34 GMT
|
171
153
|
- request:
|
172
154
|
method: put
|
173
155
|
uri: http://localhost:3000/locomotive/api/v3/my_account.json
|
174
156
|
body:
|
175
157
|
encoding: UTF-8
|
176
|
-
string: account%5Bname%5D=John+Doe&auth_token=
|
158
|
+
string: account%5Bname%5D=John+Doe&auth_token=v6XDp282UyPDeM6DgA-S
|
177
159
|
headers:
|
178
160
|
Accept:
|
179
161
|
- application/json
|
180
162
|
X-Locomotive-Account-Email:
|
181
163
|
- admin@locomotivecms.com
|
182
164
|
X-Locomotive-Account-Token:
|
183
|
-
-
|
165
|
+
- v6XDp282UyPDeM6DgA-S
|
184
166
|
Content-Type:
|
185
167
|
- application/x-www-form-urlencoded
|
186
168
|
Accept-Encoding:
|
@@ -194,24 +176,20 @@ http_interactions:
|
|
194
176
|
headers:
|
195
177
|
Content-Type:
|
196
178
|
- application/json
|
197
|
-
Content-Length:
|
198
|
-
- '264'
|
199
179
|
Etag:
|
200
|
-
- W/"
|
180
|
+
- W/"90a3d77a13c34daf43fc0149ef56eeec"
|
201
181
|
Cache-Control:
|
202
182
|
- max-age=0, private, must-revalidate
|
203
183
|
X-Request-Id:
|
204
|
-
-
|
184
|
+
- f2bfce29-a064-4854-838d-a144ecdb354f
|
205
185
|
X-Runtime:
|
206
|
-
- '0.
|
207
|
-
|
208
|
-
-
|
209
|
-
Server:
|
210
|
-
- thin
|
186
|
+
- '0.022488'
|
187
|
+
Content-Length:
|
188
|
+
- '264'
|
211
189
|
body:
|
212
190
|
encoding: UTF-8
|
213
|
-
string: '{"_id":"
|
191
|
+
string: '{"_id":"55b8f2ea4469646440000000","created_at":"2015-07-29T15:36:10Z","updated_at":"2015-07-29T15:36:34Z","name":"John
|
214
192
|
Doe","email":"admin@locomotivecms.com","locale":"en","api_key":"d49cd50f6f0d2b163f48fc73cb249f0244c37074","super_admin":false,"local_admin":true}'
|
215
193
|
http_version:
|
216
|
-
recorded_at:
|
194
|
+
recorded_at: Wed, 29 Jul 2015 15:36:34 GMT
|
217
195
|
recorded_with: VCR 2.9.3
|