contentful_model 0.2.0 → 1.0.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 (84) hide show
  1. checksums.yaml +5 -5
  2. data/lib/contentful_model.rb +17 -13
  3. data/lib/contentful_model/asset.rb +30 -0
  4. data/lib/contentful_model/asset_dimension_query.rb +70 -0
  5. data/lib/contentful_model/asset_dimensions.rb +54 -0
  6. data/lib/contentful_model/associations/associations.rb +10 -4
  7. data/lib/contentful_model/associations/belongs_to.rb +9 -4
  8. data/lib/contentful_model/associations/belongs_to_many.rb +22 -45
  9. data/lib/contentful_model/associations/has_many.rb +15 -13
  10. data/lib/contentful_model/associations/has_many_nested.rb +39 -37
  11. data/lib/contentful_model/associations/has_one.rb +22 -14
  12. data/lib/contentful_model/base.rb +115 -74
  13. data/lib/contentful_model/client.rb +14 -3
  14. data/lib/contentful_model/errors.rb +0 -1
  15. data/lib/contentful_model/manageable.rb +49 -21
  16. data/lib/contentful_model/management.rb +1 -0
  17. data/lib/contentful_model/migrations/content_type.rb +24 -24
  18. data/lib/contentful_model/migrations/content_type_factory.rb +9 -6
  19. data/lib/contentful_model/migrations/migration.rb +9 -4
  20. data/lib/contentful_model/queries.rb +60 -9
  21. data/lib/contentful_model/query.rb +148 -5
  22. data/lib/contentful_model/validations/lambda_validation.rb +17 -0
  23. data/lib/contentful_model/validations/validates_presence_of.rb +4 -1
  24. data/lib/contentful_model/validations/validations.rb +56 -8
  25. data/lib/contentful_model/version.rb +1 -1
  26. data/spec/asset_spec.rb +141 -0
  27. data/spec/associations/belongs_to_many_spec.rb +38 -0
  28. data/spec/associations/belongs_to_spec.rb +22 -0
  29. data/spec/associations/has_many_nested_spec.rb +321 -0
  30. data/spec/associations/has_many_spec.rb +33 -0
  31. data/spec/associations/has_one_spec.rb +32 -0
  32. data/spec/base_spec.rb +199 -0
  33. data/spec/chainable_queries_spec.rb +199 -0
  34. data/spec/client_spec.rb +11 -0
  35. data/spec/contentful_model_spec.rb +25 -0
  36. data/spec/fixtures/vcr_cassettes/asset/all.yml +161 -0
  37. data/spec/fixtures/vcr_cassettes/asset/find.yml +118 -0
  38. data/spec/fixtures/vcr_cassettes/association/belongs_to_many.yml +439 -0
  39. data/spec/fixtures/vcr_cassettes/association/has_many.yml +161 -0
  40. data/spec/fixtures/vcr_cassettes/association/has_one.yml +161 -0
  41. data/spec/fixtures/vcr_cassettes/association/nested_with_root_root.yml +240 -0
  42. data/spec/fixtures/vcr_cassettes/association/nested_without_root_child_higher_include.yml +123 -0
  43. data/spec/fixtures/vcr_cassettes/association/nested_without_root_child_parent.yml +609 -0
  44. data/spec/fixtures/vcr_cassettes/association/nested_without_root_childless.yml +688 -0
  45. data/spec/fixtures/vcr_cassettes/association/nested_without_root_middle.yml +319 -0
  46. data/spec/fixtures/vcr_cassettes/association/nested_without_root_middle_higher_include.yml +161 -0
  47. data/spec/fixtures/vcr_cassettes/association/nested_without_root_middle_parent.yml +489 -0
  48. data/spec/fixtures/vcr_cassettes/association/nested_without_root_parentless.yml +331 -0
  49. data/spec/fixtures/vcr_cassettes/association/nested_without_root_parentless_higher_include.yml +82 -0
  50. data/spec/fixtures/vcr_cassettes/associations/nested_without_root_middle.yml +161 -0
  51. data/spec/fixtures/vcr_cassettes/associations/nested_without_root_middle_higher_include.yml +82 -0
  52. data/spec/fixtures/vcr_cassettes/base/content_type.yml +185 -0
  53. data/spec/fixtures/vcr_cassettes/base/return_nil_for_empty.yml +202 -0
  54. data/spec/fixtures/vcr_cassettes/base/return_nil_for_empty_with_value.yml +124 -0
  55. data/spec/fixtures/vcr_cassettes/client.yml +98 -0
  56. data/spec/fixtures/vcr_cassettes/dog.yml +161 -0
  57. data/spec/fixtures/vcr_cassettes/human.yml +199 -0
  58. data/spec/fixtures/vcr_cassettes/management/client.yml +1362 -0
  59. data/spec/fixtures/vcr_cassettes/management/nyancat.yml +1449 -0
  60. data/spec/fixtures/vcr_cassettes/management/nyancat_2.yml +1449 -0
  61. data/spec/fixtures/vcr_cassettes/management/nyancat_publish.yml +481 -0
  62. data/spec/fixtures/vcr_cassettes/management/nyancat_refetch_and_fail.yml +558 -0
  63. data/spec/fixtures/vcr_cassettes/management/nyancat_refetch_and_save.yml +620 -0
  64. data/spec/fixtures/vcr_cassettes/management/nyancat_save.yml +479 -0
  65. data/spec/fixtures/vcr_cassettes/management/nyancat_save_2.yml +479 -0
  66. data/spec/fixtures/vcr_cassettes/nyancat.yml +196 -0
  67. data/spec/fixtures/vcr_cassettes/playground/nyancat.yml +177 -0
  68. data/spec/fixtures/vcr_cassettes/query/each_entry.yml +319 -0
  69. data/spec/fixtures/vcr_cassettes/query/each_page.yml +319 -0
  70. data/spec/fixtures/vcr_cassettes/query/empty.yml +180 -0
  71. data/spec/fixtures/vcr_cassettes/query/load.yml +197 -0
  72. data/spec/fixtures/vcr_cassettes/query/manual_pagination.yml +161 -0
  73. data/spec/fixtures/vcr_cassettes/query/nyancat_invalid_elements.yml +247 -0
  74. data/spec/manageable_spec.rb +186 -0
  75. data/spec/management_spec.rb +17 -0
  76. data/spec/migrations/content_type_factory_spec.rb +41 -0
  77. data/spec/migrations/content_type_spec.rb +176 -0
  78. data/spec/migrations/migration_spec.rb +75 -0
  79. data/spec/queries_spec.rb +85 -0
  80. data/spec/query_spec.rb +126 -0
  81. data/spec/spec_helper.rb +58 -0
  82. data/spec/validations/validations_spec.rb +182 -0
  83. metadata +213 -19
  84. data/lib/contentful_model/chainable_queries.rb +0 -104
@@ -0,0 +1,1362 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.contentful.com/spaces/facgnwwgj5fe/environments/master/content_types/cat
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - RubyContentfulManagementGem/1.1.0
12
+ Authorization:
13
+ - Bearer <ACCESS_TOKEN>
14
+ Content-Type:
15
+ - application/vnd.contentful.management.v1+json
16
+ Content-Length:
17
+ - '0'
18
+ Connection:
19
+ - close
20
+ Host:
21
+ - api.contentful.com
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Access-Control-Allow-Headers:
28
+ - 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
29
+ Access-Control-Allow-Methods:
30
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
31
+ Access-Control-Allow-Origin:
32
+ - "*"
33
+ Access-Control-Expose-Headers:
34
+ - Etag
35
+ Access-Control-Max-Age:
36
+ - '1728000'
37
+ Cf-Space-Id:
38
+ - facgnwwgj5fe
39
+ Content-Type:
40
+ - application/vnd.contentful.management.v1+json
41
+ Date:
42
+ - Mon, 08 May 2017 14:10:53 GMT
43
+ Etag:
44
+ - '"3ebdb893e2c6c3d675f9c1d97cc55d58"'
45
+ Server:
46
+ - Contentful
47
+ Strict-Transport-Security:
48
+ - max-age=15768000
49
+ X-Content-Type-Options:
50
+ - nosniff
51
+ X-Contentful-Ratelimit-Hour-Limit:
52
+ - '36000'
53
+ X-Contentful-Ratelimit-Hour-Remaining:
54
+ - '35946'
55
+ X-Contentful-Ratelimit-Reset:
56
+ - '0'
57
+ X-Contentful-Ratelimit-Second-Limit:
58
+ - '10'
59
+ X-Contentful-Ratelimit-Second-Remaining:
60
+ - '9'
61
+ X-Contentful-Request-Id:
62
+ - 3bf94d724fe1005dec593d36cb4cf26f
63
+ Content-Length:
64
+ - '1604'
65
+ Connection:
66
+ - Close
67
+ Set-Cookie:
68
+ - incap_ses_297_673446=LGdPZX0MvXP3Uo6HiygfBG58EFkAAAAAqJds0JrIWVeXdcdHwCS7UQ==;
69
+ path=/; Domain=.contentful.com
70
+ - nlbi_673446=iGA9MjTOSxobb4qD6lKYhQAAAACDXkAnT9IyQsZIY/+xIId2; path=/; Domain=.contentful.com
71
+ - visid_incap_673446=dI7jUbLoRSuOceGAydRZbm58EFkAAAAAQUIPAAAAAADIhN6c9FvLXMlp+KaWakoV;
72
+ expires=Tue, 08 May 2018 07:00:13 GMT; path=/; Domain=.contentful.com
73
+ X-Iinfo:
74
+ - 0-22362614-22362630 NNNN CT(140 138 0) RT(1494252653354 109) q(0 0 3 -1) r(6
75
+ 6) U5
76
+ X-Cdn:
77
+ - Incapsula
78
+ body:
79
+ encoding: UTF-8
80
+ string: |
81
+ {
82
+ "name": "Cat",
83
+ "fields": [
84
+ {
85
+ "name": "Name",
86
+ "id": "name",
87
+ "type": "Symbol",
88
+ "validations": [],
89
+ "localized": false,
90
+ "required": false,
91
+ "disabled": false,
92
+ "omitted": false
93
+ },
94
+ {
95
+ "name": "Lives",
96
+ "id": "lives",
97
+ "type": "Integer",
98
+ "validations": [],
99
+ "localized": false,
100
+ "required": false,
101
+ "disabled": false,
102
+ "omitted": false
103
+ },
104
+ {
105
+ "name": "Best Friend",
106
+ "id": "bestFriend",
107
+ "type": "Link",
108
+ "linkType": "Entry",
109
+ "localized": false,
110
+ "required": false,
111
+ "disabled": false,
112
+ "omitted": false,
113
+ "validations": []
114
+ }
115
+ ],
116
+ "displayField": "name",
117
+ "description": "",
118
+ "sys": {
119
+ "id": "cat",
120
+ "type": "ContentType",
121
+ "createdAt": "2017-05-08T14:06:00.224Z",
122
+ "createdBy": {
123
+ "sys": {
124
+ "type": "Link",
125
+ "linkType": "User",
126
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
127
+ }
128
+ },
129
+ "space": {
130
+ "sys": {
131
+ "type": "Link",
132
+ "linkType": "Space",
133
+ "id": "facgnwwgj5fe"
134
+ }
135
+ },
136
+ "firstPublishedAt": "2017-05-08T14:06:00.749Z",
137
+ "publishedCounter": 1,
138
+ "publishedAt": "2017-05-08T14:06:00.749Z",
139
+ "publishedBy": {
140
+ "sys": {
141
+ "type": "Link",
142
+ "linkType": "User",
143
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
144
+ }
145
+ },
146
+ "publishedVersion": 1,
147
+ "version": 2,
148
+ "updatedAt": "2017-05-08T14:06:00.760Z",
149
+ "updatedBy": {
150
+ "sys": {
151
+ "type": "Link",
152
+ "linkType": "User",
153
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
154
+ }
155
+ }
156
+ }
157
+ }
158
+ http_version:
159
+ recorded_at: Tue, 09 May 2017 13:31:34 GMT
160
+ - request:
161
+ method: get
162
+ uri: https://api.contentful.com/spaces/facgnwwgj5fe
163
+ body:
164
+ encoding: US-ASCII
165
+ string: ''
166
+ headers:
167
+ User-Agent:
168
+ - RubyContentfulManagementGem/1.1.0
169
+ Authorization:
170
+ - Bearer <ACCESS_TOKEN>
171
+ Content-Type:
172
+ - application/vnd.contentful.management.v1+json
173
+ Content-Length:
174
+ - '0'
175
+ Connection:
176
+ - close
177
+ Host:
178
+ - api.contentful.com
179
+ response:
180
+ status:
181
+ code: 200
182
+ message: OK
183
+ headers:
184
+ Accept-Ranges:
185
+ - bytes
186
+ Access-Control-Allow-Headers:
187
+ - 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
188
+ Access-Control-Allow-Methods:
189
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
190
+ Access-Control-Allow-Origin:
191
+ - "*"
192
+ Access-Control-Expose-Headers:
193
+ - Etag
194
+ Access-Control-Max-Age:
195
+ - '1728000'
196
+ Cache-Control:
197
+ - max-age=0
198
+ Cf-Organization-Id:
199
+ - 4SsuxQCaMaemfIms52Jr8s
200
+ Cf-Space-Id:
201
+ - facgnwwgj5fe
202
+ Content-Type:
203
+ - application/vnd.contentful.management.v1+json
204
+ Date:
205
+ - Tue, 09 May 2017 13:31:28 GMT
206
+ Etag:
207
+ - W/"b29eab6ac82dc3cfce06e10fd402fdbf"
208
+ Server:
209
+ - Contentful
210
+ Strict-Transport-Security:
211
+ - max-age=15768000
212
+ X-Content-Type-Options:
213
+ - nosniff
214
+ X-Contentful-Ratelimit-Hour-Limit:
215
+ - '36000'
216
+ X-Contentful-Ratelimit-Hour-Remaining:
217
+ - '35951'
218
+ X-Contentful-Ratelimit-Reset:
219
+ - '0'
220
+ X-Contentful-Ratelimit-Second-Limit:
221
+ - '10'
222
+ X-Contentful-Ratelimit-Second-Remaining:
223
+ - '9'
224
+ X-Contentful-Request-Id:
225
+ - 0c75329514dffdfc4a16625812876344
226
+ X-Frame-Options:
227
+ - ALLOWALL
228
+ X-Xss-Protection:
229
+ - 1; mode=block
230
+ Content-Length:
231
+ - '469'
232
+ Connection:
233
+ - Close
234
+ Set-Cookie:
235
+ - incap_ses_297_673446=v6TEeb6l+EiMCL+JiygfBLDEEVkAAAAAFzSU535iPhfh9R6b7UGOQg==;
236
+ path=/; Domain=.contentful.com
237
+ - nlbi_673446=SXAcRHkZc0qQ8UPC6lKYhQAAAADyG+fs/JcMBMRKCLvJ/O61; path=/; Domain=.contentful.com
238
+ - visid_incap_673446=kEz4HWicSn+BEP2fyQUc8LDEEVkAAAAAQUIPAAAAAABKoE4HJ03D+ZE0b0vM2b14;
239
+ expires=Wed, 09 May 2018 07:00:14 GMT; path=/; Domain=.contentful.com
240
+ X-Iinfo:
241
+ - 6-45549434-45549453 NNNN CT(0 0 0) RT(1494336688646 92) q(0 0 0 -1) r(2 2)
242
+ U5
243
+ X-Cdn:
244
+ - Incapsula
245
+ body:
246
+ encoding: UTF-8
247
+ string: |+
248
+ {
249
+ "name":"management.py - playground",
250
+ "sys":{
251
+ "type":"Space",
252
+ "id":"facgnwwgj5fe",
253
+ "version":1,
254
+ "createdBy":{
255
+ "sys":{
256
+ "type":"Link",
257
+ "linkType":"User",
258
+ "id":"4SejVrWT96dvL9IV4Nb7sQ"
259
+ }
260
+ },
261
+ "createdAt":"2017-03-02T18:30:26Z",
262
+ "updatedBy":{
263
+ "sys":{
264
+ "type":"Link",
265
+ "linkType":"User",
266
+ "id":"4SejVrWT96dvL9IV4Nb7sQ"
267
+ }
268
+ },
269
+ "updatedAt":"2017-03-02T18:30:26Z"
270
+ }
271
+ }
272
+
273
+ http_version:
274
+ recorded_at: Tue, 09 May 2017 13:31:29 GMT
275
+ - request:
276
+ method: get
277
+ uri: https://api.contentful.com/spaces/facgnwwgj5fe/environments/master/content_types
278
+ body:
279
+ encoding: US-ASCII
280
+ string: ''
281
+ headers:
282
+ User-Agent:
283
+ - RubyContentfulManagementGem/1.1.0
284
+ Authorization:
285
+ - Bearer <ACCESS_TOKEN>
286
+ Content-Type:
287
+ - application/vnd.contentful.management.v1+json
288
+ Content-Length:
289
+ - '0'
290
+ Connection:
291
+ - close
292
+ Host:
293
+ - api.contentful.com
294
+ response:
295
+ status:
296
+ code: 200
297
+ message: OK
298
+ headers:
299
+ Access-Control-Allow-Headers:
300
+ - 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
301
+ Access-Control-Allow-Methods:
302
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
303
+ Access-Control-Allow-Origin:
304
+ - "*"
305
+ Access-Control-Expose-Headers:
306
+ - Etag
307
+ Access-Control-Max-Age:
308
+ - '1728000'
309
+ Cf-Space-Id:
310
+ - facgnwwgj5fe
311
+ Content-Type:
312
+ - application/vnd.contentful.management.v1+json
313
+ Date:
314
+ - Tue, 09 May 2017 13:31:32 GMT
315
+ Etag:
316
+ - '"eee9fa878abdf291c973e8542cba12e2"'
317
+ Server:
318
+ - Contentful
319
+ Strict-Transport-Security:
320
+ - max-age=15768000
321
+ X-Content-Type-Options:
322
+ - nosniff
323
+ X-Contentful-Ratelimit-Hour-Limit:
324
+ - '36000'
325
+ X-Contentful-Ratelimit-Hour-Remaining:
326
+ - '35950'
327
+ X-Contentful-Ratelimit-Reset:
328
+ - '0'
329
+ X-Contentful-Ratelimit-Second-Limit:
330
+ - '10'
331
+ X-Contentful-Ratelimit-Second-Remaining:
332
+ - '9'
333
+ X-Contentful-Request-Id:
334
+ - 27a608c57d746a24860b38eed639029e
335
+ Content-Length:
336
+ - '16805'
337
+ Connection:
338
+ - Close
339
+ Set-Cookie:
340
+ - incap_ses_297_673446=Eiw+Zsgf/WGVEr+JiygfBLTEEVkAAAAAtPqUREy8uImxXCSt+I3uZQ==;
341
+ path=/; Domain=.contentful.com
342
+ - nlbi_673446=L3UrQGWJoj9xxpmd6lKYhQAAAABqOD3EFfu+VdVPk7Ei7RZJ; path=/; Domain=.contentful.com
343
+ - visid_incap_673446=wGcnNH4XSHuE9r+i8kL277TEEVkAAAAAQUIPAAAAAABknF1CujT6nYPthHYSM/jg;
344
+ expires=Wed, 09 May 2018 07:00:14 GMT; path=/; Domain=.contentful.com
345
+ X-Iinfo:
346
+ - 10-64477097-64477115 NNNN CT(0 0 0) RT(1494336689036 117) q(0 0 0 -1) r(33
347
+ 35) U5
348
+ X-Cdn:
349
+ - Incapsula
350
+ body:
351
+ encoding: UTF-8
352
+ string: |
353
+ {
354
+ "sys": {
355
+ "type": "Array"
356
+ },
357
+ "total": 15,
358
+ "skip": 0,
359
+ "limit": 100,
360
+ "items": [
361
+ {
362
+ "sys": {
363
+ "space": {
364
+ "sys": {
365
+ "type": "Link",
366
+ "linkType": "Space",
367
+ "id": "facgnwwgj5fe"
368
+ }
369
+ },
370
+ "id": "test",
371
+ "type": "ContentType",
372
+ "createdAt": "2017-03-02T18:32:49.570Z",
373
+ "updatedAt": "2017-03-02T18:32:50.586Z",
374
+ "createdBy": {
375
+ "sys": {
376
+ "type": "Link",
377
+ "linkType": "User",
378
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
379
+ }
380
+ },
381
+ "updatedBy": {
382
+ "sys": {
383
+ "type": "Link",
384
+ "linkType": "User",
385
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
386
+ }
387
+ },
388
+ "publishedCounter": 1,
389
+ "version": 2,
390
+ "publishedBy": {
391
+ "sys": {
392
+ "type": "Link",
393
+ "linkType": "User",
394
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
395
+ }
396
+ },
397
+ "publishedVersion": 1,
398
+ "firstPublishedAt": "2017-03-02T18:32:50.559Z",
399
+ "publishedAt": "2017-03-02T18:32:50.559Z"
400
+ },
401
+ "displayField": "name",
402
+ "name": "Test",
403
+ "description": "",
404
+ "fields": [
405
+ {
406
+ "id": "name",
407
+ "name": "name",
408
+ "type": "Symbol",
409
+ "localized": false,
410
+ "required": false,
411
+ "validations": [],
412
+ "disabled": false,
413
+ "omitted": false
414
+ }
415
+ ]
416
+ },
417
+ {
418
+ "sys": {
419
+ "space": {
420
+ "sys": {
421
+ "type": "Link",
422
+ "linkType": "Space",
423
+ "id": "facgnwwgj5fe"
424
+ }
425
+ },
426
+ "id": "bar",
427
+ "type": "ContentType",
428
+ "createdAt": "2017-03-02T19:34:07.111Z",
429
+ "updatedAt": "2017-03-10T15:31:05.565Z",
430
+ "createdBy": {
431
+ "sys": {
432
+ "type": "Link",
433
+ "linkType": "User",
434
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
435
+ }
436
+ },
437
+ "updatedBy": {
438
+ "sys": {
439
+ "type": "Link",
440
+ "linkType": "User",
441
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
442
+ }
443
+ },
444
+ "publishedCounter": 4,
445
+ "version": 9,
446
+ "firstPublishedAt": "2017-03-09T13:51:34.847Z"
447
+ },
448
+ "displayField": null,
449
+ "name": "bar",
450
+ "description": null,
451
+ "fields": [
452
+ {
453
+ "id": "test",
454
+ "name": "test",
455
+ "type": "Symbol",
456
+ "localized": false,
457
+ "required": false,
458
+ "validations": [],
459
+ "disabled": false,
460
+ "omitted": false
461
+ }
462
+ ]
463
+ },
464
+ {
465
+ "sys": {
466
+ "space": {
467
+ "sys": {
468
+ "type": "Link",
469
+ "linkType": "Space",
470
+ "id": "facgnwwgj5fe"
471
+ }
472
+ },
473
+ "id": "id_content_type_create_test",
474
+ "type": "ContentType",
475
+ "createdAt": "2017-03-10T15:36:41.568Z",
476
+ "updatedAt": "2017-03-10T15:36:41.583Z",
477
+ "createdBy": {
478
+ "sys": {
479
+ "type": "Link",
480
+ "linkType": "User",
481
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
482
+ }
483
+ },
484
+ "updatedBy": {
485
+ "sys": {
486
+ "type": "Link",
487
+ "linkType": "User",
488
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
489
+ }
490
+ },
491
+ "version": 1
492
+ },
493
+ "displayField": "name",
494
+ "name": "ID Create Test",
495
+ "description": "Something goes here...",
496
+ "fields": [
497
+ {
498
+ "id": "name",
499
+ "name": "Name",
500
+ "type": "Symbol",
501
+ "localized": false,
502
+ "required": false,
503
+ "validations": [],
504
+ "disabled": false,
505
+ "omitted": false
506
+ }
507
+ ]
508
+ },
509
+ {
510
+ "sys": {
511
+ "space": {
512
+ "sys": {
513
+ "type": "Link",
514
+ "linkType": "Space",
515
+ "id": "facgnwwgj5fe"
516
+ }
517
+ },
518
+ "id": "1JzBeA5EcEcyKUaqGeqImy",
519
+ "type": "ContentType",
520
+ "createdAt": "2017-03-10T15:22:01.234Z",
521
+ "updatedAt": "2017-03-10T15:40:48.767Z",
522
+ "createdBy": {
523
+ "sys": {
524
+ "type": "Link",
525
+ "linkType": "User",
526
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
527
+ }
528
+ },
529
+ "updatedBy": {
530
+ "sys": {
531
+ "type": "Link",
532
+ "linkType": "User",
533
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
534
+ }
535
+ },
536
+ "publishedCounter": 1,
537
+ "version": 3,
538
+ "firstPublishedAt": "2017-03-10T15:39:42.640Z"
539
+ },
540
+ "displayField": "name",
541
+ "name": "Create Test",
542
+ "description": "Something goes here...",
543
+ "fields": [
544
+ {
545
+ "id": "name",
546
+ "name": "Name",
547
+ "type": "Symbol",
548
+ "localized": false,
549
+ "required": false,
550
+ "validations": [],
551
+ "disabled": false,
552
+ "omitted": false
553
+ }
554
+ ]
555
+ },
556
+ {
557
+ "sys": {
558
+ "space": {
559
+ "sys": {
560
+ "type": "Link",
561
+ "linkType": "Space",
562
+ "id": "facgnwwgj5fe"
563
+ }
564
+ },
565
+ "id": "3kbg8jMFzqmagw6IO8YUyu",
566
+ "type": "ContentType",
567
+ "createdAt": "2017-03-10T15:31:01.043Z",
568
+ "updatedAt": "2017-03-10T15:31:01.049Z",
569
+ "createdBy": {
570
+ "sys": {
571
+ "type": "Link",
572
+ "linkType": "User",
573
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
574
+ }
575
+ },
576
+ "updatedBy": {
577
+ "sys": {
578
+ "type": "Link",
579
+ "linkType": "User",
580
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
581
+ }
582
+ },
583
+ "version": 1
584
+ },
585
+ "displayField": "name",
586
+ "name": "Create Test",
587
+ "description": "Something goes here...",
588
+ "fields": [
589
+ {
590
+ "id": "name",
591
+ "name": "Name",
592
+ "type": "Symbol",
593
+ "localized": false,
594
+ "required": false,
595
+ "validations": [],
596
+ "disabled": false,
597
+ "omitted": false
598
+ }
599
+ ]
600
+ },
601
+ {
602
+ "sys": {
603
+ "space": {
604
+ "sys": {
605
+ "type": "Link",
606
+ "linkType": "Space",
607
+ "id": "facgnwwgj5fe"
608
+ }
609
+ },
610
+ "id": "foo",
611
+ "type": "ContentType",
612
+ "createdAt": "2017-03-02T19:32:52.225Z",
613
+ "updatedAt": "2017-03-10T15:38:16.371Z",
614
+ "createdBy": {
615
+ "sys": {
616
+ "type": "Link",
617
+ "linkType": "User",
618
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
619
+ }
620
+ },
621
+ "updatedBy": {
622
+ "sys": {
623
+ "type": "Link",
624
+ "linkType": "User",
625
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
626
+ }
627
+ },
628
+ "publishedCounter": 3,
629
+ "version": 9,
630
+ "publishedBy": {
631
+ "sys": {
632
+ "type": "Link",
633
+ "linkType": "User",
634
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
635
+ }
636
+ },
637
+ "publishedVersion": 6,
638
+ "firstPublishedAt": "2017-03-02T21:51:34.581Z",
639
+ "publishedAt": "2017-03-02T22:41:20.685Z"
640
+ },
641
+ "displayField": "name",
642
+ "name": "foo",
643
+ "description": "",
644
+ "fields": [
645
+ {
646
+ "id": "name",
647
+ "name": "name",
648
+ "type": "Symbol",
649
+ "localized": false,
650
+ "required": false,
651
+ "validations": [],
652
+ "disabled": false,
653
+ "omitted": false
654
+ }
655
+ ]
656
+ },
657
+ {
658
+ "sys": {
659
+ "space": {
660
+ "sys": {
661
+ "type": "Link",
662
+ "linkType": "Space",
663
+ "id": "facgnwwgj5fe"
664
+ }
665
+ },
666
+ "id": "id_create_test",
667
+ "type": "ContentType",
668
+ "createdAt": "2017-03-09T13:28:50.850Z",
669
+ "updatedAt": "2017-03-09T13:28:50.867Z",
670
+ "createdBy": {
671
+ "sys": {
672
+ "type": "Link",
673
+ "linkType": "User",
674
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
675
+ }
676
+ },
677
+ "updatedBy": {
678
+ "sys": {
679
+ "type": "Link",
680
+ "linkType": "User",
681
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
682
+ }
683
+ },
684
+ "version": 1
685
+ },
686
+ "displayField": "name",
687
+ "name": "ID Create Test",
688
+ "description": "Something goes here...",
689
+ "fields": [
690
+ {
691
+ "id": "name",
692
+ "name": "Name",
693
+ "type": "Symbol",
694
+ "localized": false,
695
+ "required": false,
696
+ "validations": [],
697
+ "disabled": false,
698
+ "omitted": false
699
+ }
700
+ ]
701
+ },
702
+ {
703
+ "sys": {
704
+ "space": {
705
+ "sys": {
706
+ "type": "Link",
707
+ "linkType": "Space",
708
+ "id": "facgnwwgj5fe"
709
+ }
710
+ },
711
+ "id": "3uQBNcOiysuICOOK0MM8mU",
712
+ "type": "ContentType",
713
+ "createdAt": "2017-03-10T15:36:03.464Z",
714
+ "updatedAt": "2017-03-10T15:36:03.473Z",
715
+ "createdBy": {
716
+ "sys": {
717
+ "type": "Link",
718
+ "linkType": "User",
719
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
720
+ }
721
+ },
722
+ "updatedBy": {
723
+ "sys": {
724
+ "type": "Link",
725
+ "linkType": "User",
726
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
727
+ }
728
+ },
729
+ "version": 1
730
+ },
731
+ "displayField": "name",
732
+ "name": "Create Test",
733
+ "description": "Something goes here...",
734
+ "fields": [
735
+ {
736
+ "id": "name",
737
+ "name": "Name",
738
+ "type": "Symbol",
739
+ "localized": false,
740
+ "required": false,
741
+ "validations": [],
742
+ "disabled": false,
743
+ "omitted": false
744
+ }
745
+ ]
746
+ },
747
+ {
748
+ "sys": {
749
+ "space": {
750
+ "sys": {
751
+ "type": "Link",
752
+ "linkType": "Space",
753
+ "id": "facgnwwgj5fe"
754
+ }
755
+ },
756
+ "id": "7FPMXCj9f2qeuUc04cQ6GU",
757
+ "type": "ContentType",
758
+ "createdAt": "2017-03-09T13:28:47.344Z",
759
+ "updatedAt": "2017-03-09T13:28:47.356Z",
760
+ "createdBy": {
761
+ "sys": {
762
+ "type": "Link",
763
+ "linkType": "User",
764
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
765
+ }
766
+ },
767
+ "updatedBy": {
768
+ "sys": {
769
+ "type": "Link",
770
+ "linkType": "User",
771
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
772
+ }
773
+ },
774
+ "version": 1
775
+ },
776
+ "displayField": "name",
777
+ "name": "Create Test",
778
+ "description": "Something goes here...",
779
+ "fields": [
780
+ {
781
+ "id": "name",
782
+ "name": "Name",
783
+ "type": "Symbol",
784
+ "localized": false,
785
+ "required": false,
786
+ "validations": [],
787
+ "disabled": false,
788
+ "omitted": false
789
+ }
790
+ ]
791
+ },
792
+ {
793
+ "sys": {
794
+ "space": {
795
+ "sys": {
796
+ "type": "Link",
797
+ "linkType": "Space",
798
+ "id": "facgnwwgj5fe"
799
+ }
800
+ },
801
+ "id": "cat",
802
+ "type": "ContentType",
803
+ "createdAt": "2017-05-08T14:06:00.224Z",
804
+ "updatedAt": "2017-05-08T14:06:00.760Z",
805
+ "createdBy": {
806
+ "sys": {
807
+ "type": "Link",
808
+ "linkType": "User",
809
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
810
+ }
811
+ },
812
+ "updatedBy": {
813
+ "sys": {
814
+ "type": "Link",
815
+ "linkType": "User",
816
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
817
+ }
818
+ },
819
+ "publishedCounter": 1,
820
+ "version": 2,
821
+ "publishedBy": {
822
+ "sys": {
823
+ "type": "Link",
824
+ "linkType": "User",
825
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
826
+ }
827
+ },
828
+ "publishedVersion": 1,
829
+ "firstPublishedAt": "2017-05-08T14:06:00.749Z",
830
+ "publishedAt": "2017-05-08T14:06:00.749Z"
831
+ },
832
+ "displayField": "name",
833
+ "name": "Cat",
834
+ "description": "",
835
+ "fields": [
836
+ {
837
+ "id": "name",
838
+ "name": "Name",
839
+ "type": "Symbol",
840
+ "localized": false,
841
+ "required": false,
842
+ "validations": [],
843
+ "disabled": false,
844
+ "omitted": false
845
+ },
846
+ {
847
+ "id": "lives",
848
+ "name": "Lives",
849
+ "type": "Integer",
850
+ "localized": false,
851
+ "required": false,
852
+ "validations": [],
853
+ "disabled": false,
854
+ "omitted": false
855
+ },
856
+ {
857
+ "id": "bestFriend",
858
+ "name": "Best Friend",
859
+ "type": "Link",
860
+ "localized": false,
861
+ "required": false,
862
+ "validations": [],
863
+ "disabled": false,
864
+ "omitted": false,
865
+ "linkType": "Entry"
866
+ }
867
+ ]
868
+ },
869
+ {
870
+ "sys": {
871
+ "space": {
872
+ "sys": {
873
+ "type": "Link",
874
+ "linkType": "Space",
875
+ "id": "facgnwwgj5fe"
876
+ }
877
+ },
878
+ "id": "7zb3vZVDs4scCKC2GmE4ie",
879
+ "type": "ContentType",
880
+ "createdAt": "2017-03-10T15:17:42.408Z",
881
+ "updatedAt": "2017-03-10T15:17:42.428Z",
882
+ "createdBy": {
883
+ "sys": {
884
+ "type": "Link",
885
+ "linkType": "User",
886
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
887
+ }
888
+ },
889
+ "updatedBy": {
890
+ "sys": {
891
+ "type": "Link",
892
+ "linkType": "User",
893
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
894
+ }
895
+ },
896
+ "version": 1
897
+ },
898
+ "displayField": null,
899
+ "name": "Create Test No Fields",
900
+ "description": "Something goes here...",
901
+ "fields": []
902
+ },
903
+ {
904
+ "sys": {
905
+ "space": {
906
+ "sys": {
907
+ "type": "Link",
908
+ "linkType": "Space",
909
+ "id": "facgnwwgj5fe"
910
+ }
911
+ },
912
+ "id": "7wTtN8hq92iu2Mgq4aGYmq",
913
+ "type": "ContentType",
914
+ "createdAt": "2017-03-10T15:22:01.798Z",
915
+ "updatedAt": "2017-03-10T15:22:01.805Z",
916
+ "createdBy": {
917
+ "sys": {
918
+ "type": "Link",
919
+ "linkType": "User",
920
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
921
+ }
922
+ },
923
+ "updatedBy": {
924
+ "sys": {
925
+ "type": "Link",
926
+ "linkType": "User",
927
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
928
+ }
929
+ },
930
+ "version": 1
931
+ },
932
+ "displayField": null,
933
+ "name": "Create Test No Fields",
934
+ "description": "Something goes here...",
935
+ "fields": []
936
+ },
937
+ {
938
+ "sys": {
939
+ "space": {
940
+ "sys": {
941
+ "type": "Link",
942
+ "linkType": "Space",
943
+ "id": "facgnwwgj5fe"
944
+ }
945
+ },
946
+ "id": "59hDHlRevu6Aua80Qk460m",
947
+ "type": "ContentType",
948
+ "createdAt": "2017-03-09T13:59:13.566Z",
949
+ "updatedAt": "2017-03-09T13:59:13.571Z",
950
+ "createdBy": {
951
+ "sys": {
952
+ "type": "Link",
953
+ "linkType": "User",
954
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
955
+ }
956
+ },
957
+ "updatedBy": {
958
+ "sys": {
959
+ "type": "Link",
960
+ "linkType": "User",
961
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
962
+ }
963
+ },
964
+ "version": 1
965
+ },
966
+ "displayField": null,
967
+ "name": "Create Test No Fields",
968
+ "description": "Something goes here...",
969
+ "fields": []
970
+ },
971
+ {
972
+ "sys": {
973
+ "space": {
974
+ "sys": {
975
+ "type": "Link",
976
+ "linkType": "Space",
977
+ "id": "facgnwwgj5fe"
978
+ }
979
+ },
980
+ "id": "PDwi7T92YEUoec68Iu6eE",
981
+ "type": "ContentType",
982
+ "createdAt": "2017-03-10T15:31:01.728Z",
983
+ "updatedAt": "2017-03-10T15:31:01.735Z",
984
+ "createdBy": {
985
+ "sys": {
986
+ "type": "Link",
987
+ "linkType": "User",
988
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
989
+ }
990
+ },
991
+ "updatedBy": {
992
+ "sys": {
993
+ "type": "Link",
994
+ "linkType": "User",
995
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
996
+ }
997
+ },
998
+ "version": 1
999
+ },
1000
+ "displayField": null,
1001
+ "name": "Create Test No Fields",
1002
+ "description": "Something goes here...",
1003
+ "fields": []
1004
+ },
1005
+ {
1006
+ "sys": {
1007
+ "space": {
1008
+ "sys": {
1009
+ "type": "Link",
1010
+ "linkType": "Space",
1011
+ "id": "facgnwwgj5fe"
1012
+ }
1013
+ },
1014
+ "id": "5f4YC4yDxYgAc6IYqIIoeW",
1015
+ "type": "ContentType",
1016
+ "createdAt": "2017-03-10T15:36:40.895Z",
1017
+ "updatedAt": "2017-03-10T15:36:40.905Z",
1018
+ "createdBy": {
1019
+ "sys": {
1020
+ "type": "Link",
1021
+ "linkType": "User",
1022
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
1023
+ }
1024
+ },
1025
+ "updatedBy": {
1026
+ "sys": {
1027
+ "type": "Link",
1028
+ "linkType": "User",
1029
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
1030
+ }
1031
+ },
1032
+ "version": 1
1033
+ },
1034
+ "displayField": null,
1035
+ "name": "Create Test No Fields",
1036
+ "description": "Something goes here...",
1037
+ "fields": []
1038
+ }
1039
+ ]
1040
+ }
1041
+ http_version:
1042
+ recorded_at: Tue, 09 May 2017 13:31:32 GMT
1043
+ - request:
1044
+ method: get
1045
+ uri: https://api.contentful.com/spaces/facgnwwgj5fe/environments/master/entries/IJLRrADsqq2AmwcugoYeK
1046
+ body:
1047
+ encoding: US-ASCII
1048
+ string: ''
1049
+ headers:
1050
+ User-Agent:
1051
+ - RubyContentfulManagementGem/1.1.0
1052
+ Authorization:
1053
+ - Bearer <ACCESS_TOKEN>
1054
+ Content-Type:
1055
+ - application/vnd.contentful.management.v1+json
1056
+ Content-Length:
1057
+ - '0'
1058
+ Connection:
1059
+ - close
1060
+ Host:
1061
+ - api.contentful.com
1062
+ response:
1063
+ status:
1064
+ code: 200
1065
+ message: OK
1066
+ headers:
1067
+ Access-Control-Allow-Headers:
1068
+ - 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
1069
+ Access-Control-Allow-Methods:
1070
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
1071
+ Access-Control-Allow-Origin:
1072
+ - "*"
1073
+ Access-Control-Expose-Headers:
1074
+ - Etag
1075
+ Access-Control-Max-Age:
1076
+ - '1728000'
1077
+ Cf-Space-Id:
1078
+ - facgnwwgj5fe
1079
+ Content-Type:
1080
+ - application/vnd.contentful.management.v1+json
1081
+ Date:
1082
+ - Tue, 09 May 2017 13:31:33 GMT
1083
+ Etag:
1084
+ - '"1d6a058b73d1a1ff991fb28c743b9b95"'
1085
+ Server:
1086
+ - Contentful
1087
+ Strict-Transport-Security:
1088
+ - max-age=15768000
1089
+ X-Content-Type-Options:
1090
+ - nosniff
1091
+ X-Contentful-Ratelimit-Hour-Limit:
1092
+ - '36000'
1093
+ X-Contentful-Ratelimit-Hour-Remaining:
1094
+ - '35949'
1095
+ X-Contentful-Ratelimit-Reset:
1096
+ - '0'
1097
+ X-Contentful-Ratelimit-Second-Limit:
1098
+ - '10'
1099
+ X-Contentful-Ratelimit-Second-Remaining:
1100
+ - '9'
1101
+ X-Contentful-Request-Id:
1102
+ - 2c45895e56c719cfff3deb026ee4eb48
1103
+ Content-Length:
1104
+ - '1300'
1105
+ Connection:
1106
+ - Close
1107
+ Set-Cookie:
1108
+ - incap_ses_297_673446=VMCmW2v/w0/1E7+JiygfBLXEEVkAAAAAWHfQNdOYnZ4RmS1mp3+pEg==;
1109
+ path=/; Domain=.contentful.com
1110
+ - nlbi_673446=k+z8KdHQ+kOoNbfl6lKYhQAAAABhJbL+qPLW927cGqmRZ1P0; path=/; Domain=.contentful.com
1111
+ - visid_incap_673446=Ah4nRasqSDGAqouhgyqKrrXEEVkAAAAAQUIPAAAAAAC7RpNs0TsEqzCxv/bU7Nju;
1112
+ expires=Wed, 09 May 2018 07:00:14 GMT; path=/; Domain=.contentful.com
1113
+ X-Iinfo:
1114
+ - 10-64477885-64477903 NNNN CT(0 0 0) RT(1494336692757 108) q(0 0 0 -1) r(3
1115
+ 3) U5
1116
+ X-Cdn:
1117
+ - Incapsula
1118
+ body:
1119
+ encoding: UTF-8
1120
+ string: |
1121
+ {
1122
+ "fields": {
1123
+ "name": {
1124
+ "en-US": "Nyan Cat"
1125
+ },
1126
+ "lives": {
1127
+ "en-US": 1337
1128
+ },
1129
+ "bestFriend": {
1130
+ "en-US": {
1131
+ "sys": {
1132
+ "type": "Link",
1133
+ "linkType": "Entry",
1134
+ "id": "cq0MrAkH8A0Q8QsYquwMq"
1135
+ }
1136
+ }
1137
+ }
1138
+ },
1139
+ "sys": {
1140
+ "id": "IJLRrADsqq2AmwcugoYeK",
1141
+ "type": "Entry",
1142
+ "createdAt": "2017-05-08T14:06:14.367Z",
1143
+ "createdBy": {
1144
+ "sys": {
1145
+ "type": "Link",
1146
+ "linkType": "User",
1147
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
1148
+ }
1149
+ },
1150
+ "space": {
1151
+ "sys": {
1152
+ "type": "Link",
1153
+ "linkType": "Space",
1154
+ "id": "facgnwwgj5fe"
1155
+ }
1156
+ },
1157
+ "contentType": {
1158
+ "sys": {
1159
+ "type": "Link",
1160
+ "linkType": "ContentType",
1161
+ "id": "cat"
1162
+ }
1163
+ },
1164
+ "firstPublishedAt": "2017-05-08T14:06:25.154Z",
1165
+ "publishedCounter": 12,
1166
+ "publishedAt": "2017-05-09T13:29:48.510Z",
1167
+ "publishedBy": {
1168
+ "sys": {
1169
+ "type": "Link",
1170
+ "linkType": "User",
1171
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
1172
+ }
1173
+ },
1174
+ "publishedVersion": 43,
1175
+ "version": 44,
1176
+ "updatedAt": "2017-05-09T13:29:48.540Z",
1177
+ "updatedBy": {
1178
+ "sys": {
1179
+ "type": "Link",
1180
+ "linkType": "User",
1181
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
1182
+ }
1183
+ }
1184
+ }
1185
+ }
1186
+ http_version:
1187
+ recorded_at: Tue, 09 May 2017 13:31:33 GMT
1188
+ - request:
1189
+ method: get
1190
+ uri: https://cdn.contentful.com/spaces/facgnwwgj5fe/environments/master/entries?sys.id=IJLRrADsqq2AmwcugoYeK
1191
+ body:
1192
+ encoding: US-ASCII
1193
+ string: ''
1194
+ headers:
1195
+ User-Agent:
1196
+ - RubyContentfulGem/2.0.1
1197
+ Authorization:
1198
+ - Bearer 4d0f55d940975f78139daae5d965b463c0816e88ad16062d2c1ee3d6cb930521
1199
+ Content-Type:
1200
+ - application/vnd.contentful.delivery.v1+json
1201
+ Accept-Encoding:
1202
+ - gzip
1203
+ Connection:
1204
+ - close
1205
+ Host:
1206
+ - cdn.contentful.com
1207
+ response:
1208
+ status:
1209
+ code: 200
1210
+ message: OK
1211
+ headers:
1212
+ Access-Control-Allow-Headers:
1213
+ - 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
1214
+ Access-Control-Allow-Methods:
1215
+ - GET,HEAD,OPTIONS
1216
+ Access-Control-Allow-Origin:
1217
+ - "*"
1218
+ Access-Control-Expose-Headers:
1219
+ - Etag
1220
+ Access-Control-Max-Age:
1221
+ - '86400'
1222
+ Cache-Control:
1223
+ - max-age=0
1224
+ Content-Encoding:
1225
+ - gzip
1226
+ Content-Type:
1227
+ - application/vnd.contentful.delivery.v1+json
1228
+ Etag:
1229
+ - W/"512a87e4fc7466dd01ab009c308a1778"
1230
+ Server:
1231
+ - Contentful
1232
+ X-Content-Type-Options:
1233
+ - nosniff
1234
+ X-Contentful-Request-Id:
1235
+ - 134f4f37ffb4d165dc10711d6de7003b
1236
+ Content-Length:
1237
+ - '524'
1238
+ Accept-Ranges:
1239
+ - bytes
1240
+ Date:
1241
+ - Tue, 09 May 2017 13:31:34 GMT
1242
+ Via:
1243
+ - 1.1 varnish
1244
+ Age:
1245
+ - '0'
1246
+ Connection:
1247
+ - close
1248
+ X-Served-By:
1249
+ - cache-lax8643-LAX
1250
+ X-Cache:
1251
+ - MISS
1252
+ X-Cache-Hits:
1253
+ - '0'
1254
+ X-Timer:
1255
+ - S1494336694.918010,VS0,VE196
1256
+ Vary:
1257
+ - Accept-Encoding
1258
+ body:
1259
+ encoding: ASCII-8BIT
1260
+ string: !binary |-
1261
+ H4sIAAAAAAAAA62VyW7CMBCG7zwF8rkgJ5ACuUVd1IVWaqEHWvXgOga5BGcz
1262
+ RVHFu9dLEpw0gQs+oIztWfx7PvPb6XZBmqXA7f6KT2HwLCLCAl6SoAyIuf2F
1263
+ 3MNDjgIxbykrXdNIGFAZAd1QLpegtiknGxnwQwXUYWtZVKY0QlimKnboSaMW
1264
+ OaEmi5qmlK2BzHkYIjtbz/OaZypibQP15XGWCK/Ybrf6dpZEnqoY+/JbnVMP
1265
+ oH3uH6aviXedxrHtbXZ4uwoX5NEIX9Z1w3iSmQs4IYgT35OyABtaox50enA8
1266
+ t4YuvHRtp285w3fTYRv5DQ6TuTVw7Yk7HPcdC1YcEvJDUxoyqbttVI5Dxgnj
1267
+ uSLnk/bKiNsoMEb8tK5BiFGg2ouw3tuscCilB0tKAv/QjfI6AEMb5fKcIda9
1268
+ EmmM4wb0h8jt1mAwMqa/SMpvE0qYvPvziVC/Z1We7hUcw6fEW9+NPfgyfkkX
1269
+ 8Xb3FLcIkveZbj35+6k4ogwHW18dJ2dR5ytIOrDUQFMLT407VdlHmBKrp6gq
1270
+ z93GlXg3TMrMljmqWGVjUeN/3cFxwoaD/mTkmMCIgpsZK6BsdDEpq1TWjtk5
1271
+ FG+HrdS9htsxuVugy1/2/MVrAE/kKtC7Q1GU1dhTXaLpm1S0aYXvHNL8bwUD
1272
+ wuYHu/J/UenKw9tfQfJTWPvOvvMHj9gimB0HAAA=
1273
+ http_version:
1274
+ recorded_at: Tue, 09 May 2017 13:31:34 GMT
1275
+ - request:
1276
+ method: get
1277
+ uri: https://cdn.contentful.com/spaces/facgnwwgj5fe/environments/master/entries?sys.id=IJLRrADsqq2AmwcugoYeK
1278
+ body:
1279
+ encoding: US-ASCII
1280
+ string: ''
1281
+ headers:
1282
+ User-Agent:
1283
+ - RubyContentfulGem/2.0.1
1284
+ Authorization:
1285
+ - Bearer 4d0f55d940975f78139daae5d965b463c0816e88ad16062d2c1ee3d6cb930521
1286
+ Content-Type:
1287
+ - application/vnd.contentful.delivery.v1+json
1288
+ Accept-Encoding:
1289
+ - gzip
1290
+ Connection:
1291
+ - close
1292
+ Host:
1293
+ - cdn.contentful.com
1294
+ response:
1295
+ status:
1296
+ code: 200
1297
+ message: OK
1298
+ headers:
1299
+ Access-Control-Allow-Headers:
1300
+ - 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
1301
+ Access-Control-Allow-Methods:
1302
+ - GET,HEAD,OPTIONS
1303
+ Access-Control-Allow-Origin:
1304
+ - "*"
1305
+ Access-Control-Expose-Headers:
1306
+ - Etag
1307
+ Access-Control-Max-Age:
1308
+ - '86400'
1309
+ Cache-Control:
1310
+ - max-age=0
1311
+ Content-Encoding:
1312
+ - gzip
1313
+ Content-Type:
1314
+ - application/vnd.contentful.delivery.v1+json
1315
+ Etag:
1316
+ - W/"512a87e4fc7466dd01ab009c308a1778"
1317
+ Server:
1318
+ - Contentful
1319
+ X-Content-Type-Options:
1320
+ - nosniff
1321
+ X-Contentful-Request-Id:
1322
+ - 134f4f37ffb4d165dc10711d6de7003b
1323
+ Content-Length:
1324
+ - '524'
1325
+ Accept-Ranges:
1326
+ - bytes
1327
+ Date:
1328
+ - Tue, 09 May 2017 13:31:34 GMT
1329
+ Via:
1330
+ - 1.1 varnish
1331
+ Age:
1332
+ - '1'
1333
+ Connection:
1334
+ - close
1335
+ X-Served-By:
1336
+ - cache-lax8647-LAX
1337
+ X-Cache:
1338
+ - HIT
1339
+ X-Cache-Hits:
1340
+ - '1'
1341
+ X-Timer:
1342
+ - S1494336695.846918,VS0,VE0
1343
+ Vary:
1344
+ - Accept-Encoding
1345
+ body:
1346
+ encoding: ASCII-8BIT
1347
+ string: !binary |-
1348
+ H4sIAAAAAAAAA62VyW7CMBCG7zwF8rkgJ5ACuUVd1IVWaqEHWvXgOga5BGcz
1349
+ RVHFu9dLEpw0gQs+oIztWfx7PvPb6XZBmqXA7f6KT2HwLCLCAl6SoAyIuf2F
1350
+ 3MNDjgIxbykrXdNIGFAZAd1QLpegtiknGxnwQwXUYWtZVKY0QlimKnboSaMW
1351
+ OaEmi5qmlK2BzHkYIjtbz/OaZypibQP15XGWCK/Ybrf6dpZEnqoY+/JbnVMP
1352
+ oH3uH6aviXedxrHtbXZ4uwoX5NEIX9Z1w3iSmQs4IYgT35OyABtaox50enA8
1353
+ t4YuvHRtp285w3fTYRv5DQ6TuTVw7Yk7HPcdC1YcEvJDUxoyqbttVI5Dxgnj
1354
+ uSLnk/bKiNsoMEb8tK5BiFGg2ouw3tuscCilB0tKAv/QjfI6AEMb5fKcIda9
1355
+ EmmM4wb0h8jt1mAwMqa/SMpvE0qYvPvziVC/Z1We7hUcw6fEW9+NPfgyfkkX
1356
+ 8Xb3FLcIkveZbj35+6k4ogwHW18dJ2dR5ytIOrDUQFMLT407VdlHmBKrp6gq
1357
+ z93GlXg3TMrMljmqWGVjUeN/3cFxwoaD/mTkmMCIgpsZK6BsdDEpq1TWjtk5
1358
+ FG+HrdS9htsxuVugy1/2/MVrAE/kKtC7Q1GU1dhTXaLpm1S0aYXvHNL8bwUD
1359
+ wuYHu/J/UenKw9tfQfJTWPvOvvMHj9gimB0HAAA=
1360
+ http_version:
1361
+ recorded_at: Tue, 09 May 2017 13:31:34 GMT
1362
+ recorded_with: VCR 3.0.3