contentful-management 2.12.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +29 -0
  3. data/README.md +24 -0
  4. data/contentful-management.gemspec +1 -1
  5. data/lib/contentful/management/asset.rb +2 -0
  6. data/lib/contentful/management/entry.rb +16 -12
  7. data/lib/contentful/management/field.rb +3 -1
  8. data/lib/contentful/management/organization.rb +10 -0
  9. data/lib/contentful/management/organization_user_methods_factory.rb +22 -0
  10. data/lib/contentful/management/resource.rb +7 -4
  11. data/lib/contentful/management/resource/metadata.rb +44 -0
  12. data/lib/contentful/management/resource_builder.rb +4 -2
  13. data/lib/contentful/management/space.rb +10 -0
  14. data/lib/contentful/management/space_user_methods_factory.rb +23 -0
  15. data/lib/contentful/management/tag.rb +14 -0
  16. data/lib/contentful/management/user.rb +7 -1
  17. data/lib/contentful/management/version.rb +1 -1
  18. data/spec/fixtures/vcr_cassettes/asset/issue_219.yml +442 -0
  19. data/spec/fixtures/vcr_cassettes/entry/issue_215_1.yml +905 -0
  20. data/spec/fixtures/vcr_cassettes/entry/issue_215_2.yml +899 -0
  21. data/spec/fixtures/vcr_cassettes/entry/issue_215_3.yml +893 -0
  22. data/spec/fixtures/vcr_cassettes/entry/issue_219.yml +535 -0
  23. data/spec/fixtures/vcr_cassettes/organization/user.yml +238 -0
  24. data/spec/fixtures/vcr_cassettes/organization/users.yml +233 -0
  25. data/spec/fixtures/vcr_cassettes/space/user.yml +254 -0
  26. data/spec/fixtures/vcr_cassettes/space/users.yml +236 -0
  27. data/spec/lib/contentful/management/asset_spec.rb +31 -0
  28. data/spec/lib/contentful/management/entry_spec.rb +77 -0
  29. data/spec/lib/contentful/management/organization_spec.rb +30 -0
  30. data/spec/lib/contentful/management/space_spec.rb +30 -0
  31. metadata +31 -9
@@ -0,0 +1,893 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.contentful.com/spaces/vuo79u060fmw
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ X-Contentful-User-Agent:
11
+ - sdk contentful-management.rb/2.12.0; platform ruby/2.6.3; os macOS/18;
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/4.4.1
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,X-Contentful-Parent-Id,x-contentful-validate-only,X-Contentful-Skip-UI-Draft-Validation,X-Contentful-Marketplace,X-Contentful-UI-Content-Auto-Save
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
+ - vuo79u060fmw
45
+ Content-Type:
46
+ - application/vnd.contentful.management.v1+json
47
+ Contentful-Api:
48
+ - cma
49
+ Date:
50
+ - Thu, 02 Jul 2020 11:16:26 GMT
51
+ Etag:
52
+ - W/"600c18d721048034dcdaf8c7b867fe49"
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
+ - '05764915ddad37a29bfb191a03796ea1'
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
+ - '609'
83
+ Connection:
84
+ - Close
85
+ Set-Cookie:
86
+ - incap_ses_878_673446=aYtjUVYBcC4N/T3LXUgvDArC/V4AAAAAFQIPvUQ8yVG/s1aB0ACP8Q==;
87
+ path=/; Domain=.contentful.com
88
+ - nlbi_673446=4//XOzTvFnIZoDCeYMlkBAAAAAAK9Xp6Gs9tLCqsx37r1Ixg; path=/; Domain=.contentful.com
89
+ - visid_incap_673446=FYicBx/bQMGsdROPZESO2ArC/V4AAAAAQUIPAAAAAACwlUdGGP4DcBbFT7rdJg3f;
90
+ expires=Fri, 02 Jul 2021 06:56:32 GMT; HttpOnly; path=/; Domain=.contentful.com
91
+ X-Cdn:
92
+ - Incapsula
93
+ X-Iinfo:
94
+ - 13-43399208-43399603 NNNY CT(0 0 0) RT(1593688584397 1659) q(0 0 0 -1) r(2
95
+ 2) U5
96
+ body:
97
+ encoding: ASCII-8BIT
98
+ string: |+
99
+ {
100
+ "name":"management.rb - #215",
101
+ "sys":{
102
+ "type":"Space",
103
+ "id":"vuo79u060fmw",
104
+ "version":1,
105
+ "createdBy":{
106
+ "sys":{
107
+ "type":"Link",
108
+ "linkType":"User",
109
+ "id":"4SejVrWT96dvL9IV4Nb7sQ"
110
+ }
111
+ },
112
+ "createdAt":"2020-07-02T10:40:30Z",
113
+ "updatedBy":{
114
+ "sys":{
115
+ "type":"Link",
116
+ "linkType":"User",
117
+ "id":"4SejVrWT96dvL9IV4Nb7sQ"
118
+ }
119
+ },
120
+ "updatedAt":"2020-07-02T10:40:30Z",
121
+ "organization":{
122
+ "sys":{
123
+ "type":"Link",
124
+ "linkType":"Organization",
125
+ "id":"4SsuxQCaMaemfIms52Jr8s"
126
+ }
127
+ }
128
+ }
129
+ }
130
+
131
+ http_version:
132
+ recorded_at: Thu, 02 Jul 2020 11:16:26 GMT
133
+ - request:
134
+ method: get
135
+ uri: https://api.contentful.com/spaces/vuo79u060fmw/environments/master
136
+ body:
137
+ encoding: UTF-8
138
+ string: ''
139
+ headers:
140
+ X-Contentful-User-Agent:
141
+ - sdk contentful-management.rb/2.12.0; platform ruby/2.6.3; os macOS/18;
142
+ Authorization:
143
+ - Bearer <ACCESS_TOKEN>
144
+ Content-Type:
145
+ - application/vnd.contentful.management.v1+json
146
+ Connection:
147
+ - close
148
+ Host:
149
+ - api.contentful.com
150
+ User-Agent:
151
+ - http.rb/4.4.1
152
+ response:
153
+ status:
154
+ code: 200
155
+ message: OK
156
+ headers:
157
+ Accept-Ranges:
158
+ - bytes
159
+ Access-Control-Allow-Headers:
160
+ - 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,X-Contentful-Parent-Id,x-contentful-validate-only,X-Contentful-Skip-UI-Draft-Validation,X-Contentful-Marketplace,X-Contentful-UI-Content-Auto-Save
161
+ Access-Control-Allow-Methods:
162
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
163
+ Access-Control-Allow-Origin:
164
+ - "*"
165
+ Access-Control-Expose-Headers:
166
+ - Etag
167
+ Access-Control-Max-Age:
168
+ - '1728000'
169
+ Cache-Control:
170
+ - max-age=0
171
+ Cf-Organization-Id:
172
+ - 4SsuxQCaMaemfIms52Jr8s
173
+ Cf-Space-Id:
174
+ - vuo79u060fmw
175
+ Content-Type:
176
+ - application/vnd.contentful.management.v1+json
177
+ Contentful-Api:
178
+ - cma
179
+ Date:
180
+ - Thu, 02 Jul 2020 11:16:26 GMT
181
+ Etag:
182
+ - W/"a282fd54c09fd4a1e6f9f8e3cec37e64"
183
+ Referrer-Policy:
184
+ - strict-origin-when-cross-origin
185
+ Server:
186
+ - Contentful
187
+ Strict-Transport-Security:
188
+ - max-age=15768000
189
+ X-Content-Type-Options:
190
+ - nosniff
191
+ X-Contentful-Ratelimit-Hour-Limit:
192
+ - '36000'
193
+ X-Contentful-Ratelimit-Hour-Remaining:
194
+ - '35998'
195
+ X-Contentful-Ratelimit-Reset:
196
+ - '0'
197
+ X-Contentful-Ratelimit-Second-Limit:
198
+ - '10'
199
+ X-Contentful-Ratelimit-Second-Remaining:
200
+ - '8'
201
+ X-Contentful-Request-Id:
202
+ - 908bc7c1d2c51a0fba3e041efb188663
203
+ X-Download-Options:
204
+ - noopen
205
+ X-Frame-Options:
206
+ - ALLOWALL
207
+ X-Permitted-Cross-Domain-Policies:
208
+ - none
209
+ X-Xss-Protection:
210
+ - 1; mode=block
211
+ Content-Length:
212
+ - '688'
213
+ Connection:
214
+ - Close
215
+ Set-Cookie:
216
+ - incap_ses_878_673446=D0ntaaSwxXRj/T3LXUgvDArC/V4AAAAAfg7AngTqoGl+iNBFocEeHA==;
217
+ path=/; Domain=.contentful.com
218
+ - nlbi_673446=f5m3bS/AzDdOBYBbYMlkBAAAAACoazf0MAhRLActDefxRYP2; path=/; Domain=.contentful.com
219
+ - visid_incap_673446=RNJD2YSXQWKFE87GtYADygrC/V4AAAAAQUIPAAAAAAAuXkXDnhPvlDls4hAhiMeq;
220
+ expires=Fri, 02 Jul 2021 06:56:32 GMT; HttpOnly; path=/; Domain=.contentful.com
221
+ X-Cdn:
222
+ - Incapsula
223
+ X-Iinfo:
224
+ - 11-24115418-24115426 NNNY CT(0 0 0) RT(1593688586479 64) q(0 0 0 -1) r(1 1)
225
+ U5
226
+ body:
227
+ encoding: ASCII-8BIT
228
+ string: |+
229
+ {
230
+ "name":"master",
231
+ "sys":{
232
+ "type":"Environment",
233
+ "id":"master",
234
+ "version":1,
235
+ "space":{
236
+ "sys":{
237
+ "type":"Link",
238
+ "linkType":"Space",
239
+ "id":"vuo79u060fmw"
240
+ }
241
+ },
242
+ "status":{
243
+ "sys":{
244
+ "type":"Link",
245
+ "linkType":"Status",
246
+ "id":"ready"
247
+ }
248
+ },
249
+ "createdBy":{
250
+ "sys":{
251
+ "type":"Link",
252
+ "linkType":"User",
253
+ "id":"4SejVrWT96dvL9IV4Nb7sQ"
254
+ }
255
+ },
256
+ "createdAt":"2020-07-02T10:40:30Z",
257
+ "updatedBy":{
258
+ "sys":{
259
+ "type":"Link",
260
+ "linkType":"User",
261
+ "id":"4SejVrWT96dvL9IV4Nb7sQ"
262
+ }
263
+ },
264
+ "updatedAt":"2020-07-02T10:40:30Z"
265
+ }
266
+ }
267
+
268
+ http_version:
269
+ recorded_at: Thu, 02 Jul 2020 11:16:26 GMT
270
+ - request:
271
+ method: get
272
+ uri: https://api.contentful.com/spaces/vuo79u060fmw/environments/master/entries/4aVBlJajh2rZb7ybW2tY2X
273
+ body:
274
+ encoding: UTF-8
275
+ string: ''
276
+ headers:
277
+ X-Contentful-User-Agent:
278
+ - sdk contentful-management.rb/2.12.0; platform ruby/2.6.3; os macOS/18;
279
+ Authorization:
280
+ - Bearer <ACCESS_TOKEN>
281
+ Content-Type:
282
+ - application/vnd.contentful.management.v1+json
283
+ Connection:
284
+ - close
285
+ Host:
286
+ - api.contentful.com
287
+ User-Agent:
288
+ - http.rb/4.4.1
289
+ response:
290
+ status:
291
+ code: 200
292
+ message: OK
293
+ headers:
294
+ Access-Control-Allow-Headers:
295
+ - 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,X-Contentful-Parent-Id,x-contentful-validate-only,X-Contentful-Skip-UI-Draft-Validation,X-Contentful-Marketplace,X-Contentful-UI-Content-Auto-Save
296
+ Access-Control-Allow-Methods:
297
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
298
+ Access-Control-Allow-Origin:
299
+ - "*"
300
+ Access-Control-Expose-Headers:
301
+ - Etag
302
+ Access-Control-Max-Age:
303
+ - '1728000'
304
+ Cf-Environment-Id:
305
+ - master
306
+ Cf-Environment-Uuid:
307
+ - master
308
+ Cf-Space-Id:
309
+ - vuo79u060fmw
310
+ Content-Type:
311
+ - application/vnd.contentful.management.v1+json
312
+ Contentful-Api:
313
+ - cma
314
+ Date:
315
+ - Thu, 02 Jul 2020 11:16:27 GMT
316
+ Etag:
317
+ - '"12800990430462666890"'
318
+ Server:
319
+ - Contentful
320
+ Strict-Transport-Security:
321
+ - max-age=15768000
322
+ X-Content-Type-Options:
323
+ - nosniff
324
+ X-Contentful-Ratelimit-Hour-Limit:
325
+ - '36000'
326
+ X-Contentful-Ratelimit-Hour-Remaining:
327
+ - '35999'
328
+ X-Contentful-Ratelimit-Reset:
329
+ - '0'
330
+ X-Contentful-Ratelimit-Second-Limit:
331
+ - '10'
332
+ X-Contentful-Ratelimit-Second-Remaining:
333
+ - '9'
334
+ X-Contentful-Request-Id:
335
+ - 4a11f758d73dc32f68ee7c4fcfcca0c8
336
+ Content-Length:
337
+ - '1258'
338
+ Connection:
339
+ - Close
340
+ Set-Cookie:
341
+ - incap_ses_878_673446=giVCOC807wcb/j3LXUgvDAvC/V4AAAAAkZRDPr8/877QkZB/iQr5Gg==;
342
+ path=/; Domain=.contentful.com
343
+ - nlbi_673446=8jbLAX9dODNn0BHpYMlkBAAAAAD0p0flMXNYdCvWFBTaEzh7; path=/; Domain=.contentful.com
344
+ - visid_incap_673446=qZbMvtx7RdmwadEAx7vxvQvC/V4AAAAAQUIPAAAAAAAXzfgG7XL4nCWBtHZ307Vs;
345
+ expires=Fri, 02 Jul 2021 06:56:32 GMT; HttpOnly; path=/; Domain=.contentful.com
346
+ X-Cdn:
347
+ - Incapsula
348
+ X-Iinfo:
349
+ - 6-8164151-8164153 NNNY CT(0 0 0) RT(1593688586999 58) q(0 0 0 -1) r(3 3) U5
350
+ body:
351
+ encoding: ASCII-8BIT
352
+ string: |
353
+ {
354
+ "metadata": {
355
+ "tags": []
356
+ },
357
+ "sys": {
358
+ "space": {
359
+ "sys": {
360
+ "type": "Link",
361
+ "linkType": "Space",
362
+ "id": "vuo79u060fmw"
363
+ }
364
+ },
365
+ "id": "4aVBlJajh2rZb7ybW2tY2X",
366
+ "type": "Entry",
367
+ "createdAt": "2020-07-02T10:43:07.669Z",
368
+ "updatedAt": "2020-07-02T10:43:21.608Z",
369
+ "environment": {
370
+ "sys": {
371
+ "id": "master",
372
+ "type": "Link",
373
+ "linkType": "Environment"
374
+ }
375
+ },
376
+ "publishedVersion": 2,
377
+ "publishedAt": "2020-07-02T10:43:21.608Z",
378
+ "firstPublishedAt": "2020-07-02T10:43:21.608Z",
379
+ "createdBy": {
380
+ "sys": {
381
+ "type": "Link",
382
+ "linkType": "User",
383
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
384
+ }
385
+ },
386
+ "updatedBy": {
387
+ "sys": {
388
+ "type": "Link",
389
+ "linkType": "User",
390
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
391
+ }
392
+ },
393
+ "publishedCounter": 1,
394
+ "version": 3,
395
+ "publishedBy": {
396
+ "sys": {
397
+ "type": "Link",
398
+ "linkType": "User",
399
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
400
+ }
401
+ },
402
+ "contentType": {
403
+ "sys": {
404
+ "type": "Link",
405
+ "linkType": "ContentType",
406
+ "id": "test"
407
+ }
408
+ }
409
+ },
410
+ "fields": {
411
+ "title": {
412
+ "en-US": "With Empty JSON"
413
+ }
414
+ }
415
+ }
416
+ http_version:
417
+ recorded_at: Thu, 02 Jul 2020 11:16:27 GMT
418
+ - request:
419
+ method: get
420
+ uri: https://api.contentful.com/spaces/vuo79u060fmw/environments/master/content_types/test
421
+ body:
422
+ encoding: UTF-8
423
+ string: ''
424
+ headers:
425
+ X-Contentful-User-Agent:
426
+ - sdk contentful-management.rb/2.12.0; platform ruby/2.6.3; os macOS/18;
427
+ Authorization:
428
+ - Bearer <ACCESS_TOKEN>
429
+ Content-Type:
430
+ - application/vnd.contentful.management.v1+json
431
+ Connection:
432
+ - close
433
+ Host:
434
+ - api.contentful.com
435
+ User-Agent:
436
+ - http.rb/4.4.1
437
+ response:
438
+ status:
439
+ code: 200
440
+ message: OK
441
+ headers:
442
+ Access-Control-Allow-Headers:
443
+ - 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,X-Contentful-Parent-Id,x-contentful-validate-only,X-Contentful-Skip-UI-Draft-Validation,X-Contentful-Marketplace,X-Contentful-UI-Content-Auto-Save
444
+ Access-Control-Allow-Methods:
445
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
446
+ Access-Control-Allow-Origin:
447
+ - "*"
448
+ Access-Control-Expose-Headers:
449
+ - Etag
450
+ Access-Control-Max-Age:
451
+ - '1728000'
452
+ Cf-Environment-Id:
453
+ - master
454
+ Cf-Environment-Uuid:
455
+ - master
456
+ Cf-Space-Id:
457
+ - vuo79u060fmw
458
+ Content-Type:
459
+ - application/vnd.contentful.management.v1+json
460
+ Contentful-Api:
461
+ - cma
462
+ Date:
463
+ - Thu, 02 Jul 2020 11:16:27 GMT
464
+ Etag:
465
+ - '"7672835949377777237"'
466
+ Server:
467
+ - Contentful
468
+ Strict-Transport-Security:
469
+ - max-age=15768000
470
+ X-Content-Type-Options:
471
+ - nosniff
472
+ X-Contentful-Ratelimit-Hour-Limit:
473
+ - '36000'
474
+ X-Contentful-Ratelimit-Hour-Remaining:
475
+ - '35998'
476
+ X-Contentful-Ratelimit-Reset:
477
+ - '0'
478
+ X-Contentful-Ratelimit-Second-Limit:
479
+ - '10'
480
+ X-Contentful-Ratelimit-Second-Remaining:
481
+ - '8'
482
+ X-Contentful-Request-Id:
483
+ - 5836e4dc96669e44cc203b8ab44195e3
484
+ Content-Length:
485
+ - '1498'
486
+ Connection:
487
+ - Close
488
+ Set-Cookie:
489
+ - incap_ses_878_673446=qov0ThG1VTZ7/j3LXUgvDAvC/V4AAAAAWis+vS2U2zSKW9BFsBi+EQ==;
490
+ path=/; Domain=.contentful.com
491
+ - nlbi_673446=++KSK96XuVOIb7w8YMlkBAAAAACYNcgrLDOQPOPzs/gx+YPl; path=/; Domain=.contentful.com
492
+ - visid_incap_673446=wMLYZa2YT3WNBN/pqKMfEgvC/V4AAAAAQUIPAAAAAABM3251KevvH4oaJikaqIjt;
493
+ expires=Fri, 02 Jul 2021 06:56:32 GMT; HttpOnly; path=/; Domain=.contentful.com
494
+ X-Cdn:
495
+ - Incapsula
496
+ X-Iinfo:
497
+ - 11-24115590-24115596 NNNY CT(0 0 0) RT(1593688587546 73) q(0 0 0 -1) r(2 2)
498
+ U5
499
+ body:
500
+ encoding: ASCII-8BIT
501
+ string: |
502
+ {
503
+ "sys": {
504
+ "space": {
505
+ "sys": {
506
+ "type": "Link",
507
+ "linkType": "Space",
508
+ "id": "vuo79u060fmw"
509
+ }
510
+ },
511
+ "id": "test",
512
+ "type": "ContentType",
513
+ "createdAt": "2020-07-02T10:40:58.930Z",
514
+ "updatedAt": "2020-07-02T10:40:59.377Z",
515
+ "environment": {
516
+ "sys": {
517
+ "id": "master",
518
+ "type": "Link",
519
+ "linkType": "Environment"
520
+ }
521
+ },
522
+ "publishedVersion": 1,
523
+ "publishedAt": "2020-07-02T10:40:59.377Z",
524
+ "firstPublishedAt": "2020-07-02T10:40:59.377Z",
525
+ "createdBy": {
526
+ "sys": {
527
+ "type": "Link",
528
+ "linkType": "User",
529
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
530
+ }
531
+ },
532
+ "updatedBy": {
533
+ "sys": {
534
+ "type": "Link",
535
+ "linkType": "User",
536
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
537
+ }
538
+ },
539
+ "publishedCounter": 1,
540
+ "version": 2,
541
+ "publishedBy": {
542
+ "sys": {
543
+ "type": "Link",
544
+ "linkType": "User",
545
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
546
+ }
547
+ }
548
+ },
549
+ "displayField": "title",
550
+ "name": "Test",
551
+ "description": "",
552
+ "fields": [
553
+ {
554
+ "id": "title",
555
+ "name": "Title",
556
+ "type": "Symbol",
557
+ "localized": false,
558
+ "required": false,
559
+ "validations": [],
560
+ "disabled": false,
561
+ "omitted": false
562
+ },
563
+ {
564
+ "id": "json",
565
+ "name": "JSON",
566
+ "type": "Object",
567
+ "localized": false,
568
+ "required": false,
569
+ "validations": [],
570
+ "disabled": false,
571
+ "omitted": false
572
+ }
573
+ ]
574
+ }
575
+ http_version:
576
+ recorded_at: Thu, 02 Jul 2020 11:16:27 GMT
577
+ - request:
578
+ method: put
579
+ uri: https://api.contentful.com/spaces/vuo79u060fmw/environments/master/entries/4aVBlJajh2rZb7ybW2tY2X
580
+ body:
581
+ encoding: UTF-8
582
+ string: '{"fields":{"title":{"en-US":"With Empty JSON"},"json":{"en-US":{"a":1}}}}'
583
+ headers:
584
+ X-Contentful-User-Agent:
585
+ - sdk contentful-management.rb/2.12.0; platform ruby/2.6.3; os macOS/18;
586
+ Authorization:
587
+ - Bearer <ACCESS_TOKEN>
588
+ Content-Type:
589
+ - application/vnd.contentful.management.v1+json
590
+ X-Contentful-Version:
591
+ - '3'
592
+ X-Contentful-Content-Type:
593
+ - test
594
+ Content-Type-Id:
595
+ - test
596
+ Version:
597
+ - '3'
598
+ Connection:
599
+ - close
600
+ Host:
601
+ - api.contentful.com
602
+ User-Agent:
603
+ - http.rb/4.4.1
604
+ response:
605
+ status:
606
+ code: 200
607
+ message: OK
608
+ headers:
609
+ Access-Control-Allow-Headers:
610
+ - 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,X-Contentful-Parent-Id,x-contentful-validate-only,X-Contentful-Skip-UI-Draft-Validation,X-Contentful-Marketplace,X-Contentful-UI-Content-Auto-Save
611
+ Access-Control-Allow-Methods:
612
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
613
+ Access-Control-Allow-Origin:
614
+ - "*"
615
+ Access-Control-Expose-Headers:
616
+ - Etag
617
+ Access-Control-Max-Age:
618
+ - '1728000'
619
+ Cf-Environment-Id:
620
+ - master
621
+ Cf-Environment-Uuid:
622
+ - master
623
+ Cf-Space-Id:
624
+ - vuo79u060fmw
625
+ Content-Type:
626
+ - application/vnd.contentful.management.v1+json
627
+ Contentful-Api:
628
+ - cma
629
+ Date:
630
+ - Thu, 02 Jul 2020 11:16:28 GMT
631
+ Etag:
632
+ - '"3782483616295459624"'
633
+ Server:
634
+ - Contentful
635
+ Strict-Transport-Security:
636
+ - max-age=15768000
637
+ X-Content-Type-Options:
638
+ - nosniff
639
+ X-Contentful-Ratelimit-Hour-Limit:
640
+ - '36000'
641
+ X-Contentful-Ratelimit-Hour-Remaining:
642
+ - '35999'
643
+ X-Contentful-Ratelimit-Reset:
644
+ - '0'
645
+ X-Contentful-Ratelimit-Second-Limit:
646
+ - '10'
647
+ X-Contentful-Ratelimit-Second-Remaining:
648
+ - '9'
649
+ X-Contentful-Request-Id:
650
+ - d5fa753993e8769ff8a0f96c51349f2a
651
+ Content-Length:
652
+ - '1319'
653
+ Connection:
654
+ - Close
655
+ Set-Cookie:
656
+ - incap_ses_878_673446=Z7xhXuCKzVDr/j3LXUgvDAzC/V4AAAAANVwoIij7hZmtuAkyl19BHA==;
657
+ path=/; Domain=.contentful.com
658
+ - nlbi_673446=orhxDMB44m045xFHYMlkBAAAAAD4JP7RdVWBiuQJWQkCQUGv; path=/; Domain=.contentful.com
659
+ - visid_incap_673446=LfDd5D5PQKOFNU9MCqJ57AzC/V4AAAAAQUIPAAAAAAD4KTOOvE7wYjr42fbo/3mi;
660
+ expires=Fri, 02 Jul 2021 06:56:32 GMT; HttpOnly; path=/; Domain=.contentful.com
661
+ X-Cdn:
662
+ - Incapsula
663
+ X-Iinfo:
664
+ - 14-57165196-57165237 NNNY CT(0 0 0) RT(1593688588037 100) q(0 0 0 -1) r(4
665
+ 4) U5
666
+ body:
667
+ encoding: ASCII-8BIT
668
+ string: |
669
+ {
670
+ "metadata": {
671
+ "tags": []
672
+ },
673
+ "sys": {
674
+ "space": {
675
+ "sys": {
676
+ "type": "Link",
677
+ "linkType": "Space",
678
+ "id": "vuo79u060fmw"
679
+ }
680
+ },
681
+ "id": "4aVBlJajh2rZb7ybW2tY2X",
682
+ "type": "Entry",
683
+ "createdAt": "2020-07-02T10:43:07.669Z",
684
+ "updatedAt": "2020-07-02T11:16:28.498Z",
685
+ "environment": {
686
+ "sys": {
687
+ "id": "master",
688
+ "type": "Link",
689
+ "linkType": "Environment"
690
+ }
691
+ },
692
+ "publishedVersion": 2,
693
+ "publishedAt": "2020-07-02T10:43:21.608Z",
694
+ "firstPublishedAt": "2020-07-02T10:43:21.608Z",
695
+ "createdBy": {
696
+ "sys": {
697
+ "type": "Link",
698
+ "linkType": "User",
699
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
700
+ }
701
+ },
702
+ "updatedBy": {
703
+ "sys": {
704
+ "type": "Link",
705
+ "linkType": "User",
706
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
707
+ }
708
+ },
709
+ "publishedCounter": 1,
710
+ "version": 4,
711
+ "publishedBy": {
712
+ "sys": {
713
+ "type": "Link",
714
+ "linkType": "User",
715
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
716
+ }
717
+ },
718
+ "contentType": {
719
+ "sys": {
720
+ "type": "Link",
721
+ "linkType": "ContentType",
722
+ "id": "test"
723
+ }
724
+ }
725
+ },
726
+ "fields": {
727
+ "title": {
728
+ "en-US": "With Empty JSON"
729
+ },
730
+ "json": {
731
+ "en-US": {
732
+ "a": 1
733
+ }
734
+ }
735
+ }
736
+ }
737
+ http_version:
738
+ recorded_at: Thu, 02 Jul 2020 11:16:28 GMT
739
+ - request:
740
+ method: get
741
+ uri: https://api.contentful.com/spaces/vuo79u060fmw/environments/master/entries/4aVBlJajh2rZb7ybW2tY2X
742
+ body:
743
+ encoding: UTF-8
744
+ string: ''
745
+ headers:
746
+ X-Contentful-User-Agent:
747
+ - sdk contentful-management.rb/2.12.0; platform ruby/2.6.3; os macOS/18;
748
+ Authorization:
749
+ - Bearer <ACCESS_TOKEN>
750
+ Content-Type:
751
+ - application/vnd.contentful.management.v1+json
752
+ Connection:
753
+ - close
754
+ Host:
755
+ - api.contentful.com
756
+ User-Agent:
757
+ - http.rb/4.4.1
758
+ response:
759
+ status:
760
+ code: 200
761
+ message: OK
762
+ headers:
763
+ Access-Control-Allow-Headers:
764
+ - 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,X-Contentful-Parent-Id,x-contentful-validate-only,X-Contentful-Skip-UI-Draft-Validation,X-Contentful-Marketplace,X-Contentful-UI-Content-Auto-Save
765
+ Access-Control-Allow-Methods:
766
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
767
+ Access-Control-Allow-Origin:
768
+ - "*"
769
+ Access-Control-Expose-Headers:
770
+ - Etag
771
+ Access-Control-Max-Age:
772
+ - '1728000'
773
+ Cf-Environment-Id:
774
+ - master
775
+ Cf-Environment-Uuid:
776
+ - master
777
+ Cf-Space-Id:
778
+ - vuo79u060fmw
779
+ Content-Type:
780
+ - application/vnd.contentful.management.v1+json
781
+ Contentful-Api:
782
+ - cma
783
+ Date:
784
+ - Thu, 02 Jul 2020 11:16:29 GMT
785
+ Etag:
786
+ - '"3782483616295459624"'
787
+ Server:
788
+ - Contentful
789
+ Strict-Transport-Security:
790
+ - max-age=15768000
791
+ X-Content-Type-Options:
792
+ - nosniff
793
+ X-Contentful-Ratelimit-Hour-Limit:
794
+ - '36000'
795
+ X-Contentful-Ratelimit-Hour-Remaining:
796
+ - '35999'
797
+ X-Contentful-Ratelimit-Reset:
798
+ - '0'
799
+ X-Contentful-Ratelimit-Second-Limit:
800
+ - '10'
801
+ X-Contentful-Ratelimit-Second-Remaining:
802
+ - '9'
803
+ X-Contentful-Request-Id:
804
+ - 0e89e679021b0f380fbc23ca12544a69
805
+ Content-Length:
806
+ - '1319'
807
+ Connection:
808
+ - Close
809
+ Set-Cookie:
810
+ - incap_ses_878_673446=NM5oLhm//iJ4/z3LXUgvDA3C/V4AAAAAbsrggaBG+miYmggjTODmPA==;
811
+ path=/; Domain=.contentful.com
812
+ - nlbi_673446=3Xk1RNUqqSxQB1+yYMlkBAAAAACX6rJBURBRM99pcq/dbT9R; path=/; Domain=.contentful.com
813
+ - visid_incap_673446=gaWIz9ogSkSFN5oLELNLjg3C/V4AAAAAQUIPAAAAAADY3RjeXyU6K/wZbJOu3p8B;
814
+ expires=Fri, 02 Jul 2021 06:56:32 GMT; HttpOnly; path=/; Domain=.contentful.com
815
+ X-Cdn:
816
+ - Incapsula
817
+ X-Iinfo:
818
+ - 10-15160957-15160969 NNNY CT(0 0 0) RT(1593688588659 320) q(0 0 0 -1) r(3
819
+ 3) U5
820
+ body:
821
+ encoding: ASCII-8BIT
822
+ string: |
823
+ {
824
+ "metadata": {
825
+ "tags": []
826
+ },
827
+ "sys": {
828
+ "space": {
829
+ "sys": {
830
+ "type": "Link",
831
+ "linkType": "Space",
832
+ "id": "vuo79u060fmw"
833
+ }
834
+ },
835
+ "id": "4aVBlJajh2rZb7ybW2tY2X",
836
+ "type": "Entry",
837
+ "createdAt": "2020-07-02T10:43:07.669Z",
838
+ "updatedAt": "2020-07-02T11:16:28.498Z",
839
+ "environment": {
840
+ "sys": {
841
+ "id": "master",
842
+ "type": "Link",
843
+ "linkType": "Environment"
844
+ }
845
+ },
846
+ "publishedVersion": 2,
847
+ "publishedAt": "2020-07-02T10:43:21.608Z",
848
+ "firstPublishedAt": "2020-07-02T10:43:21.608Z",
849
+ "createdBy": {
850
+ "sys": {
851
+ "type": "Link",
852
+ "linkType": "User",
853
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
854
+ }
855
+ },
856
+ "updatedBy": {
857
+ "sys": {
858
+ "type": "Link",
859
+ "linkType": "User",
860
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
861
+ }
862
+ },
863
+ "publishedCounter": 1,
864
+ "version": 4,
865
+ "publishedBy": {
866
+ "sys": {
867
+ "type": "Link",
868
+ "linkType": "User",
869
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
870
+ }
871
+ },
872
+ "contentType": {
873
+ "sys": {
874
+ "type": "Link",
875
+ "linkType": "ContentType",
876
+ "id": "test"
877
+ }
878
+ }
879
+ },
880
+ "fields": {
881
+ "title": {
882
+ "en-US": "With Empty JSON"
883
+ },
884
+ "json": {
885
+ "en-US": {
886
+ "a": 1
887
+ }
888
+ }
889
+ }
890
+ }
891
+ http_version:
892
+ recorded_at: Thu, 02 Jul 2020 11:16:29 GMT
893
+ recorded_with: VCR 4.0.0