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,376 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.contentful.com/spaces/no8f22w4syte
|
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
|
+
- no8f22w4syte
|
45
|
+
Content-Type:
|
46
|
+
- application/vnd.contentful.management.v1+json
|
47
|
+
Contentful-Api:
|
48
|
+
- cma
|
49
|
+
Date:
|
50
|
+
- Tue, 02 Apr 2019 13:38:01 GMT
|
51
|
+
Etag:
|
52
|
+
- W/"10014eafa25030a6ced3534846716cdf"
|
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
|
+
- 465eb5706297c2815c1e959a877824c4
|
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
|
+
- '446'
|
83
|
+
Connection:
|
84
|
+
- Close
|
85
|
+
Set-Cookie:
|
86
|
+
- incap_ses_1077_673446=mHHJX+SpkAbj+2oUCkbyDrhlo1wAAAAASyLJd/Wn0cK180NsDVE3BQ==;
|
87
|
+
path=/; Domain=.contentful.com
|
88
|
+
- nlbi_673446=KPescHEmRyqZuKmWYMlkBAAAAACT4oEEg+w5q5/dFgd1HI6u; path=/; Domain=.contentful.com
|
89
|
+
- visid_incap_673446=VSfAGOQRRXuXCcVOoTphWbhlo1wAAAAAQUIPAAAAAAAW+m3Sirh/SBHT8/cEbGqn;
|
90
|
+
expires=Wed, 01 Apr 2020 05:58:41 GMT; path=/; Domain=.contentful.com
|
91
|
+
X-Iinfo:
|
92
|
+
- 14-1296528-1296534 NNNN CT(117 117 0) RT(1554212280316 58) 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
|
+
"sys":{
|
102
|
+
"type":"Space",
|
103
|
+
"id":"no8f22w4syte",
|
104
|
+
"version":1,
|
105
|
+
"createdBy":{
|
106
|
+
"sys":{
|
107
|
+
"type":"Link",
|
108
|
+
"linkType":"User",
|
109
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
110
|
+
}
|
111
|
+
},
|
112
|
+
"createdAt":"2017-02-16T12:33:43Z",
|
113
|
+
"updatedBy":{
|
114
|
+
"sys":{
|
115
|
+
"type":"Link",
|
116
|
+
"linkType":"User",
|
117
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
118
|
+
}
|
119
|
+
},
|
120
|
+
"updatedAt":"2017-02-16T12:33:43Z"
|
121
|
+
}
|
122
|
+
}
|
123
|
+
|
124
|
+
http_version:
|
125
|
+
recorded_at: Tue, 02 Apr 2019 13:38:01 GMT
|
126
|
+
- request:
|
127
|
+
method: put
|
128
|
+
uri: https://api.contentful.com/spaces/no8f22w4syte
|
129
|
+
body:
|
130
|
+
encoding: UTF-8
|
131
|
+
string: '{"name":"bar"}'
|
132
|
+
headers:
|
133
|
+
X-Contentful-User-Agent:
|
134
|
+
- sdk contentful-management.rb/2.8.0; platform ruby/2.5.3; os macOS/16;
|
135
|
+
Authorization:
|
136
|
+
- Bearer <ACCESS_TOKEN>
|
137
|
+
Content-Type:
|
138
|
+
- application/vnd.contentful.management.v1+json
|
139
|
+
X-Contentful-Version:
|
140
|
+
- '1'
|
141
|
+
Version:
|
142
|
+
- '1'
|
143
|
+
Connection:
|
144
|
+
- close
|
145
|
+
Host:
|
146
|
+
- api.contentful.com
|
147
|
+
User-Agent:
|
148
|
+
- http.rb/2.2.2
|
149
|
+
response:
|
150
|
+
status:
|
151
|
+
code: 200
|
152
|
+
message: OK
|
153
|
+
headers:
|
154
|
+
Accept-Ranges:
|
155
|
+
- bytes
|
156
|
+
Access-Control-Allow-Headers:
|
157
|
+
- 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
|
158
|
+
Access-Control-Allow-Methods:
|
159
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
160
|
+
Access-Control-Allow-Origin:
|
161
|
+
- "*"
|
162
|
+
Access-Control-Expose-Headers:
|
163
|
+
- Etag
|
164
|
+
Access-Control-Max-Age:
|
165
|
+
- '1728000'
|
166
|
+
Cache-Control:
|
167
|
+
- max-age=0
|
168
|
+
Cf-Organization-Id:
|
169
|
+
- 4SsuxQCaMaemfIms52Jr8s
|
170
|
+
Cf-Space-Id:
|
171
|
+
- no8f22w4syte
|
172
|
+
Content-Type:
|
173
|
+
- application/vnd.contentful.management.v1+json
|
174
|
+
Contentful-Api:
|
175
|
+
- cma
|
176
|
+
Date:
|
177
|
+
- Tue, 02 Apr 2019 13:38:02 GMT
|
178
|
+
Etag:
|
179
|
+
- W/"bc48cb7f31bbcd44db7493f0f394f148"
|
180
|
+
Referrer-Policy:
|
181
|
+
- strict-origin-when-cross-origin
|
182
|
+
Server:
|
183
|
+
- Contentful
|
184
|
+
Strict-Transport-Security:
|
185
|
+
- max-age=15768000
|
186
|
+
X-Content-Type-Options:
|
187
|
+
- nosniff
|
188
|
+
X-Contentful-Ratelimit-Hour-Limit:
|
189
|
+
- '36000'
|
190
|
+
X-Contentful-Ratelimit-Hour-Remaining:
|
191
|
+
- '35999'
|
192
|
+
X-Contentful-Ratelimit-Reset:
|
193
|
+
- '0'
|
194
|
+
X-Contentful-Ratelimit-Second-Limit:
|
195
|
+
- '10'
|
196
|
+
X-Contentful-Ratelimit-Second-Remaining:
|
197
|
+
- '9'
|
198
|
+
X-Contentful-Request-Id:
|
199
|
+
- 2d2d7aca3e8afe6a8e2c8325b3629bd7
|
200
|
+
X-Download-Options:
|
201
|
+
- noopen
|
202
|
+
X-Frame-Options:
|
203
|
+
- ALLOWALL
|
204
|
+
X-Permitted-Cross-Domain-Policies:
|
205
|
+
- none
|
206
|
+
X-Xss-Protection:
|
207
|
+
- 1; mode=block
|
208
|
+
Content-Length:
|
209
|
+
- '446'
|
210
|
+
Connection:
|
211
|
+
- Close
|
212
|
+
Set-Cookie:
|
213
|
+
- incap_ses_1077_673446=GJvEQYPSTg4D/GoUCkbyDrllo1wAAAAAxCSykB6sAdwdsx5cWJg/1g==;
|
214
|
+
path=/; Domain=.contentful.com
|
215
|
+
- nlbi_673446=jMPodT1zQlpEZtA9YMlkBAAAAAAgTbIKC2TmVZXwcRmvNcTG; path=/; Domain=.contentful.com
|
216
|
+
- visid_incap_673446=7PREQ+wuRgu1JY2yQgY/BLllo1wAAAAAQUIPAAAAAAB4Sq/InAfTBH6FUSZcoYAE;
|
217
|
+
expires=Wed, 01 Apr 2020 05:58:50 GMT; path=/; Domain=.contentful.com
|
218
|
+
X-Iinfo:
|
219
|
+
- 8-164200-164202 NNNN CT(115 116 0) RT(1554212280818 55) q(0 0 3 -1) r(5 5)
|
220
|
+
U5
|
221
|
+
X-Cdn:
|
222
|
+
- Incapsula
|
223
|
+
body:
|
224
|
+
encoding: ASCII-8BIT
|
225
|
+
string: |+
|
226
|
+
{
|
227
|
+
"name":"bar",
|
228
|
+
"sys":{
|
229
|
+
"type":"Space",
|
230
|
+
"id":"no8f22w4syte",
|
231
|
+
"version":2,
|
232
|
+
"createdBy":{
|
233
|
+
"sys":{
|
234
|
+
"type":"Link",
|
235
|
+
"linkType":"User",
|
236
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
237
|
+
}
|
238
|
+
},
|
239
|
+
"createdAt":"2017-02-16T12:33:43Z",
|
240
|
+
"updatedBy":{
|
241
|
+
"sys":{
|
242
|
+
"type":"Link",
|
243
|
+
"linkType":"User",
|
244
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
245
|
+
}
|
246
|
+
},
|
247
|
+
"updatedAt":"2019-04-02T13:38:02Z"
|
248
|
+
}
|
249
|
+
}
|
250
|
+
|
251
|
+
http_version:
|
252
|
+
recorded_at: Tue, 02 Apr 2019 13:38:02 GMT
|
253
|
+
- request:
|
254
|
+
method: get
|
255
|
+
uri: https://api.contentful.com/spaces/no8f22w4syte
|
256
|
+
body:
|
257
|
+
encoding: US-ASCII
|
258
|
+
string: ''
|
259
|
+
headers:
|
260
|
+
X-Contentful-User-Agent:
|
261
|
+
- sdk contentful-management.rb/2.8.0; platform ruby/2.5.3; os macOS/16;
|
262
|
+
Authorization:
|
263
|
+
- Bearer <ACCESS_TOKEN>
|
264
|
+
Content-Type:
|
265
|
+
- application/vnd.contentful.management.v1+json
|
266
|
+
Connection:
|
267
|
+
- close
|
268
|
+
Host:
|
269
|
+
- api.contentful.com
|
270
|
+
User-Agent:
|
271
|
+
- http.rb/2.2.2
|
272
|
+
response:
|
273
|
+
status:
|
274
|
+
code: 200
|
275
|
+
message: OK
|
276
|
+
headers:
|
277
|
+
Accept-Ranges:
|
278
|
+
- bytes
|
279
|
+
Access-Control-Allow-Headers:
|
280
|
+
- 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
|
281
|
+
Access-Control-Allow-Methods:
|
282
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
283
|
+
Access-Control-Allow-Origin:
|
284
|
+
- "*"
|
285
|
+
Access-Control-Expose-Headers:
|
286
|
+
- Etag
|
287
|
+
Access-Control-Max-Age:
|
288
|
+
- '1728000'
|
289
|
+
Cache-Control:
|
290
|
+
- max-age=0
|
291
|
+
Cf-Organization-Id:
|
292
|
+
- 4SsuxQCaMaemfIms52Jr8s
|
293
|
+
Cf-Space-Id:
|
294
|
+
- no8f22w4syte
|
295
|
+
Content-Type:
|
296
|
+
- application/vnd.contentful.management.v1+json
|
297
|
+
Contentful-Api:
|
298
|
+
- cma
|
299
|
+
Date:
|
300
|
+
- Tue, 02 Apr 2019 13:38:02 GMT
|
301
|
+
Etag:
|
302
|
+
- W/"bc48cb7f31bbcd44db7493f0f394f148"
|
303
|
+
Referrer-Policy:
|
304
|
+
- strict-origin-when-cross-origin
|
305
|
+
Server:
|
306
|
+
- Contentful
|
307
|
+
Strict-Transport-Security:
|
308
|
+
- max-age=15768000
|
309
|
+
X-Content-Type-Options:
|
310
|
+
- nosniff
|
311
|
+
X-Contentful-Ratelimit-Hour-Limit:
|
312
|
+
- '36000'
|
313
|
+
X-Contentful-Ratelimit-Hour-Remaining:
|
314
|
+
- '35998'
|
315
|
+
X-Contentful-Ratelimit-Reset:
|
316
|
+
- '0'
|
317
|
+
X-Contentful-Ratelimit-Second-Limit:
|
318
|
+
- '10'
|
319
|
+
X-Contentful-Ratelimit-Second-Remaining:
|
320
|
+
- '8'
|
321
|
+
X-Contentful-Request-Id:
|
322
|
+
- '08697562ca1ec604359848093ea2ce58'
|
323
|
+
X-Download-Options:
|
324
|
+
- noopen
|
325
|
+
X-Frame-Options:
|
326
|
+
- ALLOWALL
|
327
|
+
X-Permitted-Cross-Domain-Policies:
|
328
|
+
- none
|
329
|
+
X-Xss-Protection:
|
330
|
+
- 1; mode=block
|
331
|
+
Content-Length:
|
332
|
+
- '446'
|
333
|
+
Connection:
|
334
|
+
- Close
|
335
|
+
Set-Cookie:
|
336
|
+
- incap_ses_1077_673446=fRaMSIgSEmsy/GoUCkbyDrllo1wAAAAANzYYIt2ucjbW68PWvy/+5w==;
|
337
|
+
path=/; Domain=.contentful.com
|
338
|
+
- nlbi_673446=tbNvHEmndSNSTC+HYMlkBAAAAACZ+GnaTX1o9vsIEvnAj4xE; path=/; Domain=.contentful.com
|
339
|
+
- visid_incap_673446=ufwe7hZRSSmsb5U3oQAV0bllo1wAAAAAQUIPAAAAAACtRCf2yIHqzCtViLjf6GWn;
|
340
|
+
expires=Wed, 01 Apr 2020 05:58:42 GMT; path=/; Domain=.contentful.com
|
341
|
+
X-Iinfo:
|
342
|
+
- 5-1476850-1476853 NNNN CT(106 107 0) RT(1554212281460 50) q(0 0 2 -1) r(3
|
343
|
+
3) U5
|
344
|
+
X-Cdn:
|
345
|
+
- Incapsula
|
346
|
+
body:
|
347
|
+
encoding: ASCII-8BIT
|
348
|
+
string: |+
|
349
|
+
{
|
350
|
+
"name":"bar",
|
351
|
+
"sys":{
|
352
|
+
"type":"Space",
|
353
|
+
"id":"no8f22w4syte",
|
354
|
+
"version":2,
|
355
|
+
"createdBy":{
|
356
|
+
"sys":{
|
357
|
+
"type":"Link",
|
358
|
+
"linkType":"User",
|
359
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
360
|
+
}
|
361
|
+
},
|
362
|
+
"createdAt":"2017-02-16T12:33:43Z",
|
363
|
+
"updatedBy":{
|
364
|
+
"sys":{
|
365
|
+
"type":"Link",
|
366
|
+
"linkType":"User",
|
367
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
368
|
+
}
|
369
|
+
},
|
370
|
+
"updatedAt":"2019-04-02T13:38:02Z"
|
371
|
+
}
|
372
|
+
}
|
373
|
+
|
374
|
+
http_version:
|
375
|
+
recorded_at: Tue, 02 Apr 2019 13:38:02 GMT
|
376
|
+
recorded_with: VCR 4.0.0
|
@@ -0,0 +1,448 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.contentful.com/spaces/facgnwwgj5fe/webhook_definitions/0Kgjs0DQizupIbmSHcyaFM
|
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:18:40 GMT
|
51
|
+
Etag:
|
52
|
+
- W/"061d44a61a20d842c7133f3e49833e58"
|
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
|
+
- 737341b82903eb2c53cf0cb809fe79d7
|
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
|
+
- '880'
|
83
|
+
Connection:
|
84
|
+
- Close
|
85
|
+
Set-Cookie:
|
86
|
+
- incap_ses_1077_673446=KvcJZIGtlAZun2cUCkbyDh9To1wAAAAAXhX1b2qhOTtyg0Saptd3gg==;
|
87
|
+
path=/; Domain=.contentful.com
|
88
|
+
- nlbi_673446=7Hune9fdYnqPNBi/YMlkBAAAAAA1nfwLUPCeyfm7bFmhNs0z; path=/; Domain=.contentful.com
|
89
|
+
- visid_incap_673446=bf9x+DXNTWKGOXyHBx2r9B9To1wAAAAAQUIPAAAAAACmXBBBnr3cNRN6hnKcnC9j;
|
90
|
+
expires=Wed, 01 Apr 2020 05:58:22 GMT; path=/; Domain=.contentful.com
|
91
|
+
X-Iinfo:
|
92
|
+
- 3-788748-788750 NNNN CT(124 126 0) RT(1554207519098 54) q(0 0 3 -1) r(4 4)
|
93
|
+
U5
|
94
|
+
X-Cdn:
|
95
|
+
- Incapsula
|
96
|
+
body:
|
97
|
+
encoding: ASCII-8BIT
|
98
|
+
string: |+
|
99
|
+
{
|
100
|
+
"name":"test_ruby_filters",
|
101
|
+
"url":"https://www.example.com",
|
102
|
+
"httpBasicUsername":null,
|
103
|
+
"topics":[
|
104
|
+
"Entry.*"
|
105
|
+
],
|
106
|
+
"filters":[
|
107
|
+
{
|
108
|
+
"equals":[
|
109
|
+
{
|
110
|
+
"doc":"sys.environment.sys.id"
|
111
|
+
},
|
112
|
+
"some-env-id"
|
113
|
+
]
|
114
|
+
}
|
115
|
+
],
|
116
|
+
"transformation":null,
|
117
|
+
"sys":{
|
118
|
+
"type":"WebhookDefinition",
|
119
|
+
"id":"0Kgjs0DQizupIbmSHcyaFM",
|
120
|
+
"version":2,
|
121
|
+
"space":{
|
122
|
+
"sys":{
|
123
|
+
"type":"Link",
|
124
|
+
"linkType":"Space",
|
125
|
+
"id":"facgnwwgj5fe"
|
126
|
+
}
|
127
|
+
},
|
128
|
+
"createdBy":{
|
129
|
+
"sys":{
|
130
|
+
"type":"Link",
|
131
|
+
"linkType":"User",
|
132
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
133
|
+
}
|
134
|
+
},
|
135
|
+
"createdAt":"2018-08-17T12:00:45Z",
|
136
|
+
"updatedBy":{
|
137
|
+
"sys":{
|
138
|
+
"type":"Link",
|
139
|
+
"linkType":"User",
|
140
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
141
|
+
}
|
142
|
+
},
|
143
|
+
"updatedAt":"2019-04-02T12:18:31Z"
|
144
|
+
},
|
145
|
+
"headers":[]
|
146
|
+
}
|
147
|
+
|
148
|
+
http_version:
|
149
|
+
recorded_at: Tue, 02 Apr 2019 12:18:39 GMT
|
150
|
+
- request:
|
151
|
+
method: put
|
152
|
+
uri: https://api.contentful.com/spaces/facgnwwgj5fe/webhook_definitions/0Kgjs0DQizupIbmSHcyaFM
|
153
|
+
body:
|
154
|
+
encoding: UTF-8
|
155
|
+
string: '{"url":"https://www.example2.com","name":"test_ruby_filters","topics":["Entry.*"],"headers":[],"httpBasicUsername":null,"filters":[{"equals":[{"doc":"sys.environment.sys.id"},"some-env-id"]}],"transformation":null}'
|
156
|
+
headers:
|
157
|
+
X-Contentful-User-Agent:
|
158
|
+
- sdk contentful-management.rb/2.8.0; platform ruby/2.5.3; os macOS/16;
|
159
|
+
Authorization:
|
160
|
+
- Bearer <ACCESS_TOKEN>
|
161
|
+
Content-Type:
|
162
|
+
- application/vnd.contentful.management.v1+json
|
163
|
+
X-Contentful-Version:
|
164
|
+
- '2'
|
165
|
+
Version:
|
166
|
+
- '2'
|
167
|
+
Connection:
|
168
|
+
- close
|
169
|
+
Host:
|
170
|
+
- api.contentful.com
|
171
|
+
User-Agent:
|
172
|
+
- http.rb/2.2.2
|
173
|
+
response:
|
174
|
+
status:
|
175
|
+
code: 200
|
176
|
+
message: OK
|
177
|
+
headers:
|
178
|
+
Accept-Ranges:
|
179
|
+
- bytes
|
180
|
+
Access-Control-Allow-Headers:
|
181
|
+
- 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
|
182
|
+
Access-Control-Allow-Methods:
|
183
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
184
|
+
Access-Control-Allow-Origin:
|
185
|
+
- "*"
|
186
|
+
Access-Control-Expose-Headers:
|
187
|
+
- Etag
|
188
|
+
Access-Control-Max-Age:
|
189
|
+
- '1728000'
|
190
|
+
Cache-Control:
|
191
|
+
- max-age=0
|
192
|
+
Cf-Organization-Id:
|
193
|
+
- 4SsuxQCaMaemfIms52Jr8s
|
194
|
+
Cf-Space-Id:
|
195
|
+
- facgnwwgj5fe
|
196
|
+
Content-Type:
|
197
|
+
- application/vnd.contentful.management.v1+json
|
198
|
+
Contentful-Api:
|
199
|
+
- cma
|
200
|
+
Date:
|
201
|
+
- Tue, 02 Apr 2019 12:18:41 GMT
|
202
|
+
Etag:
|
203
|
+
- W/"d3da0b7217c181bef71a1d18aee438d3"
|
204
|
+
Referrer-Policy:
|
205
|
+
- strict-origin-when-cross-origin
|
206
|
+
Server:
|
207
|
+
- Contentful
|
208
|
+
Strict-Transport-Security:
|
209
|
+
- max-age=15768000
|
210
|
+
X-Content-Type-Options:
|
211
|
+
- nosniff
|
212
|
+
X-Contentful-Ratelimit-Hour-Limit:
|
213
|
+
- '36000'
|
214
|
+
X-Contentful-Ratelimit-Hour-Remaining:
|
215
|
+
- '35998'
|
216
|
+
X-Contentful-Ratelimit-Reset:
|
217
|
+
- '0'
|
218
|
+
X-Contentful-Ratelimit-Second-Limit:
|
219
|
+
- '10'
|
220
|
+
X-Contentful-Ratelimit-Second-Remaining:
|
221
|
+
- '8'
|
222
|
+
X-Contentful-Request-Id:
|
223
|
+
- 052451e4e59f358bba44c40a1052be37
|
224
|
+
X-Download-Options:
|
225
|
+
- noopen
|
226
|
+
X-Frame-Options:
|
227
|
+
- ALLOWALL
|
228
|
+
X-Permitted-Cross-Domain-Policies:
|
229
|
+
- none
|
230
|
+
X-Xss-Protection:
|
231
|
+
- 1; mode=block
|
232
|
+
Content-Length:
|
233
|
+
- '881'
|
234
|
+
Connection:
|
235
|
+
- Close
|
236
|
+
Set-Cookie:
|
237
|
+
- incap_ses_1077_673446=fk31ElvHQDCSn2cUCkbyDiBTo1wAAAAALmcMOgx9vOsitbsvc/stRQ==;
|
238
|
+
path=/; Domain=.contentful.com
|
239
|
+
- nlbi_673446=DHFBKrFhMHLhQRzRYMlkBAAAAACPxONuTzl0O+h21rmWBOyu; path=/; Domain=.contentful.com
|
240
|
+
- visid_incap_673446=YUy36j+/QQuy901CHaxDDyBTo1wAAAAAQUIPAAAAAABF23BThcUdgvmnK2MwNuOZ;
|
241
|
+
expires=Wed, 01 Apr 2020 05:58:22 GMT; path=/; Domain=.contentful.com
|
242
|
+
X-Iinfo:
|
243
|
+
- 4-938753-938756 NNNN CT(116 116 0) RT(1554207519704 56) q(0 0 2 -1) r(5 5)
|
244
|
+
U5
|
245
|
+
X-Cdn:
|
246
|
+
- Incapsula
|
247
|
+
body:
|
248
|
+
encoding: ASCII-8BIT
|
249
|
+
string: |+
|
250
|
+
{
|
251
|
+
"name":"test_ruby_filters",
|
252
|
+
"url":"https://www.example2.com",
|
253
|
+
"httpBasicUsername":null,
|
254
|
+
"topics":[
|
255
|
+
"Entry.*"
|
256
|
+
],
|
257
|
+
"filters":[
|
258
|
+
{
|
259
|
+
"equals":[
|
260
|
+
{
|
261
|
+
"doc":"sys.environment.sys.id"
|
262
|
+
},
|
263
|
+
"some-env-id"
|
264
|
+
]
|
265
|
+
}
|
266
|
+
],
|
267
|
+
"transformation":null,
|
268
|
+
"sys":{
|
269
|
+
"type":"WebhookDefinition",
|
270
|
+
"id":"0Kgjs0DQizupIbmSHcyaFM",
|
271
|
+
"version":3,
|
272
|
+
"space":{
|
273
|
+
"sys":{
|
274
|
+
"type":"Link",
|
275
|
+
"linkType":"Space",
|
276
|
+
"id":"facgnwwgj5fe"
|
277
|
+
}
|
278
|
+
},
|
279
|
+
"createdBy":{
|
280
|
+
"sys":{
|
281
|
+
"type":"Link",
|
282
|
+
"linkType":"User",
|
283
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
284
|
+
}
|
285
|
+
},
|
286
|
+
"createdAt":"2018-08-17T12:00:45Z",
|
287
|
+
"updatedBy":{
|
288
|
+
"sys":{
|
289
|
+
"type":"Link",
|
290
|
+
"linkType":"User",
|
291
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
292
|
+
}
|
293
|
+
},
|
294
|
+
"updatedAt":"2019-04-02T12:18:41Z"
|
295
|
+
},
|
296
|
+
"headers":[]
|
297
|
+
}
|
298
|
+
|
299
|
+
http_version:
|
300
|
+
recorded_at: Tue, 02 Apr 2019 12:18:40 GMT
|
301
|
+
- request:
|
302
|
+
method: get
|
303
|
+
uri: https://api.contentful.com/spaces/facgnwwgj5fe/webhook_definitions/0Kgjs0DQizupIbmSHcyaFM
|
304
|
+
body:
|
305
|
+
encoding: US-ASCII
|
306
|
+
string: ''
|
307
|
+
headers:
|
308
|
+
X-Contentful-User-Agent:
|
309
|
+
- sdk contentful-management.rb/2.8.0; platform ruby/2.5.3; os macOS/16;
|
310
|
+
Authorization:
|
311
|
+
- Bearer <ACCESS_TOKEN>
|
312
|
+
Content-Type:
|
313
|
+
- application/vnd.contentful.management.v1+json
|
314
|
+
Connection:
|
315
|
+
- close
|
316
|
+
Host:
|
317
|
+
- api.contentful.com
|
318
|
+
User-Agent:
|
319
|
+
- http.rb/2.2.2
|
320
|
+
response:
|
321
|
+
status:
|
322
|
+
code: 200
|
323
|
+
message: OK
|
324
|
+
headers:
|
325
|
+
Accept-Ranges:
|
326
|
+
- bytes
|
327
|
+
Access-Control-Allow-Headers:
|
328
|
+
- 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
|
329
|
+
Access-Control-Allow-Methods:
|
330
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
331
|
+
Access-Control-Allow-Origin:
|
332
|
+
- "*"
|
333
|
+
Access-Control-Expose-Headers:
|
334
|
+
- Etag
|
335
|
+
Access-Control-Max-Age:
|
336
|
+
- '1728000'
|
337
|
+
Cache-Control:
|
338
|
+
- max-age=0
|
339
|
+
Cf-Organization-Id:
|
340
|
+
- 4SsuxQCaMaemfIms52Jr8s
|
341
|
+
Cf-Space-Id:
|
342
|
+
- facgnwwgj5fe
|
343
|
+
Content-Type:
|
344
|
+
- application/vnd.contentful.management.v1+json
|
345
|
+
Contentful-Api:
|
346
|
+
- cma
|
347
|
+
Date:
|
348
|
+
- Tue, 02 Apr 2019 12:18:41 GMT
|
349
|
+
Etag:
|
350
|
+
- W/"d3da0b7217c181bef71a1d18aee438d3"
|
351
|
+
Referrer-Policy:
|
352
|
+
- strict-origin-when-cross-origin
|
353
|
+
Server:
|
354
|
+
- Contentful
|
355
|
+
Strict-Transport-Security:
|
356
|
+
- max-age=15768000
|
357
|
+
X-Content-Type-Options:
|
358
|
+
- nosniff
|
359
|
+
X-Contentful-Ratelimit-Hour-Limit:
|
360
|
+
- '36000'
|
361
|
+
X-Contentful-Ratelimit-Hour-Remaining:
|
362
|
+
- '35999'
|
363
|
+
X-Contentful-Ratelimit-Reset:
|
364
|
+
- '0'
|
365
|
+
X-Contentful-Ratelimit-Second-Limit:
|
366
|
+
- '10'
|
367
|
+
X-Contentful-Ratelimit-Second-Remaining:
|
368
|
+
- '9'
|
369
|
+
X-Contentful-Request-Id:
|
370
|
+
- 37eeb792a267300d8fdcea5aeb6e2f6e
|
371
|
+
X-Download-Options:
|
372
|
+
- noopen
|
373
|
+
X-Frame-Options:
|
374
|
+
- ALLOWALL
|
375
|
+
X-Permitted-Cross-Domain-Policies:
|
376
|
+
- none
|
377
|
+
X-Xss-Protection:
|
378
|
+
- 1; mode=block
|
379
|
+
Content-Length:
|
380
|
+
- '881'
|
381
|
+
Connection:
|
382
|
+
- Close
|
383
|
+
Set-Cookie:
|
384
|
+
- incap_ses_1077_673446=qREVZfhd+jvBn2cUCkbyDiBTo1wAAAAACtZ3lPpTHbZotYwZaXHPpw==;
|
385
|
+
path=/; Domain=.contentful.com
|
386
|
+
- nlbi_673446=OTxMHxopPAYYwDi5YMlkBAAAAADWqK+S/mLqzNeAkzFgdBwa; path=/; Domain=.contentful.com
|
387
|
+
- visid_incap_673446=yWG9UjARRAytwWoB52fWoCBTo1wAAAAAQUIPAAAAAAC2Vq95g3X0T8/Mqh5GEADY;
|
388
|
+
expires=Wed, 01 Apr 2020 05:58:46 GMT; path=/; Domain=.contentful.com
|
389
|
+
X-Iinfo:
|
390
|
+
- 11-280725-280730 NNNN CT(118 118 0) RT(1554207520316 53) q(0 0 3 -1) r(4 4)
|
391
|
+
U5
|
392
|
+
X-Cdn:
|
393
|
+
- Incapsula
|
394
|
+
body:
|
395
|
+
encoding: ASCII-8BIT
|
396
|
+
string: |+
|
397
|
+
{
|
398
|
+
"name":"test_ruby_filters",
|
399
|
+
"url":"https://www.example2.com",
|
400
|
+
"httpBasicUsername":null,
|
401
|
+
"topics":[
|
402
|
+
"Entry.*"
|
403
|
+
],
|
404
|
+
"filters":[
|
405
|
+
{
|
406
|
+
"equals":[
|
407
|
+
{
|
408
|
+
"doc":"sys.environment.sys.id"
|
409
|
+
},
|
410
|
+
"some-env-id"
|
411
|
+
]
|
412
|
+
}
|
413
|
+
],
|
414
|
+
"transformation":null,
|
415
|
+
"sys":{
|
416
|
+
"type":"WebhookDefinition",
|
417
|
+
"id":"0Kgjs0DQizupIbmSHcyaFM",
|
418
|
+
"version":3,
|
419
|
+
"space":{
|
420
|
+
"sys":{
|
421
|
+
"type":"Link",
|
422
|
+
"linkType":"Space",
|
423
|
+
"id":"facgnwwgj5fe"
|
424
|
+
}
|
425
|
+
},
|
426
|
+
"createdBy":{
|
427
|
+
"sys":{
|
428
|
+
"type":"Link",
|
429
|
+
"linkType":"User",
|
430
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
431
|
+
}
|
432
|
+
},
|
433
|
+
"createdAt":"2018-08-17T12:00:45Z",
|
434
|
+
"updatedBy":{
|
435
|
+
"sys":{
|
436
|
+
"type":"Link",
|
437
|
+
"linkType":"User",
|
438
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
439
|
+
}
|
440
|
+
},
|
441
|
+
"updatedAt":"2019-04-02T12:18:41Z"
|
442
|
+
},
|
443
|
+
"headers":[]
|
444
|
+
}
|
445
|
+
|
446
|
+
http_version:
|
447
|
+
recorded_at: Tue, 02 Apr 2019 12:18:40 GMT
|
448
|
+
recorded_with: VCR 4.0.0
|