locomotivecms_coal 1.0.0.pre.beta.1 → 1.0.0.pre.beta.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5d3bba571ef565ff121673ddae199ba423c19159
4
- data.tar.gz: f9fa0cb7d2455455122c710b32f7d54bfdbae34f
3
+ metadata.gz: b713be281a717b702f0a6c08c2338e8caf64000c
4
+ data.tar.gz: 1d72b964e8c0bb8e9794b6bf1dc7e0989e622cc8
5
5
  SHA512:
6
- metadata.gz: 875b5f487b4d2547210e50e4f444238dd4bf9453d9e5d3ef58d4ec9e19033f61ab0e3ad0f0b78b67a26ef4cad4921018bf614dc349814025a17aed86ca0c4088
7
- data.tar.gz: 1f718e96033b2b03df927b3a8dfb17b04ccb5e24c6cbd4a118aadd5d178332f46d3953acc211670b1fee4f6dd0e60ec91d2c57350c69386ef2b0fb14599f5057
6
+ metadata.gz: b8249d8b21debd27a354576eb7364396bffdc70e78c083cdb54159975a0a8e7f2913f1c76cefdda772611cc98c47917eaf23a614f46d1374465a7c9467451d93
7
+ data.tar.gz: d91deb0a77005b742bceb2231c076b6173e27cdcd3d92fb42caddeef12f48ef7f1ea86f81cd7a5a735d7f766448c1c1d45a45bbc3dad9bbf0cb0fa178666b6b9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- locomotivecms_coal (1.0.0.pre.beta.1)
4
+ locomotivecms_coal (1.0.0.pre.beta.2)
5
5
  activesupport (~> 4.2.3)
6
6
  faraday (~> 0.9.1)
7
7
  faraday_middleware (~> 0.10.0)
data/README.md CHANGED
@@ -77,7 +77,7 @@ We do not garantee that all the API resources will work with the V2 Client but P
77
77
 
78
78
  **Create a new site**
79
79
 
80
- my_site = client.sites.create(name: 'Acme', subdomain: 'acme', locales: ['en'], timezone: 'UTC')
80
+ my_site = client.sites.create(name: 'Acme', handle: 'acme', locales: ['en'], timezone: 'UTC')
81
81
 
82
82
  **Destroy a site**
83
83
 
@@ -54,7 +54,7 @@ module Locomotive::Coal::Resources
54
54
  request.headers = _request_headers(parameters)
55
55
 
56
56
  if %i(post put).include?(action)
57
- request.body = parameters
57
+ request.body = _encode_parameters(parameters)
58
58
  else
59
59
  request.params = parameters
60
60
  end
@@ -95,6 +95,29 @@ module Locomotive::Coal::Resources
95
95
  credentials[:token]
96
96
  end
97
97
 
98
+ # https://github.com/ruby-grape/grape/issues/1028
99
+ def _encode_parameters(parameters)
100
+ return parameters unless parameters.is_a?(Hash)
101
+ parameters.tap do
102
+ parameters.each do |key, value|
103
+ if value.is_a?(Array)
104
+ parameters[key] = encode_array_to_hash(value) if value.first.is_a?(Hash)
105
+ elsif value.is_a?(Hash)
106
+ parameters[key] = _encode_parameters(value)
107
+ end
108
+ end
109
+ end
110
+ end
111
+
112
+ # [{ name: 'a' }, { name: 'b' }] => { 0 => { name: 'a' }, 1 => { name: 'b' } }
113
+ def encode_array_to_hash(value)
114
+ {}.tap do |hash|
115
+ value.each_with_index do |v, index|
116
+ hash[index] = v.to_hash
117
+ end
118
+ end
119
+ end
120
+
98
121
  end
99
122
 
100
123
  end
@@ -3,6 +3,6 @@
3
3
  # 1.0.0-alpha < 1.0.0-alpha.1 < 1.0.0-alpha.beta < 1.0.0-beta < 1.0.0-beta.2 < 1.0.0-beta.11 < 1.0.0-rc.1 < 1.0.0
4
4
  module Locomotive
5
5
  module Coal
6
- VERSION = '1.0.0-beta.1'
6
+ VERSION = '1.0.0-beta.2'
7
7
  end
8
8
  end
@@ -23,23 +23,23 @@ http_interactions:
23
23
  Content-Type:
24
24
  - application/json
25
25
  Etag:
26
- - W/"157eb61d395f237526d11950bbc5a1fa"
26
+ - W/"3b6ceb0d2ba232a8d48dd0dc8f702ef4"
27
27
  Cache-Control:
28
28
  - max-age=0, private, must-revalidate
29
29
  X-Request-Id:
30
- - a1d5bbf0-cf2d-4279-8465-e4847553f155
30
+ - 59c588e9-d44c-4288-9ff8-5797795137ee
31
31
  X-Runtime:
32
- - '0.064629'
32
+ - '0.014395'
33
33
  Content-Length:
34
34
  - '32'
35
35
  body:
36
36
  encoding: UTF-8
37
- string: '{"token":"v6XDp282UyPDeM6DgA-S"}'
37
+ string: '{"token":"xM_3r1zn2aQAinPFqSvd"}'
38
38
  http_version:
39
- recorded_at: Wed, 29 Jul 2015 15:36:35 GMT
39
+ recorded_at: Tue, 11 Aug 2015 13:12:34 GMT
40
40
  - request:
41
41
  method: get
42
- uri: http://localhost:3000/locomotive/api/v3/my_account.json?auth_token=v6XDp282UyPDeM6DgA-S
42
+ uri: http://localhost:3000/locomotive/api/v3/sites.json?auth_token=xM_3r1zn2aQAinPFqSvd
43
43
  body:
44
44
  encoding: US-ASCII
45
45
  string: ''
@@ -49,7 +49,7 @@ http_interactions:
49
49
  X-Locomotive-Account-Email:
50
50
  - admin@locomotivecms.com
51
51
  X-Locomotive-Account-Token:
52
- - v6XDp282UyPDeM6DgA-S
52
+ - xM_3r1zn2aQAinPFqSvd
53
53
  Accept-Encoding:
54
54
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
55
55
  User-Agent:
@@ -62,103 +62,100 @@ http_interactions:
62
62
  Content-Type:
63
63
  - application/json
64
64
  Etag:
65
- - W/"90a3d77a13c34daf43fc0149ef56eeec"
65
+ - W/"e98c3f1e3ad87ab3eb5f6a4ca52de628"
66
66
  Cache-Control:
67
67
  - max-age=0, private, must-revalidate
68
68
  X-Request-Id:
69
- - 30646b0b-7d2a-4a5c-885c-2869a8b529de
69
+ - 10523d85-ba59-4bc2-93f5-f810fbf1d63e
70
70
  X-Runtime:
71
- - '0.014990'
71
+ - '0.025750'
72
72
  Content-Length:
73
- - '264'
73
+ - '1114'
74
74
  body:
75
75
  encoding: UTF-8
76
- string: '{"_id":"55b8f2ea4469646440000000","created_at":"2015-07-29T15:36:10Z","updated_at":"2015-07-29T15:36:34Z","name":"John
77
- Doe","email":"admin@locomotivecms.com","locale":"en","api_key":"d49cd50f6f0d2b163f48fc73cb249f0244c37074","super_admin":false,"local_admin":true}'
76
+ string: '[{"_id":"55c9f4a387f6432a1e000002","created_at":"2015-08-11T13:12:03Z","updated_at":"2015-08-11T13:12:04Z","name":"LocomotiveCMS","handle":"www","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":["www.example.com"],"memberships":[{"_id":"55c9f4a487f6432a1e000005","created_at":null,"updated_at":null,"role":"admin","account_id":"55c9f4a387f6432a1e000000","name":"Admin","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null},{"_id":"55c9f4a487f6432a1e000006","created_at":"2015-08-11T13:12:04Z","updated_at":"2015-08-11T13:12:34Z","name":"John
77
+ Doe","handle":"sample","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":["sample.example.com"],"memberships":[{"_id":"55c9f4a487f6432a1e000009","created_at":null,"updated_at":null,"role":"admin","account_id":"55c9f4a387f6432a1e000000","name":"Admin","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null}]'
78
78
  http_version:
79
- recorded_at: Wed, 29 Jul 2015 15:36:35 GMT
79
+ recorded_at: Tue, 11 Aug 2015 13:12:35 GMT
80
80
  - request:
81
- method: post
82
- uri: http://www.example.com:3000/locomotive/api/v3/tokens.json
81
+ method: get
82
+ uri: http://localhost:3000/locomotive/api/v3/version.json?auth_token=xM_3r1zn2aQAinPFqSvd&email=admin@locomotivecms.com&handle=&password=locomotive&token=xM_3r1zn2aQAinPFqSvd
83
83
  body:
84
- encoding: UTF-8
85
- string: email=admin%40locomotivecms.com&password=locomotive
84
+ encoding: US-ASCII
85
+ string: ''
86
86
  headers:
87
87
  Accept:
88
88
  - application/json
89
- Content-Type:
90
- - application/x-www-form-urlencoded
89
+ X-Locomotive-Account-Email:
90
+ - admin@locomotivecms.com
91
+ X-Locomotive-Account-Token:
92
+ - xM_3r1zn2aQAinPFqSvd
91
93
  Accept-Encoding:
92
94
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
93
95
  User-Agent:
94
96
  - Ruby
95
97
  response:
96
98
  status:
97
- code: 201
98
- message: Created
99
+ code: 200
100
+ message: OK
99
101
  headers:
100
102
  Content-Type:
101
103
  - application/json
102
104
  Etag:
103
- - W/"157eb61d395f237526d11950bbc5a1fa"
105
+ - W/"4f482497f0c1e5f67e0c6bc908159a8b"
104
106
  Cache-Control:
105
107
  - max-age=0, private, must-revalidate
106
108
  X-Request-Id:
107
- - 5bcb10fc-5799-4d7e-9392-c806b83d94bc
109
+ - 9c6d68a3-6dc0-4fec-a59c-c8367e437831
108
110
  X-Runtime:
109
- - '0.016948'
111
+ - '0.011870'
110
112
  Content-Length:
111
- - '32'
113
+ - '26'
112
114
  body:
113
115
  encoding: UTF-8
114
- string: '{"token":"v6XDp282UyPDeM6DgA-S"}'
116
+ string: '{"engine":"3.0.0-alpha.3"}'
115
117
  http_version:
116
- recorded_at: Wed, 29 Jul 2015 15:36:35 GMT
118
+ recorded_at: Tue, 11 Aug 2015 13:12:35 GMT
117
119
  - request:
118
- method: get
119
- uri: http://www.example.com:3000/locomotive/api/v3/sites.json?auth_token=v6XDp282UyPDeM6DgA-S
120
+ method: post
121
+ uri: http://www.example.com:3000/locomotive/api/v3/tokens.json
120
122
  body:
121
- encoding: US-ASCII
122
- string: ''
123
+ encoding: UTF-8
124
+ string: email=admin%40locomotivecms.com&password=locomotive
123
125
  headers:
124
126
  Accept:
125
127
  - application/json
126
- X-Locomotive-Account-Email:
127
- - admin@locomotivecms.com
128
- X-Locomotive-Account-Token:
129
- - v6XDp282UyPDeM6DgA-S
128
+ Content-Type:
129
+ - application/x-www-form-urlencoded
130
130
  Accept-Encoding:
131
131
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
132
132
  User-Agent:
133
133
  - Ruby
134
134
  response:
135
135
  status:
136
- code: 200
137
- message: OK
136
+ code: 201
137
+ message: Created
138
138
  headers:
139
139
  Content-Type:
140
140
  - application/json
141
141
  Etag:
142
- - W/"6eeec342423fe5777a3bdb54452c56c3"
142
+ - W/"3b6ceb0d2ba232a8d48dd0dc8f702ef4"
143
143
  Cache-Control:
144
144
  - max-age=0, private, must-revalidate
145
145
  X-Request-Id:
146
- - 8f7f14e1-6e80-4170-aadf-81aced4a58c6
146
+ - f5f8b833-5f1d-432b-81d2-e843afd79f9e
147
147
  X-Runtime:
148
- - '0.022445'
148
+ - '0.018178'
149
149
  Content-Length:
150
- - '1120'
150
+ - '32'
151
151
  body:
152
152
  encoding: UTF-8
153
- string: '[{"_id":"55b8f2ea4469646440000002","created_at":"2015-07-29T15:36:10Z","updated_at":"2015-07-29T15:36:10Z","name":"LocomotiveCMS","handle":"www","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":["www.example.com"],"memberships":[{"_id":"55b8f2ea4469646440000005","created_at":null,"updated_at":null,"role":"admin","account_id":"55b8f2ea4469646440000000","name":"John
154
- Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null},{"_id":"55b8f2ea4469646440000006","created_at":"2015-07-29T15:36:10Z","updated_at":"2015-07-29T15:36:34Z","name":"John
155
- 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":"John
156
- Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null}]'
153
+ string: '{"token":"xM_3r1zn2aQAinPFqSvd"}'
157
154
  http_version:
158
- recorded_at: Wed, 29 Jul 2015 15:36:35 GMT
155
+ recorded_at: Tue, 11 Aug 2015 13:12:35 GMT
159
156
  - request:
160
157
  method: get
161
- uri: http://localhost:3000/locomotive/api/v3/sites.json?auth_token=v6XDp282UyPDeM6DgA-S
158
+ uri: http://www.example.com:3000/locomotive/api/v3/sites.json?auth_token=xM_3r1zn2aQAinPFqSvd
162
159
  body:
163
160
  encoding: US-ASCII
164
161
  string: ''
@@ -168,7 +165,7 @@ http_interactions:
168
165
  X-Locomotive-Account-Email:
169
166
  - admin@locomotivecms.com
170
167
  X-Locomotive-Account-Token:
171
- - v6XDp282UyPDeM6DgA-S
168
+ - xM_3r1zn2aQAinPFqSvd
172
169
  Accept-Encoding:
173
170
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
174
171
  User-Agent:
@@ -181,26 +178,24 @@ http_interactions:
181
178
  Content-Type:
182
179
  - application/json
183
180
  Etag:
184
- - W/"6eeec342423fe5777a3bdb54452c56c3"
181
+ - W/"e98c3f1e3ad87ab3eb5f6a4ca52de628"
185
182
  Cache-Control:
186
183
  - max-age=0, private, must-revalidate
187
184
  X-Request-Id:
188
- - e22616cf-3631-477d-96ba-081a56beb562
185
+ - 73104d8b-983d-4416-8952-c6c99330ed26
189
186
  X-Runtime:
190
- - '0.024625'
187
+ - '0.023492'
191
188
  Content-Length:
192
- - '1120'
189
+ - '1114'
193
190
  body:
194
191
  encoding: UTF-8
195
- string: '[{"_id":"55b8f2ea4469646440000002","created_at":"2015-07-29T15:36:10Z","updated_at":"2015-07-29T15:36:10Z","name":"LocomotiveCMS","handle":"www","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":["www.example.com"],"memberships":[{"_id":"55b8f2ea4469646440000005","created_at":null,"updated_at":null,"role":"admin","account_id":"55b8f2ea4469646440000000","name":"John
196
- Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null},{"_id":"55b8f2ea4469646440000006","created_at":"2015-07-29T15:36:10Z","updated_at":"2015-07-29T15:36:34Z","name":"John
197
- 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":"John
198
- Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null}]'
192
+ string: '[{"_id":"55c9f4a387f6432a1e000002","created_at":"2015-08-11T13:12:03Z","updated_at":"2015-08-11T13:12:04Z","name":"LocomotiveCMS","handle":"www","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":["www.example.com"],"memberships":[{"_id":"55c9f4a487f6432a1e000005","created_at":null,"updated_at":null,"role":"admin","account_id":"55c9f4a387f6432a1e000000","name":"Admin","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null},{"_id":"55c9f4a487f6432a1e000006","created_at":"2015-08-11T13:12:04Z","updated_at":"2015-08-11T13:12:34Z","name":"John
193
+ Doe","handle":"sample","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":["sample.example.com"],"memberships":[{"_id":"55c9f4a487f6432a1e000009","created_at":null,"updated_at":null,"role":"admin","account_id":"55c9f4a387f6432a1e000000","name":"Admin","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null}]'
199
194
  http_version:
200
- recorded_at: Wed, 29 Jul 2015 15:36:35 GMT
195
+ recorded_at: Tue, 11 Aug 2015 13:12:35 GMT
201
196
  - request:
202
197
  method: get
203
- uri: http://localhost:3000/locomotive/api/v3/translations.json?auth_token=v6XDp282UyPDeM6DgA-S
198
+ uri: http://localhost:3000/locomotive/api/v3/my_account.json?auth_token=xM_3r1zn2aQAinPFqSvd
204
199
  body:
205
200
  encoding: US-ASCII
206
201
  string: ''
@@ -210,9 +205,7 @@ http_interactions:
210
205
  X-Locomotive-Account-Email:
211
206
  - admin@locomotivecms.com
212
207
  X-Locomotive-Account-Token:
213
- - v6XDp282UyPDeM6DgA-S
214
- X-Locomotive-Site-Handle:
215
- - sample
208
+ - xM_3r1zn2aQAinPFqSvd
216
209
  Accept-Encoding:
217
210
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
218
211
  User-Agent:
@@ -225,23 +218,23 @@ http_interactions:
225
218
  Content-Type:
226
219
  - application/json
227
220
  Etag:
228
- - W/"d751713988987e9331980363e24189ce"
221
+ - W/"5d81ea9f3bdc8f0d8d64e6987d114b29"
229
222
  Cache-Control:
230
223
  - max-age=0, private, must-revalidate
231
224
  X-Request-Id:
232
- - 4386dc93-d584-446b-9dcc-52915c532d6a
225
+ - 075f9471-a109-4c39-bcd6-554672c3e8ef
233
226
  X-Runtime:
234
- - '0.021975'
227
+ - '0.015601'
235
228
  Content-Length:
236
- - '2'
229
+ - '261'
237
230
  body:
238
231
  encoding: UTF-8
239
- string: "[]"
232
+ string: '{"_id":"55c9f4a387f6432a1e000000","created_at":"2015-08-11T13:12:03Z","updated_at":"2015-08-11T13:12:03Z","name":"Admin","email":"admin@locomotivecms.com","locale":"en","api_key":"d49cd50f6f0d2b163f48fc73cb249f0244c37074","super_admin":false,"local_admin":true}'
240
233
  http_version:
241
- recorded_at: Wed, 29 Jul 2015 15:36:35 GMT
234
+ recorded_at: Tue, 11 Aug 2015 13:12:35 GMT
242
235
  - request:
243
236
  method: get
244
- uri: http://localhost:3000/locomotive/api/v3/snippets.json?auth_token=v6XDp282UyPDeM6DgA-S
237
+ uri: http://localhost:3000/locomotive/api/v3/snippets.json?auth_token=xM_3r1zn2aQAinPFqSvd
245
238
  body:
246
239
  encoding: US-ASCII
247
240
  string: ''
@@ -251,7 +244,7 @@ http_interactions:
251
244
  X-Locomotive-Account-Email:
252
245
  - admin@locomotivecms.com
253
246
  X-Locomotive-Account-Token:
254
- - v6XDp282UyPDeM6DgA-S
247
+ - xM_3r1zn2aQAinPFqSvd
255
248
  X-Locomotive-Site-Handle:
256
249
  - sample
257
250
  X-Locomotive-Locale:
@@ -272,19 +265,19 @@ http_interactions:
272
265
  Cache-Control:
273
266
  - max-age=0, private, must-revalidate
274
267
  X-Request-Id:
275
- - 02321481-b45a-47bc-a5e4-0606ff6f0981
268
+ - aa3d08aa-2ed1-4780-986b-a246c8e3ff90
276
269
  X-Runtime:
277
- - '0.021469'
270
+ - '0.031246'
278
271
  Content-Length:
279
272
  - '2'
280
273
  body:
281
274
  encoding: UTF-8
282
275
  string: "[]"
283
276
  http_version:
284
- recorded_at: Wed, 29 Jul 2015 15:36:35 GMT
277
+ recorded_at: Tue, 11 Aug 2015 13:12:35 GMT
285
278
  - request:
286
279
  method: get
287
- uri: http://localhost:3000/locomotive/api/v3/theme_assets.json?auth_token=v6XDp282UyPDeM6DgA-S
280
+ uri: http://localhost:3000/locomotive/api/v3/theme_assets.json?auth_token=xM_3r1zn2aQAinPFqSvd
288
281
  body:
289
282
  encoding: US-ASCII
290
283
  string: ''
@@ -294,7 +287,7 @@ http_interactions:
294
287
  X-Locomotive-Account-Email:
295
288
  - admin@locomotivecms.com
296
289
  X-Locomotive-Account-Token:
297
- - v6XDp282UyPDeM6DgA-S
290
+ - xM_3r1zn2aQAinPFqSvd
298
291
  X-Locomotive-Site-Handle:
299
292
  - sample
300
293
  Accept-Encoding:
@@ -313,19 +306,19 @@ http_interactions:
313
306
  Cache-Control:
314
307
  - max-age=0, private, must-revalidate
315
308
  X-Request-Id:
316
- - f1c44850-e6d1-4f80-88a7-e6dac3b650cc
309
+ - a861cc5a-dfaa-480e-b4e9-9a74c7ce91e5
317
310
  X-Runtime:
318
- - '0.021556'
311
+ - '0.040103'
319
312
  Content-Length:
320
313
  - '2'
321
314
  body:
322
315
  encoding: UTF-8
323
316
  string: "[]"
324
317
  http_version:
325
- recorded_at: Wed, 29 Jul 2015 15:36:35 GMT
318
+ recorded_at: Tue, 11 Aug 2015 13:12:35 GMT
326
319
  - request:
327
320
  method: get
328
- uri: http://localhost:3000/locomotive/api/v3/version.json?auth_token=v6XDp282UyPDeM6DgA-S&email=admin@locomotivecms.com&handle=&password=locomotive&token=v6XDp282UyPDeM6DgA-S
321
+ uri: http://localhost:3000/locomotive/api/v3/translations.json?auth_token=xM_3r1zn2aQAinPFqSvd
329
322
  body:
330
323
  encoding: US-ASCII
331
324
  string: ''
@@ -335,7 +328,9 @@ http_interactions:
335
328
  X-Locomotive-Account-Email:
336
329
  - admin@locomotivecms.com
337
330
  X-Locomotive-Account-Token:
338
- - v6XDp282UyPDeM6DgA-S
331
+ - xM_3r1zn2aQAinPFqSvd
332
+ X-Locomotive-Site-Handle:
333
+ - sample
339
334
  Accept-Encoding:
340
335
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
341
336
  User-Agent:
@@ -348,18 +343,18 @@ http_interactions:
348
343
  Content-Type:
349
344
  - application/json
350
345
  Etag:
351
- - W/"4f482497f0c1e5f67e0c6bc908159a8b"
346
+ - W/"d751713988987e9331980363e24189ce"
352
347
  Cache-Control:
353
348
  - max-age=0, private, must-revalidate
354
349
  X-Request-Id:
355
- - d42b7453-1375-451b-b24e-c4bbc53f5241
350
+ - e1df8afd-b02b-428e-8459-4f228dc57456
356
351
  X-Runtime:
357
- - '0.012935'
352
+ - '0.046831'
358
353
  Content-Length:
359
- - '26'
354
+ - '2'
360
355
  body:
361
356
  encoding: UTF-8
362
- string: '{"engine":"3.0.0-alpha.3"}'
357
+ string: "[]"
363
358
  http_version:
364
- recorded_at: Wed, 29 Jul 2015 15:36:35 GMT
359
+ recorded_at: Tue, 11 Aug 2015 13:12:35 GMT
365
360
  recorded_with: VCR 2.9.3