contentful-management 2.8.0 → 2.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/contentful/management/api_key.rb +13 -0
- data/lib/contentful/management/asset.rb +3 -3
- data/lib/contentful/management/editor_interface.rb +5 -1
- data/lib/contentful/management/environment.rb +8 -0
- data/lib/contentful/management/locale.rb +8 -1
- data/lib/contentful/management/resource/refresher.rb +2 -1
- data/lib/contentful/management/role.rb +8 -1
- data/lib/contentful/management/space.rb +6 -0
- data/lib/contentful/management/version.rb +1 -1
- data/lib/contentful/management/webhook.rb +12 -1
- data/spec/fixtures/vcr_cassettes/api_key/issue_189.yml +476 -0
- data/spec/fixtures/vcr_cassettes/environment/issue_189.yml +418 -0
- data/spec/fixtures/vcr_cassettes/locale/issue_189.yml +438 -0
- data/spec/fixtures/vcr_cassettes/roles/issue_189.yml +689 -0
- data/spec/fixtures/vcr_cassettes/space/issue_189.yml +376 -0
- data/spec/fixtures/vcr_cassettes/webhook/issue_189.yml +448 -0
- data/spec/lib/contentful/management/api_key_spec.rb +18 -2
- data/spec/lib/contentful/management/environment_spec.rb +17 -0
- data/spec/lib/contentful/management/locale_spec.rb +16 -1
- data/spec/lib/contentful/management/role_spec.rb +20 -1
- data/spec/lib/contentful/management/space_spec.rb +19 -0
- data/spec/lib/contentful/management/webhook_spec.rb +19 -0
- metadata +14 -2
@@ -0,0 +1,418 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.contentful.com/spaces/facgnwwgj5fe/environments/testing
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
X-Contentful-User-Agent:
|
11
|
+
- sdk contentful-management.rb/2.8.0; platform ruby/2.5.3; os macOS/16;
|
12
|
+
Authorization:
|
13
|
+
- Bearer <ACCESS_TOKEN>
|
14
|
+
Content-Type:
|
15
|
+
- application/vnd.contentful.management.v1+json
|
16
|
+
Connection:
|
17
|
+
- close
|
18
|
+
Host:
|
19
|
+
- api.contentful.com
|
20
|
+
User-Agent:
|
21
|
+
- http.rb/2.2.2
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Accept-Ranges:
|
28
|
+
- bytes
|
29
|
+
Access-Control-Allow-Headers:
|
30
|
+
- Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature,X-Contentful-Source-Environment,X-Contentful-Team
|
31
|
+
Access-Control-Allow-Methods:
|
32
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
33
|
+
Access-Control-Allow-Origin:
|
34
|
+
- "*"
|
35
|
+
Access-Control-Expose-Headers:
|
36
|
+
- Etag
|
37
|
+
Access-Control-Max-Age:
|
38
|
+
- '1728000'
|
39
|
+
Cache-Control:
|
40
|
+
- max-age=0
|
41
|
+
Cf-Organization-Id:
|
42
|
+
- 4SsuxQCaMaemfIms52Jr8s
|
43
|
+
Cf-Space-Id:
|
44
|
+
- facgnwwgj5fe
|
45
|
+
Content-Type:
|
46
|
+
- application/vnd.contentful.management.v1+json
|
47
|
+
Contentful-Api:
|
48
|
+
- cma
|
49
|
+
Date:
|
50
|
+
- Tue, 02 Apr 2019 13:32:30 GMT
|
51
|
+
Etag:
|
52
|
+
- W/"efb427da4c64de61fd8bde26734945d1"
|
53
|
+
Referrer-Policy:
|
54
|
+
- strict-origin-when-cross-origin
|
55
|
+
Server:
|
56
|
+
- Contentful
|
57
|
+
Strict-Transport-Security:
|
58
|
+
- max-age=15768000
|
59
|
+
X-Content-Type-Options:
|
60
|
+
- nosniff
|
61
|
+
X-Contentful-Ratelimit-Hour-Limit:
|
62
|
+
- '36000'
|
63
|
+
X-Contentful-Ratelimit-Hour-Remaining:
|
64
|
+
- '35999'
|
65
|
+
X-Contentful-Ratelimit-Reset:
|
66
|
+
- '0'
|
67
|
+
X-Contentful-Ratelimit-Second-Limit:
|
68
|
+
- '10'
|
69
|
+
X-Contentful-Ratelimit-Second-Remaining:
|
70
|
+
- '9'
|
71
|
+
X-Contentful-Request-Id:
|
72
|
+
- 502d488b15f3bcce426010a961126e4c
|
73
|
+
X-Download-Options:
|
74
|
+
- noopen
|
75
|
+
X-Frame-Options:
|
76
|
+
- ALLOWALL
|
77
|
+
X-Permitted-Cross-Domain-Policies:
|
78
|
+
- none
|
79
|
+
X-Xss-Protection:
|
80
|
+
- 1; mode=block
|
81
|
+
Content-Length:
|
82
|
+
- '690'
|
83
|
+
Connection:
|
84
|
+
- Close
|
85
|
+
Set-Cookie:
|
86
|
+
- incap_ses_1077_673446=6LNMAhIQmBL9vmoUCkbyDm1ko1wAAAAA/Mku1mhh1/Dtrw6fNMy5pA==;
|
87
|
+
path=/; Domain=.contentful.com
|
88
|
+
- nlbi_673446=RLMIC6njYh5pvmNIYMlkBAAAAADdncYQktKzX2qlIsv7+keD; path=/; Domain=.contentful.com
|
89
|
+
- visid_incap_673446=T+IeodZqR0eRzuO/rjzGqm1ko1wAAAAAQUIPAAAAAAAgww8NzcEB35BTC58V0qwA;
|
90
|
+
expires=Wed, 01 Apr 2020 05:58:41 GMT; path=/; Domain=.contentful.com
|
91
|
+
X-Iinfo:
|
92
|
+
- 14-1277974-1277980 NNNN CT(110 110 0) RT(1554211948829 56) q(0 0 3 -1) r(4
|
93
|
+
4) U5
|
94
|
+
X-Cdn:
|
95
|
+
- Incapsula
|
96
|
+
body:
|
97
|
+
encoding: ASCII-8BIT
|
98
|
+
string: |+
|
99
|
+
{
|
100
|
+
"name":"testing",
|
101
|
+
"sys":{
|
102
|
+
"type":"Environment",
|
103
|
+
"id":"testing",
|
104
|
+
"version":6,
|
105
|
+
"space":{
|
106
|
+
"sys":{
|
107
|
+
"type":"Link",
|
108
|
+
"linkType":"Space",
|
109
|
+
"id":"facgnwwgj5fe"
|
110
|
+
}
|
111
|
+
},
|
112
|
+
"status":{
|
113
|
+
"sys":{
|
114
|
+
"type":"Link",
|
115
|
+
"linkType":"Status",
|
116
|
+
"id":"ready"
|
117
|
+
}
|
118
|
+
},
|
119
|
+
"createdBy":{
|
120
|
+
"sys":{
|
121
|
+
"type":"Link",
|
122
|
+
"linkType":"User",
|
123
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
124
|
+
}
|
125
|
+
},
|
126
|
+
"createdAt":"2018-02-27T10:19:01Z",
|
127
|
+
"updatedBy":{
|
128
|
+
"sys":{
|
129
|
+
"type":"Link",
|
130
|
+
"linkType":"User",
|
131
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
132
|
+
}
|
133
|
+
},
|
134
|
+
"updatedAt":"2018-02-27T10:19:04Z"
|
135
|
+
}
|
136
|
+
}
|
137
|
+
|
138
|
+
http_version:
|
139
|
+
recorded_at: Tue, 02 Apr 2019 13:32:29 GMT
|
140
|
+
- request:
|
141
|
+
method: put
|
142
|
+
uri: https://api.contentful.com/spaces/facgnwwgj5fe/environments/testing
|
143
|
+
body:
|
144
|
+
encoding: UTF-8
|
145
|
+
string: '{"name":"testing 2"}'
|
146
|
+
headers:
|
147
|
+
X-Contentful-User-Agent:
|
148
|
+
- sdk contentful-management.rb/2.8.0; platform ruby/2.5.3; os macOS/16;
|
149
|
+
Authorization:
|
150
|
+
- Bearer <ACCESS_TOKEN>
|
151
|
+
Content-Type:
|
152
|
+
- application/vnd.contentful.management.v1+json
|
153
|
+
X-Contentful-Version:
|
154
|
+
- '6'
|
155
|
+
Version:
|
156
|
+
- '6'
|
157
|
+
Connection:
|
158
|
+
- close
|
159
|
+
Host:
|
160
|
+
- api.contentful.com
|
161
|
+
User-Agent:
|
162
|
+
- http.rb/2.2.2
|
163
|
+
response:
|
164
|
+
status:
|
165
|
+
code: 200
|
166
|
+
message: OK
|
167
|
+
headers:
|
168
|
+
Accept-Ranges:
|
169
|
+
- bytes
|
170
|
+
Access-Control-Allow-Headers:
|
171
|
+
- Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature,X-Contentful-Source-Environment,X-Contentful-Team
|
172
|
+
Access-Control-Allow-Methods:
|
173
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
174
|
+
Access-Control-Allow-Origin:
|
175
|
+
- "*"
|
176
|
+
Access-Control-Expose-Headers:
|
177
|
+
- Etag
|
178
|
+
Access-Control-Max-Age:
|
179
|
+
- '1728000'
|
180
|
+
Cache-Control:
|
181
|
+
- max-age=0
|
182
|
+
Cf-Organization-Id:
|
183
|
+
- 4SsuxQCaMaemfIms52Jr8s
|
184
|
+
Cf-Space-Id:
|
185
|
+
- facgnwwgj5fe
|
186
|
+
Content-Type:
|
187
|
+
- application/vnd.contentful.management.v1+json
|
188
|
+
Contentful-Api:
|
189
|
+
- cma
|
190
|
+
Date:
|
191
|
+
- Tue, 02 Apr 2019 13:32:30 GMT
|
192
|
+
Etag:
|
193
|
+
- W/"b5f8d465c58fdb2d4de7e800b00f1eaa"
|
194
|
+
Referrer-Policy:
|
195
|
+
- strict-origin-when-cross-origin
|
196
|
+
Server:
|
197
|
+
- Contentful
|
198
|
+
Strict-Transport-Security:
|
199
|
+
- max-age=15768000
|
200
|
+
X-Content-Type-Options:
|
201
|
+
- nosniff
|
202
|
+
X-Contentful-Ratelimit-Hour-Limit:
|
203
|
+
- '36000'
|
204
|
+
X-Contentful-Ratelimit-Hour-Remaining:
|
205
|
+
- '35998'
|
206
|
+
X-Contentful-Ratelimit-Reset:
|
207
|
+
- '0'
|
208
|
+
X-Contentful-Ratelimit-Second-Limit:
|
209
|
+
- '10'
|
210
|
+
X-Contentful-Ratelimit-Second-Remaining:
|
211
|
+
- '8'
|
212
|
+
X-Contentful-Request-Id:
|
213
|
+
- decca8b7b1feb8049b4ab934dc7ec9df
|
214
|
+
X-Download-Options:
|
215
|
+
- noopen
|
216
|
+
X-Frame-Options:
|
217
|
+
- ALLOWALL
|
218
|
+
X-Permitted-Cross-Domain-Policies:
|
219
|
+
- none
|
220
|
+
X-Xss-Protection:
|
221
|
+
- 1; mode=block
|
222
|
+
Content-Length:
|
223
|
+
- '692'
|
224
|
+
Connection:
|
225
|
+
- Close
|
226
|
+
Set-Cookie:
|
227
|
+
- incap_ses_1077_673446=bvr5O4rBJkEbv2oUCkbyDm1ko1wAAAAAAWKfvmk91Xcrdb5rBWuxSQ==;
|
228
|
+
path=/; Domain=.contentful.com
|
229
|
+
- nlbi_673446=iyoFbxrp7FX472siYMlkBAAAAAC+cvsSmtTd21tfVrsk6ISe; path=/; Domain=.contentful.com
|
230
|
+
- visid_incap_673446=Krj3Vrd+R/S9E5IcCikqKG1ko1wAAAAAQUIPAAAAAAB8+SfOI41EUL/rE/OeKYP4;
|
231
|
+
expires=Wed, 01 Apr 2020 05:58:41 GMT; path=/; Domain=.contentful.com
|
232
|
+
X-Iinfo:
|
233
|
+
- 13-703744-703745 NNNN CT(111 112 0) RT(1554211949297 53) q(0 0 2 -1) r(5 5)
|
234
|
+
U5
|
235
|
+
X-Cdn:
|
236
|
+
- Incapsula
|
237
|
+
body:
|
238
|
+
encoding: ASCII-8BIT
|
239
|
+
string: |+
|
240
|
+
{
|
241
|
+
"name":"testing 2",
|
242
|
+
"sys":{
|
243
|
+
"type":"Environment",
|
244
|
+
"id":"testing",
|
245
|
+
"version":7,
|
246
|
+
"space":{
|
247
|
+
"sys":{
|
248
|
+
"type":"Link",
|
249
|
+
"linkType":"Space",
|
250
|
+
"id":"facgnwwgj5fe"
|
251
|
+
}
|
252
|
+
},
|
253
|
+
"status":{
|
254
|
+
"sys":{
|
255
|
+
"type":"Link",
|
256
|
+
"linkType":"Status",
|
257
|
+
"id":"ready"
|
258
|
+
}
|
259
|
+
},
|
260
|
+
"createdBy":{
|
261
|
+
"sys":{
|
262
|
+
"type":"Link",
|
263
|
+
"linkType":"User",
|
264
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
265
|
+
}
|
266
|
+
},
|
267
|
+
"createdAt":"2018-02-27T10:19:01Z",
|
268
|
+
"updatedBy":{
|
269
|
+
"sys":{
|
270
|
+
"type":"Link",
|
271
|
+
"linkType":"User",
|
272
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
273
|
+
}
|
274
|
+
},
|
275
|
+
"updatedAt":"2019-04-02T13:32:30Z"
|
276
|
+
}
|
277
|
+
}
|
278
|
+
|
279
|
+
http_version:
|
280
|
+
recorded_at: Tue, 02 Apr 2019 13:32:30 GMT
|
281
|
+
- request:
|
282
|
+
method: get
|
283
|
+
uri: https://api.contentful.com/spaces/facgnwwgj5fe/environments/testing
|
284
|
+
body:
|
285
|
+
encoding: US-ASCII
|
286
|
+
string: ''
|
287
|
+
headers:
|
288
|
+
X-Contentful-User-Agent:
|
289
|
+
- sdk contentful-management.rb/2.8.0; platform ruby/2.5.3; os macOS/16;
|
290
|
+
Authorization:
|
291
|
+
- Bearer <ACCESS_TOKEN>
|
292
|
+
Content-Type:
|
293
|
+
- application/vnd.contentful.management.v1+json
|
294
|
+
Connection:
|
295
|
+
- close
|
296
|
+
Host:
|
297
|
+
- api.contentful.com
|
298
|
+
User-Agent:
|
299
|
+
- http.rb/2.2.2
|
300
|
+
response:
|
301
|
+
status:
|
302
|
+
code: 200
|
303
|
+
message: OK
|
304
|
+
headers:
|
305
|
+
Accept-Ranges:
|
306
|
+
- bytes
|
307
|
+
Access-Control-Allow-Headers:
|
308
|
+
- Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature,X-Contentful-Source-Environment,X-Contentful-Team
|
309
|
+
Access-Control-Allow-Methods:
|
310
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
311
|
+
Access-Control-Allow-Origin:
|
312
|
+
- "*"
|
313
|
+
Access-Control-Expose-Headers:
|
314
|
+
- Etag
|
315
|
+
Access-Control-Max-Age:
|
316
|
+
- '1728000'
|
317
|
+
Cache-Control:
|
318
|
+
- max-age=0
|
319
|
+
Cf-Organization-Id:
|
320
|
+
- 4SsuxQCaMaemfIms52Jr8s
|
321
|
+
Cf-Space-Id:
|
322
|
+
- facgnwwgj5fe
|
323
|
+
Content-Type:
|
324
|
+
- application/vnd.contentful.management.v1+json
|
325
|
+
Contentful-Api:
|
326
|
+
- cma
|
327
|
+
Date:
|
328
|
+
- Tue, 02 Apr 2019 13:32:31 GMT
|
329
|
+
Etag:
|
330
|
+
- W/"b5f8d465c58fdb2d4de7e800b00f1eaa"
|
331
|
+
Referrer-Policy:
|
332
|
+
- strict-origin-when-cross-origin
|
333
|
+
Server:
|
334
|
+
- Contentful
|
335
|
+
Strict-Transport-Security:
|
336
|
+
- max-age=15768000
|
337
|
+
X-Content-Type-Options:
|
338
|
+
- nosniff
|
339
|
+
X-Contentful-Ratelimit-Hour-Limit:
|
340
|
+
- '36000'
|
341
|
+
X-Contentful-Ratelimit-Hour-Remaining:
|
342
|
+
- '35999'
|
343
|
+
X-Contentful-Ratelimit-Reset:
|
344
|
+
- '0'
|
345
|
+
X-Contentful-Ratelimit-Second-Limit:
|
346
|
+
- '10'
|
347
|
+
X-Contentful-Ratelimit-Second-Remaining:
|
348
|
+
- '9'
|
349
|
+
X-Contentful-Request-Id:
|
350
|
+
- b5ac2e8867d263c7b74a77360a5b1402
|
351
|
+
X-Download-Options:
|
352
|
+
- noopen
|
353
|
+
X-Frame-Options:
|
354
|
+
- ALLOWALL
|
355
|
+
X-Permitted-Cross-Domain-Policies:
|
356
|
+
- none
|
357
|
+
X-Xss-Protection:
|
358
|
+
- 1; mode=block
|
359
|
+
Content-Length:
|
360
|
+
- '692'
|
361
|
+
Connection:
|
362
|
+
- Close
|
363
|
+
Set-Cookie:
|
364
|
+
- incap_ses_1077_673446=k+YaP/pkiSQtv2oUCkbyDm5ko1wAAAAAKkEMcH8VCp6csLuvncT2Fw==;
|
365
|
+
path=/; Domain=.contentful.com
|
366
|
+
- nlbi_673446=ks5WKUyRliUTXlakYMlkBAAAAAACbD2WwCetGlqTcYesy44+; path=/; Domain=.contentful.com
|
367
|
+
- visid_incap_673446=YhAAI+voTZGG97cgP92+Vm5ko1wAAAAAQUIPAAAAAADUz8RLa3j0pm1dFGh4MBFl;
|
368
|
+
expires=Wed, 01 Apr 2020 05:58:42 GMT; path=/; Domain=.contentful.com
|
369
|
+
X-Iinfo:
|
370
|
+
- 5-1460327-1460329 NNNN CT(110 110 0) RT(1554211949878 60) q(0 0 2 -1) r(4
|
371
|
+
4) U5
|
372
|
+
X-Cdn:
|
373
|
+
- Incapsula
|
374
|
+
body:
|
375
|
+
encoding: ASCII-8BIT
|
376
|
+
string: |+
|
377
|
+
{
|
378
|
+
"name":"testing 2",
|
379
|
+
"sys":{
|
380
|
+
"type":"Environment",
|
381
|
+
"id":"testing",
|
382
|
+
"version":7,
|
383
|
+
"space":{
|
384
|
+
"sys":{
|
385
|
+
"type":"Link",
|
386
|
+
"linkType":"Space",
|
387
|
+
"id":"facgnwwgj5fe"
|
388
|
+
}
|
389
|
+
},
|
390
|
+
"status":{
|
391
|
+
"sys":{
|
392
|
+
"type":"Link",
|
393
|
+
"linkType":"Status",
|
394
|
+
"id":"ready"
|
395
|
+
}
|
396
|
+
},
|
397
|
+
"createdBy":{
|
398
|
+
"sys":{
|
399
|
+
"type":"Link",
|
400
|
+
"linkType":"User",
|
401
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
402
|
+
}
|
403
|
+
},
|
404
|
+
"createdAt":"2018-02-27T10:19:01Z",
|
405
|
+
"updatedBy":{
|
406
|
+
"sys":{
|
407
|
+
"type":"Link",
|
408
|
+
"linkType":"User",
|
409
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
410
|
+
}
|
411
|
+
},
|
412
|
+
"updatedAt":"2019-04-02T13:32:30Z"
|
413
|
+
}
|
414
|
+
}
|
415
|
+
|
416
|
+
http_version:
|
417
|
+
recorded_at: Tue, 02 Apr 2019 13:32:30 GMT
|
418
|
+
recorded_with: VCR 4.0.0
|
@@ -0,0 +1,438 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.contentful.com/spaces/facgnwwgj5fe/environments/master/locales/4brXbuf0CeMWo4vlIfWe0q
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
X-Contentful-User-Agent:
|
11
|
+
- sdk contentful-management.rb/2.8.0; platform ruby/2.5.3; os macOS/16;
|
12
|
+
Authorization:
|
13
|
+
- Bearer <ACCESS_TOKEN>
|
14
|
+
Content-Type:
|
15
|
+
- application/vnd.contentful.management.v1+json
|
16
|
+
Connection:
|
17
|
+
- close
|
18
|
+
Host:
|
19
|
+
- api.contentful.com
|
20
|
+
User-Agent:
|
21
|
+
- http.rb/2.2.2
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Accept-Ranges:
|
28
|
+
- bytes
|
29
|
+
Access-Control-Allow-Headers:
|
30
|
+
- Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature,X-Contentful-Source-Environment,X-Contentful-Team
|
31
|
+
Access-Control-Allow-Methods:
|
32
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
33
|
+
Access-Control-Allow-Origin:
|
34
|
+
- "*"
|
35
|
+
Access-Control-Expose-Headers:
|
36
|
+
- Etag
|
37
|
+
Access-Control-Max-Age:
|
38
|
+
- '1728000'
|
39
|
+
Cache-Control:
|
40
|
+
- max-age=0
|
41
|
+
Cf-Organization-Id:
|
42
|
+
- 4SsuxQCaMaemfIms52Jr8s
|
43
|
+
Cf-Space-Id:
|
44
|
+
- facgnwwgj5fe
|
45
|
+
Content-Type:
|
46
|
+
- application/vnd.contentful.management.v1+json
|
47
|
+
Contentful-Api:
|
48
|
+
- cma
|
49
|
+
Date:
|
50
|
+
- Tue, 02 Apr 2019 12:24:56 GMT
|
51
|
+
Etag:
|
52
|
+
- W/"a9012413581ea6c1772a124efbf5cf85"
|
53
|
+
Referrer-Policy:
|
54
|
+
- strict-origin-when-cross-origin
|
55
|
+
Server:
|
56
|
+
- Contentful
|
57
|
+
Strict-Transport-Security:
|
58
|
+
- max-age=15768000
|
59
|
+
X-Content-Type-Options:
|
60
|
+
- nosniff
|
61
|
+
X-Contentful-Ratelimit-Hour-Limit:
|
62
|
+
- '36000'
|
63
|
+
X-Contentful-Ratelimit-Hour-Remaining:
|
64
|
+
- '35999'
|
65
|
+
X-Contentful-Ratelimit-Reset:
|
66
|
+
- '0'
|
67
|
+
X-Contentful-Ratelimit-Second-Limit:
|
68
|
+
- '10'
|
69
|
+
X-Contentful-Ratelimit-Second-Remaining:
|
70
|
+
- '9'
|
71
|
+
X-Contentful-Request-Id:
|
72
|
+
- 64c570c532916461862179b64b43c88d
|
73
|
+
X-Download-Options:
|
74
|
+
- noopen
|
75
|
+
X-Frame-Options:
|
76
|
+
- ALLOWALL
|
77
|
+
X-Permitted-Cross-Domain-Policies:
|
78
|
+
- none
|
79
|
+
X-Xss-Protection:
|
80
|
+
- 1; mode=block
|
81
|
+
Content-Length:
|
82
|
+
- '873'
|
83
|
+
Connection:
|
84
|
+
- Close
|
85
|
+
Set-Cookie:
|
86
|
+
- incap_ses_1077_673446=/IwQQC4ptkTo32cUCkbyDpdUo1wAAAAAT4hC3eOgKgcivRVG7x7/Pw==;
|
87
|
+
path=/; Domain=.contentful.com
|
88
|
+
- nlbi_673446=v36AQFwY+wvNlpDJYMlkBAAAAACInLUEB/KEaUUqFceQhmu9; path=/; Domain=.contentful.com
|
89
|
+
- visid_incap_673446=X7mOb3k4R+u95aKplxRyx5dUo1wAAAAAQUIPAAAAAADKoqfaC7v8y9cIALXWQk2y;
|
90
|
+
expires=Wed, 01 Apr 2020 05:58:42 GMT; path=/; Domain=.contentful.com
|
91
|
+
X-Iinfo:
|
92
|
+
- 5-1233589-1233594 NNNN CT(122 123 0) RT(1554207895529 60) q(0 0 3 -1) r(4
|
93
|
+
4) U5
|
94
|
+
X-Cdn:
|
95
|
+
- Incapsula
|
96
|
+
body:
|
97
|
+
encoding: ASCII-8BIT
|
98
|
+
string: |+
|
99
|
+
{
|
100
|
+
"name":"foo",
|
101
|
+
"internal_code":"bar",
|
102
|
+
"code":"bar",
|
103
|
+
"fallbackCode":"en-US",
|
104
|
+
"default":false,
|
105
|
+
"contentManagementApi":true,
|
106
|
+
"contentDeliveryApi":true,
|
107
|
+
"optional":false,
|
108
|
+
"sys":{
|
109
|
+
"type":"Locale",
|
110
|
+
"id":"4brXbuf0CeMWo4vlIfWe0q",
|
111
|
+
"version":1,
|
112
|
+
"space":{
|
113
|
+
"sys":{
|
114
|
+
"type":"Link",
|
115
|
+
"linkType":"Space",
|
116
|
+
"id":"facgnwwgj5fe"
|
117
|
+
}
|
118
|
+
},
|
119
|
+
"environment":{
|
120
|
+
"sys":{
|
121
|
+
"type":"Link",
|
122
|
+
"linkType":"Environment",
|
123
|
+
"id":"master"
|
124
|
+
}
|
125
|
+
},
|
126
|
+
"createdBy":{
|
127
|
+
"sys":{
|
128
|
+
"type":"Link",
|
129
|
+
"linkType":"User",
|
130
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
131
|
+
}
|
132
|
+
},
|
133
|
+
"createdAt":"2018-06-13T09:39:05Z",
|
134
|
+
"updatedBy":{
|
135
|
+
"sys":{
|
136
|
+
"type":"Link",
|
137
|
+
"linkType":"User",
|
138
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
139
|
+
}
|
140
|
+
},
|
141
|
+
"updatedAt":"2018-06-13T09:39:05Z"
|
142
|
+
}
|
143
|
+
}
|
144
|
+
|
145
|
+
http_version:
|
146
|
+
recorded_at: Tue, 02 Apr 2019 12:24:56 GMT
|
147
|
+
- request:
|
148
|
+
method: put
|
149
|
+
uri: https://api.contentful.com/spaces/facgnwwgj5fe/environments/master/locales/4brXbuf0CeMWo4vlIfWe0q
|
150
|
+
body:
|
151
|
+
encoding: UTF-8
|
152
|
+
string: '{"name":"foo","code":"bar2","optional":false,"fallbackCode":"en-US"}'
|
153
|
+
headers:
|
154
|
+
X-Contentful-User-Agent:
|
155
|
+
- sdk contentful-management.rb/2.8.0; platform ruby/2.5.3; os macOS/16;
|
156
|
+
Authorization:
|
157
|
+
- Bearer <ACCESS_TOKEN>
|
158
|
+
Content-Type:
|
159
|
+
- application/vnd.contentful.management.v1+json
|
160
|
+
X-Contentful-Version:
|
161
|
+
- '1'
|
162
|
+
Version:
|
163
|
+
- '1'
|
164
|
+
Connection:
|
165
|
+
- close
|
166
|
+
Host:
|
167
|
+
- api.contentful.com
|
168
|
+
User-Agent:
|
169
|
+
- http.rb/2.2.2
|
170
|
+
response:
|
171
|
+
status:
|
172
|
+
code: 200
|
173
|
+
message: OK
|
174
|
+
headers:
|
175
|
+
Accept-Ranges:
|
176
|
+
- bytes
|
177
|
+
Access-Control-Allow-Headers:
|
178
|
+
- Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature,X-Contentful-Source-Environment,X-Contentful-Team
|
179
|
+
Access-Control-Allow-Methods:
|
180
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
181
|
+
Access-Control-Allow-Origin:
|
182
|
+
- "*"
|
183
|
+
Access-Control-Expose-Headers:
|
184
|
+
- Etag
|
185
|
+
Access-Control-Max-Age:
|
186
|
+
- '1728000'
|
187
|
+
Cache-Control:
|
188
|
+
- max-age=0
|
189
|
+
Cf-Organization-Id:
|
190
|
+
- 4SsuxQCaMaemfIms52Jr8s
|
191
|
+
Cf-Space-Id:
|
192
|
+
- facgnwwgj5fe
|
193
|
+
Content-Type:
|
194
|
+
- application/vnd.contentful.management.v1+json
|
195
|
+
Contentful-Api:
|
196
|
+
- cma
|
197
|
+
Date:
|
198
|
+
- Tue, 02 Apr 2019 12:24:57 GMT
|
199
|
+
Etag:
|
200
|
+
- W/"0c4ca2cd90d6707f55c3fba23ba0dea4"
|
201
|
+
Referrer-Policy:
|
202
|
+
- strict-origin-when-cross-origin
|
203
|
+
Server:
|
204
|
+
- Contentful
|
205
|
+
Strict-Transport-Security:
|
206
|
+
- max-age=15768000
|
207
|
+
X-Content-Type-Options:
|
208
|
+
- nosniff
|
209
|
+
X-Contentful-Ratelimit-Hour-Limit:
|
210
|
+
- '36000'
|
211
|
+
X-Contentful-Ratelimit-Hour-Remaining:
|
212
|
+
- '35999'
|
213
|
+
X-Contentful-Ratelimit-Reset:
|
214
|
+
- '0'
|
215
|
+
X-Contentful-Ratelimit-Second-Limit:
|
216
|
+
- '10'
|
217
|
+
X-Contentful-Ratelimit-Second-Remaining:
|
218
|
+
- '9'
|
219
|
+
X-Contentful-Request-Id:
|
220
|
+
- d185ee3f73d0b4798d80b2fe9eb9b29b
|
221
|
+
X-Download-Options:
|
222
|
+
- noopen
|
223
|
+
X-Frame-Options:
|
224
|
+
- ALLOWALL
|
225
|
+
X-Permitted-Cross-Domain-Policies:
|
226
|
+
- none
|
227
|
+
X-Xss-Protection:
|
228
|
+
- 1; mode=block
|
229
|
+
Content-Length:
|
230
|
+
- '874'
|
231
|
+
Connection:
|
232
|
+
- Close
|
233
|
+
Set-Cookie:
|
234
|
+
- incap_ses_1077_673446=fT1nIz5KewMH4GcUCkbyDphUo1wAAAAAc1l8A/IvENXxr6lCvjAWlQ==;
|
235
|
+
path=/; Domain=.contentful.com
|
236
|
+
- nlbi_673446=JIiwAr6cm3uylyZLYMlkBAAAAADExZvdSAoEBgk+QgjJMZVx; path=/; Domain=.contentful.com
|
237
|
+
- visid_incap_673446=CwRhQ/uVRV6v1HgXHVSyyJhUo1wAAAAAQUIPAAAAAABuZGyQBHAJg42J9q+NqsnQ;
|
238
|
+
expires=Wed, 01 Apr 2020 05:58:50 GMT; path=/; Domain=.contentful.com
|
239
|
+
X-Iinfo:
|
240
|
+
- 12-387879-387935 NNNN CT(94 191 0) RT(1554207896139 58) q(0 0 3 -1) r(5 5)
|
241
|
+
U5
|
242
|
+
X-Cdn:
|
243
|
+
- Incapsula
|
244
|
+
body:
|
245
|
+
encoding: ASCII-8BIT
|
246
|
+
string: |+
|
247
|
+
{
|
248
|
+
"name":"foo",
|
249
|
+
"internal_code":"bar",
|
250
|
+
"code":"bar2",
|
251
|
+
"fallbackCode":"en-US",
|
252
|
+
"default":false,
|
253
|
+
"contentManagementApi":true,
|
254
|
+
"contentDeliveryApi":true,
|
255
|
+
"optional":false,
|
256
|
+
"sys":{
|
257
|
+
"type":"Locale",
|
258
|
+
"id":"4brXbuf0CeMWo4vlIfWe0q",
|
259
|
+
"version":2,
|
260
|
+
"space":{
|
261
|
+
"sys":{
|
262
|
+
"type":"Link",
|
263
|
+
"linkType":"Space",
|
264
|
+
"id":"facgnwwgj5fe"
|
265
|
+
}
|
266
|
+
},
|
267
|
+
"environment":{
|
268
|
+
"sys":{
|
269
|
+
"type":"Link",
|
270
|
+
"linkType":"Environment",
|
271
|
+
"id":"master"
|
272
|
+
}
|
273
|
+
},
|
274
|
+
"createdBy":{
|
275
|
+
"sys":{
|
276
|
+
"type":"Link",
|
277
|
+
"linkType":"User",
|
278
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
279
|
+
}
|
280
|
+
},
|
281
|
+
"createdAt":"2018-06-13T09:39:05Z",
|
282
|
+
"updatedBy":{
|
283
|
+
"sys":{
|
284
|
+
"type":"Link",
|
285
|
+
"linkType":"User",
|
286
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
287
|
+
}
|
288
|
+
},
|
289
|
+
"updatedAt":"2019-04-02T12:24:57Z"
|
290
|
+
}
|
291
|
+
}
|
292
|
+
|
293
|
+
http_version:
|
294
|
+
recorded_at: Tue, 02 Apr 2019 12:24:56 GMT
|
295
|
+
- request:
|
296
|
+
method: get
|
297
|
+
uri: https://api.contentful.com/spaces/facgnwwgj5fe/environments/master/locales/4brXbuf0CeMWo4vlIfWe0q
|
298
|
+
body:
|
299
|
+
encoding: US-ASCII
|
300
|
+
string: ''
|
301
|
+
headers:
|
302
|
+
X-Contentful-User-Agent:
|
303
|
+
- sdk contentful-management.rb/2.8.0; platform ruby/2.5.3; os macOS/16;
|
304
|
+
Authorization:
|
305
|
+
- Bearer <ACCESS_TOKEN>
|
306
|
+
Content-Type:
|
307
|
+
- application/vnd.contentful.management.v1+json
|
308
|
+
Connection:
|
309
|
+
- close
|
310
|
+
Host:
|
311
|
+
- api.contentful.com
|
312
|
+
User-Agent:
|
313
|
+
- http.rb/2.2.2
|
314
|
+
response:
|
315
|
+
status:
|
316
|
+
code: 200
|
317
|
+
message: OK
|
318
|
+
headers:
|
319
|
+
Accept-Ranges:
|
320
|
+
- bytes
|
321
|
+
Access-Control-Allow-Headers:
|
322
|
+
- Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature,X-Contentful-Source-Environment,X-Contentful-Team
|
323
|
+
Access-Control-Allow-Methods:
|
324
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
325
|
+
Access-Control-Allow-Origin:
|
326
|
+
- "*"
|
327
|
+
Access-Control-Expose-Headers:
|
328
|
+
- Etag
|
329
|
+
Access-Control-Max-Age:
|
330
|
+
- '1728000'
|
331
|
+
Cache-Control:
|
332
|
+
- max-age=0
|
333
|
+
Cf-Organization-Id:
|
334
|
+
- 4SsuxQCaMaemfIms52Jr8s
|
335
|
+
Cf-Space-Id:
|
336
|
+
- facgnwwgj5fe
|
337
|
+
Content-Type:
|
338
|
+
- application/vnd.contentful.management.v1+json
|
339
|
+
Contentful-Api:
|
340
|
+
- cma
|
341
|
+
Date:
|
342
|
+
- Tue, 02 Apr 2019 12:24:58 GMT
|
343
|
+
Etag:
|
344
|
+
- W/"0c4ca2cd90d6707f55c3fba23ba0dea4"
|
345
|
+
Referrer-Policy:
|
346
|
+
- strict-origin-when-cross-origin
|
347
|
+
Server:
|
348
|
+
- Contentful
|
349
|
+
Strict-Transport-Security:
|
350
|
+
- max-age=15768000
|
351
|
+
X-Content-Type-Options:
|
352
|
+
- nosniff
|
353
|
+
X-Contentful-Ratelimit-Hour-Limit:
|
354
|
+
- '36000'
|
355
|
+
X-Contentful-Ratelimit-Hour-Remaining:
|
356
|
+
- '35999'
|
357
|
+
X-Contentful-Ratelimit-Reset:
|
358
|
+
- '0'
|
359
|
+
X-Contentful-Ratelimit-Second-Limit:
|
360
|
+
- '10'
|
361
|
+
X-Contentful-Ratelimit-Second-Remaining:
|
362
|
+
- '9'
|
363
|
+
X-Contentful-Request-Id:
|
364
|
+
- 5eb104825c3b441dcc1f29e4879e326a
|
365
|
+
X-Download-Options:
|
366
|
+
- noopen
|
367
|
+
X-Frame-Options:
|
368
|
+
- ALLOWALL
|
369
|
+
X-Permitted-Cross-Domain-Policies:
|
370
|
+
- none
|
371
|
+
X-Xss-Protection:
|
372
|
+
- 1; mode=block
|
373
|
+
Content-Length:
|
374
|
+
- '874'
|
375
|
+
Connection:
|
376
|
+
- Close
|
377
|
+
Set-Cookie:
|
378
|
+
- incap_ses_1077_673446=FeVYEJ6nNl0S4GcUCkbyDplUo1wAAAAApp9/o3MD+/CTysmYCcDb7Q==;
|
379
|
+
path=/; Domain=.contentful.com
|
380
|
+
- nlbi_673446=p7A8aq7RHV29GO9MYMlkBAAAAACh/gkcetLRPK1S4hCaQjK2; path=/; Domain=.contentful.com
|
381
|
+
- visid_incap_673446=mDXaVp6xR+ia4ENGk9U0cJlUo1wAAAAAQUIPAAAAAABzi4ks4m+XVJ1gsGEcQlMZ;
|
382
|
+
expires=Wed, 01 Apr 2020 05:58:22 GMT; path=/; Domain=.contentful.com
|
383
|
+
X-Iinfo:
|
384
|
+
- 3-802902-802905 NNNN CT(97 97 0) RT(1554207896791 51) q(0 0 2 -1) r(3 3) U5
|
385
|
+
X-Cdn:
|
386
|
+
- Incapsula
|
387
|
+
body:
|
388
|
+
encoding: ASCII-8BIT
|
389
|
+
string: |+
|
390
|
+
{
|
391
|
+
"name":"foo",
|
392
|
+
"internal_code":"bar",
|
393
|
+
"code":"bar2",
|
394
|
+
"fallbackCode":"en-US",
|
395
|
+
"default":false,
|
396
|
+
"contentManagementApi":true,
|
397
|
+
"contentDeliveryApi":true,
|
398
|
+
"optional":false,
|
399
|
+
"sys":{
|
400
|
+
"type":"Locale",
|
401
|
+
"id":"4brXbuf0CeMWo4vlIfWe0q",
|
402
|
+
"version":2,
|
403
|
+
"space":{
|
404
|
+
"sys":{
|
405
|
+
"type":"Link",
|
406
|
+
"linkType":"Space",
|
407
|
+
"id":"facgnwwgj5fe"
|
408
|
+
}
|
409
|
+
},
|
410
|
+
"environment":{
|
411
|
+
"sys":{
|
412
|
+
"type":"Link",
|
413
|
+
"linkType":"Environment",
|
414
|
+
"id":"master"
|
415
|
+
}
|
416
|
+
},
|
417
|
+
"createdBy":{
|
418
|
+
"sys":{
|
419
|
+
"type":"Link",
|
420
|
+
"linkType":"User",
|
421
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
422
|
+
}
|
423
|
+
},
|
424
|
+
"createdAt":"2018-06-13T09:39:05Z",
|
425
|
+
"updatedBy":{
|
426
|
+
"sys":{
|
427
|
+
"type":"Link",
|
428
|
+
"linkType":"User",
|
429
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
430
|
+
}
|
431
|
+
},
|
432
|
+
"updatedAt":"2019-04-02T12:24:57Z"
|
433
|
+
}
|
434
|
+
}
|
435
|
+
|
436
|
+
http_version:
|
437
|
+
recorded_at: Tue, 02 Apr 2019 12:24:57 GMT
|
438
|
+
recorded_with: VCR 4.0.0
|