contentful_model 0.2.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
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,1449 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://cdn.contentful.com/spaces/facgnwwgj5fe/environments/master/content_types?limit=1000
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - RubyContentfulGem/2.0.1
12
+ Authorization:
13
+ - Bearer 4d0f55d940975f78139daae5d965b463c0816e88ad16062d2c1ee3d6cb930521
14
+ Content-Type:
15
+ - application/vnd.contentful.delivery.v1+json
16
+ Accept-Encoding:
17
+ - gzip
18
+ Connection:
19
+ - close
20
+ Host:
21
+ - cdn.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
+ - GET,HEAD,OPTIONS
31
+ Access-Control-Allow-Origin:
32
+ - "*"
33
+ Access-Control-Expose-Headers:
34
+ - Etag
35
+ Access-Control-Max-Age:
36
+ - '86400'
37
+ Cache-Control:
38
+ - max-age=0
39
+ Content-Encoding:
40
+ - gzip
41
+ Content-Type:
42
+ - application/vnd.contentful.delivery.v1+json
43
+ Etag:
44
+ - W/"3c2eb059965a5ca225b2f5a86de05daa"
45
+ Server:
46
+ - Contentful
47
+ X-Content-Type-Options:
48
+ - nosniff
49
+ X-Contentful-Request-Id:
50
+ - 729b61ad72ff7775734280c2b02bef6e
51
+ Content-Length:
52
+ - '521'
53
+ Accept-Ranges:
54
+ - bytes
55
+ Date:
56
+ - Mon, 08 May 2017 14:10:41 GMT
57
+ Via:
58
+ - 1.1 varnish
59
+ Age:
60
+ - '39'
61
+ Connection:
62
+ - close
63
+ X-Served-By:
64
+ - cache-lax8650-LAX
65
+ X-Cache:
66
+ - HIT
67
+ X-Cache-Hits:
68
+ - '1'
69
+ X-Timer:
70
+ - S1494252642.502565,VS0,VE1
71
+ Vary:
72
+ - Accept-Encoding
73
+ body:
74
+ encoding: ASCII-8BIT
75
+ string: !binary |-
76
+ H4sIAAAAAAAAA+1WS08CMRC+8ytIz0LahUXsTY0mJsSLnDQeym4hldJd24JZ
77
+ Cf/dtvvqIqjxbWIv7Ew7j6/zMdN1q90GKlMAt9fm0wg6S6mRwLGUJANGtzmw
78
+ Z3SiCTf6npPUnKVGgE7gbMG0kRCEuYJpurAeb5zH3O9WGBdKpSSyscoTudJL
79
+ xiqcskxqxMQc2KD1MuHFfFwkfeU8bh1gscUzJdFMPDzM7sIptbDKtam+HdB8
80
+ gcImSTxnVRanidBUaBfUs4kkJZrGx/YuQADRYQf2OjAYBwiHCPf63XCIrn2D
81
+ ZRrvNghwH+EAdgfDsGEg6YoplghbhyLXKmkQM5Vykp0zyh1gQRZ1erlkr8GD
82
+ BGKqIslSnbsUS85LOGBq3dRFtNfSKFN+QY0Y9kwV5/lOWcOrbDFJeKNIgCcR
83
+ 4eyR2sSnhCvqlxBIer9kcs+mgU0mfM9mYphpSlJ6rUtdfN263+IO/zBRNVX6
84
+ E5iKhrgX4BB2w/DoTUzda+AxFb2TqWMf0xZVQQX2n6je//L3d9SIfJCnYQcO
85
+ x6iP4QBD2D3sv8rTlw0+gaenHqSvo+ml381dp/1V/bTu1zumBGcrqpoN340H
86
+ M45Gz7dKXBdmyM6o/OFB8SKwiWlR55JREe9Gd2L227sO7H3PfNckbMxX/wV1
87
+ JrR0z758la+jYlAa/W1r03oCtIL/UzYKAAA=
88
+ http_version:
89
+ recorded_at: Mon, 08 May 2017 14:10:41 GMT
90
+ - request:
91
+ method: get
92
+ uri: https://cdn.contentful.com/spaces/facgnwwgj5fe/environments/master/entries?content_type=cat&sys.id=IJLRrADsqq2AmwcugoYeK
93
+ body:
94
+ encoding: US-ASCII
95
+ string: ''
96
+ headers:
97
+ User-Agent:
98
+ - RubyContentfulGem/2.0.1
99
+ Authorization:
100
+ - Bearer 4d0f55d940975f78139daae5d965b463c0816e88ad16062d2c1ee3d6cb930521
101
+ Content-Type:
102
+ - application/vnd.contentful.delivery.v1+json
103
+ Accept-Encoding:
104
+ - gzip
105
+ Connection:
106
+ - close
107
+ Host:
108
+ - cdn.contentful.com
109
+ response:
110
+ status:
111
+ code: 200
112
+ message: OK
113
+ headers:
114
+ Access-Control-Allow-Headers:
115
+ - 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
116
+ Access-Control-Allow-Methods:
117
+ - GET,HEAD,OPTIONS
118
+ Access-Control-Allow-Origin:
119
+ - "*"
120
+ Access-Control-Expose-Headers:
121
+ - Etag
122
+ Access-Control-Max-Age:
123
+ - '86400'
124
+ Cache-Control:
125
+ - max-age=0
126
+ Content-Encoding:
127
+ - gzip
128
+ Content-Type:
129
+ - application/vnd.contentful.delivery.v1+json
130
+ Etag:
131
+ - W/"d45012aa22853e0bc06cb53248012099"
132
+ Server:
133
+ - Contentful
134
+ X-Content-Type-Options:
135
+ - nosniff
136
+ X-Contentful-Request-Id:
137
+ - a31d7411d4b8df21369ef96a05b66676
138
+ Content-Length:
139
+ - '515'
140
+ Accept-Ranges:
141
+ - bytes
142
+ Date:
143
+ - Mon, 08 May 2017 14:10:42 GMT
144
+ Via:
145
+ - 1.1 varnish
146
+ Age:
147
+ - '0'
148
+ Connection:
149
+ - close
150
+ X-Served-By:
151
+ - cache-lax8623-LAX
152
+ X-Cache:
153
+ - MISS
154
+ X-Cache-Hits:
155
+ - '0'
156
+ X-Timer:
157
+ - S1494252642.314122,VS0,VE129
158
+ Vary:
159
+ - Accept-Encoding
160
+ body:
161
+ encoding: ASCII-8BIT
162
+ string: !binary |-
163
+ H4sIAAAAAAAAA62UyW7CMBCG7zwF8rlUDpCy3CLaii5UaqEHWnFwHYNcgrMZ
164
+ UFTx7vWSBBOScMGHKGN7PDO/5/Nfo9kEcRKDYfNP/AqDJwERFnCiCCVAzB1u
165
+ 5B7uc+SJeUtZ8ZoGwoDK8OiGcrkEtU052cgDv9WB+thCFBUpDhCWobIdetLI
166
+ RU6oySynV8rWQMY8DhGdrWdpzlN1YmEDdWU5S4RXbL9f/dpLIqvKxiH/V3Xq
167
+ AbTP0/PrR+Tcx2HYdjZ7vF35c/JiHJ/n9cB4lJgLOCKIE9eRsoA2tHotaLdg
168
+ f2Z1h/Bu2LZvLbv7ZTpsA7fGwYa3g5514hCRHY2pz0SAtpE49hknjKeCXE/Z
169
+ kXFuqb4Y8cuyej5Gnuouwlqf08whVx4sKfHcYzPK2wAMbZTLW4JYcyTCGOV6
170
+ dEfkdqvT6RnTPyTmjxElTF799UQoXrNKT7cKDuEkctbjvgPf++/xPNzuJ2GF
171
+ IGmb6c6T34XCiDLsbV1VToqijpeBdESpBKYKnEp3qrRrkBKrl6DK667CSjwb
172
+ JmRmy9QqdrIxy/Fcd1APWLcjeLFNXkTC9YiVuhiQqXcvG6Aas2soXg1brnsB
173
+ tzq5K6BLH3ZdUhl4IlaG3hgFQVJgT3WJpm9wok0lfNeQ5rwVDAjL32vj3goy
174
+ HZ/+EyQXwjo0Do1/KeCF7hwHAAA=
175
+ http_version:
176
+ recorded_at: Mon, 08 May 2017 14:10:42 GMT
177
+ - request:
178
+ method: get
179
+ uri: https://api.contentful.com/spaces/facgnwwgj5fe
180
+ body:
181
+ encoding: US-ASCII
182
+ string: ''
183
+ headers:
184
+ User-Agent:
185
+ - RubyContentfulManagementGem/1.1.0
186
+ Authorization:
187
+ - Bearer <ACCESS_TOKEN>
188
+ Content-Type:
189
+ - application/vnd.contentful.management.v1+json
190
+ Content-Length:
191
+ - '0'
192
+ Connection:
193
+ - close
194
+ Host:
195
+ - api.contentful.com
196
+ response:
197
+ status:
198
+ code: 200
199
+ message: OK
200
+ headers:
201
+ Accept-Ranges:
202
+ - bytes
203
+ Access-Control-Allow-Headers:
204
+ - 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
205
+ Access-Control-Allow-Methods:
206
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
207
+ Access-Control-Allow-Origin:
208
+ - "*"
209
+ Access-Control-Expose-Headers:
210
+ - Etag
211
+ Access-Control-Max-Age:
212
+ - '1728000'
213
+ Cache-Control:
214
+ - max-age=0
215
+ Cf-Organization-Id:
216
+ - 4SsuxQCaMaemfIms52Jr8s
217
+ Cf-Space-Id:
218
+ - facgnwwgj5fe
219
+ Content-Type:
220
+ - application/vnd.contentful.management.v1+json
221
+ Date:
222
+ - Mon, 08 May 2017 14:10:43 GMT
223
+ Etag:
224
+ - W/"b29eab6ac82dc3cfce06e10fd402fdbf"
225
+ Server:
226
+ - Contentful
227
+ Strict-Transport-Security:
228
+ - max-age=15768000
229
+ X-Content-Type-Options:
230
+ - nosniff
231
+ X-Contentful-Ratelimit-Hour-Limit:
232
+ - '36000'
233
+ X-Contentful-Ratelimit-Hour-Remaining:
234
+ - '35949'
235
+ X-Contentful-Ratelimit-Reset:
236
+ - '0'
237
+ X-Contentful-Ratelimit-Second-Limit:
238
+ - '10'
239
+ X-Contentful-Ratelimit-Second-Remaining:
240
+ - '9'
241
+ X-Contentful-Request-Id:
242
+ - 4b5f56eb8f77d450d8c636fb23e7428c
243
+ X-Frame-Options:
244
+ - ALLOWALL
245
+ X-Xss-Protection:
246
+ - 1; mode=block
247
+ Content-Length:
248
+ - '469'
249
+ Connection:
250
+ - Close
251
+ Set-Cookie:
252
+ - incap_ses_297_673446=pPPwIz7mVlBSOY6HiygfBGN8EFkAAAAAFdqCIKNJ/SJP/ZY1e6Ydbw==;
253
+ path=/; Domain=.contentful.com
254
+ - nlbi_673446=qDkfWYV7fGO4FYky6lKYhQAAAAC6mO73NO0saugnX9+rhyjA; path=/; Domain=.contentful.com
255
+ - visid_incap_673446=Pwtypw6HQlaSSzsHt4NvQ2N8EFkAAAAAQUIPAAAAAACL0xl97/Up0XTtE3vbvBzY;
256
+ expires=Tue, 08 May 2018 07:00:13 GMT; path=/; Domain=.contentful.com
257
+ X-Iinfo:
258
+ - 2-28527043-28527065 NNNN CT(134 134 0) RT(1494252642747 162) q(0 0 2 -1) r(4
259
+ 4) U5
260
+ X-Cdn:
261
+ - Incapsula
262
+ body:
263
+ encoding: UTF-8
264
+ string: |+
265
+ {
266
+ "name":"management.py - playground",
267
+ "sys":{
268
+ "type":"Space",
269
+ "id":"facgnwwgj5fe",
270
+ "version":1,
271
+ "createdBy":{
272
+ "sys":{
273
+ "type":"Link",
274
+ "linkType":"User",
275
+ "id":"4SejVrWT96dvL9IV4Nb7sQ"
276
+ }
277
+ },
278
+ "createdAt":"2017-03-02T18:30:26Z",
279
+ "updatedBy":{
280
+ "sys":{
281
+ "type":"Link",
282
+ "linkType":"User",
283
+ "id":"4SejVrWT96dvL9IV4Nb7sQ"
284
+ }
285
+ },
286
+ "updatedAt":"2017-03-02T18:30:26Z"
287
+ }
288
+ }
289
+
290
+ http_version:
291
+ recorded_at: Mon, 08 May 2017 14:10:43 GMT
292
+ - request:
293
+ method: get
294
+ uri: https://api.contentful.com/spaces/facgnwwgj5fe/environments/master/content_types
295
+ body:
296
+ encoding: US-ASCII
297
+ string: ''
298
+ headers:
299
+ User-Agent:
300
+ - RubyContentfulManagementGem/1.1.0
301
+ Authorization:
302
+ - Bearer <ACCESS_TOKEN>
303
+ Content-Type:
304
+ - application/vnd.contentful.management.v1+json
305
+ Content-Length:
306
+ - '0'
307
+ Connection:
308
+ - close
309
+ Host:
310
+ - api.contentful.com
311
+ response:
312
+ status:
313
+ code: 200
314
+ message: OK
315
+ headers:
316
+ Access-Control-Allow-Headers:
317
+ - 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
318
+ Access-Control-Allow-Methods:
319
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
320
+ Access-Control-Allow-Origin:
321
+ - "*"
322
+ Access-Control-Expose-Headers:
323
+ - Etag
324
+ Access-Control-Max-Age:
325
+ - '1728000'
326
+ Cf-Space-Id:
327
+ - facgnwwgj5fe
328
+ Content-Type:
329
+ - application/vnd.contentful.management.v1+json
330
+ Date:
331
+ - Mon, 08 May 2017 14:10:47 GMT
332
+ Etag:
333
+ - '"eee9fa878abdf291c973e8542cba12e2"'
334
+ Server:
335
+ - Contentful
336
+ Strict-Transport-Security:
337
+ - max-age=15768000
338
+ X-Content-Type-Options:
339
+ - nosniff
340
+ X-Contentful-Ratelimit-Hour-Limit:
341
+ - '36000'
342
+ X-Contentful-Ratelimit-Hour-Remaining:
343
+ - '35948'
344
+ X-Contentful-Ratelimit-Reset:
345
+ - '0'
346
+ X-Contentful-Ratelimit-Second-Limit:
347
+ - '10'
348
+ X-Contentful-Ratelimit-Second-Remaining:
349
+ - '9'
350
+ X-Contentful-Request-Id:
351
+ - 15abaa33cfe439a16dddc09955ee2502
352
+ Content-Length:
353
+ - '16805'
354
+ Connection:
355
+ - Close
356
+ Set-Cookie:
357
+ - incap_ses_297_673446=zmQGKgfuLVwdRI6HiygfBGd8EFkAAAAAy0o5Ikoa1ki0ijdE3aXhsA==;
358
+ path=/; Domain=.contentful.com
359
+ - nlbi_673446=gOteTLBmNj2enToT6lKYhQAAAABmvuXPD8Pys1XDPU5Kio7u; path=/; Domain=.contentful.com
360
+ - visid_incap_673446=StEn0yd9Q2O7LUMFRa2OCGd8EFkAAAAAQUIPAAAAAACP2ZIDe7hE07IdHRVKp5JU;
361
+ expires=Tue, 08 May 2018 07:00:13 GMT; path=/; Domain=.contentful.com
362
+ X-Iinfo:
363
+ - 6-36684612-36684657 NNNN CT(139 148 0) RT(1494252643507 126) q(0 0 3 -1) r(41
364
+ 42) U5
365
+ X-Cdn:
366
+ - Incapsula
367
+ body:
368
+ encoding: UTF-8
369
+ string: |
370
+ {
371
+ "sys": {
372
+ "type": "Array"
373
+ },
374
+ "total": 15,
375
+ "skip": 0,
376
+ "limit": 100,
377
+ "items": [
378
+ {
379
+ "sys": {
380
+ "space": {
381
+ "sys": {
382
+ "type": "Link",
383
+ "linkType": "Space",
384
+ "id": "facgnwwgj5fe"
385
+ }
386
+ },
387
+ "id": "test",
388
+ "type": "ContentType",
389
+ "createdAt": "2017-03-02T18:32:49.570Z",
390
+ "updatedAt": "2017-03-02T18:32:50.586Z",
391
+ "createdBy": {
392
+ "sys": {
393
+ "type": "Link",
394
+ "linkType": "User",
395
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
396
+ }
397
+ },
398
+ "updatedBy": {
399
+ "sys": {
400
+ "type": "Link",
401
+ "linkType": "User",
402
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
403
+ }
404
+ },
405
+ "publishedCounter": 1,
406
+ "version": 2,
407
+ "publishedBy": {
408
+ "sys": {
409
+ "type": "Link",
410
+ "linkType": "User",
411
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
412
+ }
413
+ },
414
+ "publishedVersion": 1,
415
+ "firstPublishedAt": "2017-03-02T18:32:50.559Z",
416
+ "publishedAt": "2017-03-02T18:32:50.559Z"
417
+ },
418
+ "displayField": "name",
419
+ "name": "Test",
420
+ "description": "",
421
+ "fields": [
422
+ {
423
+ "id": "name",
424
+ "name": "name",
425
+ "type": "Symbol",
426
+ "localized": false,
427
+ "required": false,
428
+ "validations": [],
429
+ "disabled": false,
430
+ "omitted": false
431
+ }
432
+ ]
433
+ },
434
+ {
435
+ "sys": {
436
+ "space": {
437
+ "sys": {
438
+ "type": "Link",
439
+ "linkType": "Space",
440
+ "id": "facgnwwgj5fe"
441
+ }
442
+ },
443
+ "id": "bar",
444
+ "type": "ContentType",
445
+ "createdAt": "2017-03-02T19:34:07.111Z",
446
+ "updatedAt": "2017-03-10T15:31:05.565Z",
447
+ "createdBy": {
448
+ "sys": {
449
+ "type": "Link",
450
+ "linkType": "User",
451
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
452
+ }
453
+ },
454
+ "updatedBy": {
455
+ "sys": {
456
+ "type": "Link",
457
+ "linkType": "User",
458
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
459
+ }
460
+ },
461
+ "publishedCounter": 4,
462
+ "version": 9,
463
+ "firstPublishedAt": "2017-03-09T13:51:34.847Z"
464
+ },
465
+ "displayField": null,
466
+ "name": "bar",
467
+ "description": null,
468
+ "fields": [
469
+ {
470
+ "id": "test",
471
+ "name": "test",
472
+ "type": "Symbol",
473
+ "localized": false,
474
+ "required": false,
475
+ "validations": [],
476
+ "disabled": false,
477
+ "omitted": false
478
+ }
479
+ ]
480
+ },
481
+ {
482
+ "sys": {
483
+ "space": {
484
+ "sys": {
485
+ "type": "Link",
486
+ "linkType": "Space",
487
+ "id": "facgnwwgj5fe"
488
+ }
489
+ },
490
+ "id": "id_content_type_create_test",
491
+ "type": "ContentType",
492
+ "createdAt": "2017-03-10T15:36:41.568Z",
493
+ "updatedAt": "2017-03-10T15:36:41.583Z",
494
+ "createdBy": {
495
+ "sys": {
496
+ "type": "Link",
497
+ "linkType": "User",
498
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
499
+ }
500
+ },
501
+ "updatedBy": {
502
+ "sys": {
503
+ "type": "Link",
504
+ "linkType": "User",
505
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
506
+ }
507
+ },
508
+ "version": 1
509
+ },
510
+ "displayField": "name",
511
+ "name": "ID Create Test",
512
+ "description": "Something goes here...",
513
+ "fields": [
514
+ {
515
+ "id": "name",
516
+ "name": "Name",
517
+ "type": "Symbol",
518
+ "localized": false,
519
+ "required": false,
520
+ "validations": [],
521
+ "disabled": false,
522
+ "omitted": false
523
+ }
524
+ ]
525
+ },
526
+ {
527
+ "sys": {
528
+ "space": {
529
+ "sys": {
530
+ "type": "Link",
531
+ "linkType": "Space",
532
+ "id": "facgnwwgj5fe"
533
+ }
534
+ },
535
+ "id": "1JzBeA5EcEcyKUaqGeqImy",
536
+ "type": "ContentType",
537
+ "createdAt": "2017-03-10T15:22:01.234Z",
538
+ "updatedAt": "2017-03-10T15:40:48.767Z",
539
+ "createdBy": {
540
+ "sys": {
541
+ "type": "Link",
542
+ "linkType": "User",
543
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
544
+ }
545
+ },
546
+ "updatedBy": {
547
+ "sys": {
548
+ "type": "Link",
549
+ "linkType": "User",
550
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
551
+ }
552
+ },
553
+ "publishedCounter": 1,
554
+ "version": 3,
555
+ "firstPublishedAt": "2017-03-10T15:39:42.640Z"
556
+ },
557
+ "displayField": "name",
558
+ "name": "Create Test",
559
+ "description": "Something goes here...",
560
+ "fields": [
561
+ {
562
+ "id": "name",
563
+ "name": "Name",
564
+ "type": "Symbol",
565
+ "localized": false,
566
+ "required": false,
567
+ "validations": [],
568
+ "disabled": false,
569
+ "omitted": false
570
+ }
571
+ ]
572
+ },
573
+ {
574
+ "sys": {
575
+ "space": {
576
+ "sys": {
577
+ "type": "Link",
578
+ "linkType": "Space",
579
+ "id": "facgnwwgj5fe"
580
+ }
581
+ },
582
+ "id": "3kbg8jMFzqmagw6IO8YUyu",
583
+ "type": "ContentType",
584
+ "createdAt": "2017-03-10T15:31:01.043Z",
585
+ "updatedAt": "2017-03-10T15:31:01.049Z",
586
+ "createdBy": {
587
+ "sys": {
588
+ "type": "Link",
589
+ "linkType": "User",
590
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
591
+ }
592
+ },
593
+ "updatedBy": {
594
+ "sys": {
595
+ "type": "Link",
596
+ "linkType": "User",
597
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
598
+ }
599
+ },
600
+ "version": 1
601
+ },
602
+ "displayField": "name",
603
+ "name": "Create Test",
604
+ "description": "Something goes here...",
605
+ "fields": [
606
+ {
607
+ "id": "name",
608
+ "name": "Name",
609
+ "type": "Symbol",
610
+ "localized": false,
611
+ "required": false,
612
+ "validations": [],
613
+ "disabled": false,
614
+ "omitted": false
615
+ }
616
+ ]
617
+ },
618
+ {
619
+ "sys": {
620
+ "space": {
621
+ "sys": {
622
+ "type": "Link",
623
+ "linkType": "Space",
624
+ "id": "facgnwwgj5fe"
625
+ }
626
+ },
627
+ "id": "foo",
628
+ "type": "ContentType",
629
+ "createdAt": "2017-03-02T19:32:52.225Z",
630
+ "updatedAt": "2017-03-10T15:38:16.371Z",
631
+ "createdBy": {
632
+ "sys": {
633
+ "type": "Link",
634
+ "linkType": "User",
635
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
636
+ }
637
+ },
638
+ "updatedBy": {
639
+ "sys": {
640
+ "type": "Link",
641
+ "linkType": "User",
642
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
643
+ }
644
+ },
645
+ "publishedCounter": 3,
646
+ "version": 9,
647
+ "publishedBy": {
648
+ "sys": {
649
+ "type": "Link",
650
+ "linkType": "User",
651
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
652
+ }
653
+ },
654
+ "publishedVersion": 6,
655
+ "firstPublishedAt": "2017-03-02T21:51:34.581Z",
656
+ "publishedAt": "2017-03-02T22:41:20.685Z"
657
+ },
658
+ "displayField": "name",
659
+ "name": "foo",
660
+ "description": "",
661
+ "fields": [
662
+ {
663
+ "id": "name",
664
+ "name": "name",
665
+ "type": "Symbol",
666
+ "localized": false,
667
+ "required": false,
668
+ "validations": [],
669
+ "disabled": false,
670
+ "omitted": false
671
+ }
672
+ ]
673
+ },
674
+ {
675
+ "sys": {
676
+ "space": {
677
+ "sys": {
678
+ "type": "Link",
679
+ "linkType": "Space",
680
+ "id": "facgnwwgj5fe"
681
+ }
682
+ },
683
+ "id": "id_create_test",
684
+ "type": "ContentType",
685
+ "createdAt": "2017-03-09T13:28:50.850Z",
686
+ "updatedAt": "2017-03-09T13:28:50.867Z",
687
+ "createdBy": {
688
+ "sys": {
689
+ "type": "Link",
690
+ "linkType": "User",
691
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
692
+ }
693
+ },
694
+ "updatedBy": {
695
+ "sys": {
696
+ "type": "Link",
697
+ "linkType": "User",
698
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
699
+ }
700
+ },
701
+ "version": 1
702
+ },
703
+ "displayField": "name",
704
+ "name": "ID Create Test",
705
+ "description": "Something goes here...",
706
+ "fields": [
707
+ {
708
+ "id": "name",
709
+ "name": "Name",
710
+ "type": "Symbol",
711
+ "localized": false,
712
+ "required": false,
713
+ "validations": [],
714
+ "disabled": false,
715
+ "omitted": false
716
+ }
717
+ ]
718
+ },
719
+ {
720
+ "sys": {
721
+ "space": {
722
+ "sys": {
723
+ "type": "Link",
724
+ "linkType": "Space",
725
+ "id": "facgnwwgj5fe"
726
+ }
727
+ },
728
+ "id": "3uQBNcOiysuICOOK0MM8mU",
729
+ "type": "ContentType",
730
+ "createdAt": "2017-03-10T15:36:03.464Z",
731
+ "updatedAt": "2017-03-10T15:36:03.473Z",
732
+ "createdBy": {
733
+ "sys": {
734
+ "type": "Link",
735
+ "linkType": "User",
736
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
737
+ }
738
+ },
739
+ "updatedBy": {
740
+ "sys": {
741
+ "type": "Link",
742
+ "linkType": "User",
743
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
744
+ }
745
+ },
746
+ "version": 1
747
+ },
748
+ "displayField": "name",
749
+ "name": "Create Test",
750
+ "description": "Something goes here...",
751
+ "fields": [
752
+ {
753
+ "id": "name",
754
+ "name": "Name",
755
+ "type": "Symbol",
756
+ "localized": false,
757
+ "required": false,
758
+ "validations": [],
759
+ "disabled": false,
760
+ "omitted": false
761
+ }
762
+ ]
763
+ },
764
+ {
765
+ "sys": {
766
+ "space": {
767
+ "sys": {
768
+ "type": "Link",
769
+ "linkType": "Space",
770
+ "id": "facgnwwgj5fe"
771
+ }
772
+ },
773
+ "id": "7FPMXCj9f2qeuUc04cQ6GU",
774
+ "type": "ContentType",
775
+ "createdAt": "2017-03-09T13:28:47.344Z",
776
+ "updatedAt": "2017-03-09T13:28:47.356Z",
777
+ "createdBy": {
778
+ "sys": {
779
+ "type": "Link",
780
+ "linkType": "User",
781
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
782
+ }
783
+ },
784
+ "updatedBy": {
785
+ "sys": {
786
+ "type": "Link",
787
+ "linkType": "User",
788
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
789
+ }
790
+ },
791
+ "version": 1
792
+ },
793
+ "displayField": "name",
794
+ "name": "Create Test",
795
+ "description": "Something goes here...",
796
+ "fields": [
797
+ {
798
+ "id": "name",
799
+ "name": "Name",
800
+ "type": "Symbol",
801
+ "localized": false,
802
+ "required": false,
803
+ "validations": [],
804
+ "disabled": false,
805
+ "omitted": false
806
+ }
807
+ ]
808
+ },
809
+ {
810
+ "sys": {
811
+ "space": {
812
+ "sys": {
813
+ "type": "Link",
814
+ "linkType": "Space",
815
+ "id": "facgnwwgj5fe"
816
+ }
817
+ },
818
+ "id": "cat",
819
+ "type": "ContentType",
820
+ "createdAt": "2017-05-08T14:06:00.224Z",
821
+ "updatedAt": "2017-05-08T14:06:00.760Z",
822
+ "createdBy": {
823
+ "sys": {
824
+ "type": "Link",
825
+ "linkType": "User",
826
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
827
+ }
828
+ },
829
+ "updatedBy": {
830
+ "sys": {
831
+ "type": "Link",
832
+ "linkType": "User",
833
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
834
+ }
835
+ },
836
+ "publishedCounter": 1,
837
+ "version": 2,
838
+ "publishedBy": {
839
+ "sys": {
840
+ "type": "Link",
841
+ "linkType": "User",
842
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
843
+ }
844
+ },
845
+ "publishedVersion": 1,
846
+ "firstPublishedAt": "2017-05-08T14:06:00.749Z",
847
+ "publishedAt": "2017-05-08T14:06:00.749Z"
848
+ },
849
+ "displayField": "name",
850
+ "name": "Cat",
851
+ "description": "",
852
+ "fields": [
853
+ {
854
+ "id": "name",
855
+ "name": "Name",
856
+ "type": "Symbol",
857
+ "localized": false,
858
+ "required": false,
859
+ "validations": [],
860
+ "disabled": false,
861
+ "omitted": false
862
+ },
863
+ {
864
+ "id": "lives",
865
+ "name": "Lives",
866
+ "type": "Integer",
867
+ "localized": false,
868
+ "required": false,
869
+ "validations": [],
870
+ "disabled": false,
871
+ "omitted": false
872
+ },
873
+ {
874
+ "id": "bestFriend",
875
+ "name": "Best Friend",
876
+ "type": "Link",
877
+ "localized": false,
878
+ "required": false,
879
+ "validations": [],
880
+ "disabled": false,
881
+ "omitted": false,
882
+ "linkType": "Entry"
883
+ }
884
+ ]
885
+ },
886
+ {
887
+ "sys": {
888
+ "space": {
889
+ "sys": {
890
+ "type": "Link",
891
+ "linkType": "Space",
892
+ "id": "facgnwwgj5fe"
893
+ }
894
+ },
895
+ "id": "7zb3vZVDs4scCKC2GmE4ie",
896
+ "type": "ContentType",
897
+ "createdAt": "2017-03-10T15:17:42.408Z",
898
+ "updatedAt": "2017-03-10T15:17:42.428Z",
899
+ "createdBy": {
900
+ "sys": {
901
+ "type": "Link",
902
+ "linkType": "User",
903
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
904
+ }
905
+ },
906
+ "updatedBy": {
907
+ "sys": {
908
+ "type": "Link",
909
+ "linkType": "User",
910
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
911
+ }
912
+ },
913
+ "version": 1
914
+ },
915
+ "displayField": null,
916
+ "name": "Create Test No Fields",
917
+ "description": "Something goes here...",
918
+ "fields": []
919
+ },
920
+ {
921
+ "sys": {
922
+ "space": {
923
+ "sys": {
924
+ "type": "Link",
925
+ "linkType": "Space",
926
+ "id": "facgnwwgj5fe"
927
+ }
928
+ },
929
+ "id": "7wTtN8hq92iu2Mgq4aGYmq",
930
+ "type": "ContentType",
931
+ "createdAt": "2017-03-10T15:22:01.798Z",
932
+ "updatedAt": "2017-03-10T15:22:01.805Z",
933
+ "createdBy": {
934
+ "sys": {
935
+ "type": "Link",
936
+ "linkType": "User",
937
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
938
+ }
939
+ },
940
+ "updatedBy": {
941
+ "sys": {
942
+ "type": "Link",
943
+ "linkType": "User",
944
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
945
+ }
946
+ },
947
+ "version": 1
948
+ },
949
+ "displayField": null,
950
+ "name": "Create Test No Fields",
951
+ "description": "Something goes here...",
952
+ "fields": []
953
+ },
954
+ {
955
+ "sys": {
956
+ "space": {
957
+ "sys": {
958
+ "type": "Link",
959
+ "linkType": "Space",
960
+ "id": "facgnwwgj5fe"
961
+ }
962
+ },
963
+ "id": "59hDHlRevu6Aua80Qk460m",
964
+ "type": "ContentType",
965
+ "createdAt": "2017-03-09T13:59:13.566Z",
966
+ "updatedAt": "2017-03-09T13:59:13.571Z",
967
+ "createdBy": {
968
+ "sys": {
969
+ "type": "Link",
970
+ "linkType": "User",
971
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
972
+ }
973
+ },
974
+ "updatedBy": {
975
+ "sys": {
976
+ "type": "Link",
977
+ "linkType": "User",
978
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
979
+ }
980
+ },
981
+ "version": 1
982
+ },
983
+ "displayField": null,
984
+ "name": "Create Test No Fields",
985
+ "description": "Something goes here...",
986
+ "fields": []
987
+ },
988
+ {
989
+ "sys": {
990
+ "space": {
991
+ "sys": {
992
+ "type": "Link",
993
+ "linkType": "Space",
994
+ "id": "facgnwwgj5fe"
995
+ }
996
+ },
997
+ "id": "PDwi7T92YEUoec68Iu6eE",
998
+ "type": "ContentType",
999
+ "createdAt": "2017-03-10T15:31:01.728Z",
1000
+ "updatedAt": "2017-03-10T15:31:01.735Z",
1001
+ "createdBy": {
1002
+ "sys": {
1003
+ "type": "Link",
1004
+ "linkType": "User",
1005
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
1006
+ }
1007
+ },
1008
+ "updatedBy": {
1009
+ "sys": {
1010
+ "type": "Link",
1011
+ "linkType": "User",
1012
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
1013
+ }
1014
+ },
1015
+ "version": 1
1016
+ },
1017
+ "displayField": null,
1018
+ "name": "Create Test No Fields",
1019
+ "description": "Something goes here...",
1020
+ "fields": []
1021
+ },
1022
+ {
1023
+ "sys": {
1024
+ "space": {
1025
+ "sys": {
1026
+ "type": "Link",
1027
+ "linkType": "Space",
1028
+ "id": "facgnwwgj5fe"
1029
+ }
1030
+ },
1031
+ "id": "5f4YC4yDxYgAc6IYqIIoeW",
1032
+ "type": "ContentType",
1033
+ "createdAt": "2017-03-10T15:36:40.895Z",
1034
+ "updatedAt": "2017-03-10T15:36:40.905Z",
1035
+ "createdBy": {
1036
+ "sys": {
1037
+ "type": "Link",
1038
+ "linkType": "User",
1039
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
1040
+ }
1041
+ },
1042
+ "updatedBy": {
1043
+ "sys": {
1044
+ "type": "Link",
1045
+ "linkType": "User",
1046
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
1047
+ }
1048
+ },
1049
+ "version": 1
1050
+ },
1051
+ "displayField": null,
1052
+ "name": "Create Test No Fields",
1053
+ "description": "Something goes here...",
1054
+ "fields": []
1055
+ }
1056
+ ]
1057
+ }
1058
+ http_version:
1059
+ recorded_at: Mon, 08 May 2017 14:10:48 GMT
1060
+ - request:
1061
+ method: get
1062
+ uri: https://api.contentful.com/spaces/facgnwwgj5fe/environments/master/entries/IJLRrADsqq2AmwcugoYeK
1063
+ body:
1064
+ encoding: US-ASCII
1065
+ string: ''
1066
+ headers:
1067
+ User-Agent:
1068
+ - RubyContentfulManagementGem/1.1.0
1069
+ Authorization:
1070
+ - Bearer <ACCESS_TOKEN>
1071
+ Content-Type:
1072
+ - application/vnd.contentful.management.v1+json
1073
+ Content-Length:
1074
+ - '0'
1075
+ Connection:
1076
+ - close
1077
+ Host:
1078
+ - api.contentful.com
1079
+ response:
1080
+ status:
1081
+ code: 200
1082
+ message: OK
1083
+ headers:
1084
+ Access-Control-Allow-Headers:
1085
+ - 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
1086
+ Access-Control-Allow-Methods:
1087
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
1088
+ Access-Control-Allow-Origin:
1089
+ - "*"
1090
+ Access-Control-Expose-Headers:
1091
+ - Etag
1092
+ Access-Control-Max-Age:
1093
+ - '1728000'
1094
+ Cf-Space-Id:
1095
+ - facgnwwgj5fe
1096
+ Content-Type:
1097
+ - application/vnd.contentful.management.v1+json
1098
+ Date:
1099
+ - Mon, 08 May 2017 14:10:52 GMT
1100
+ Etag:
1101
+ - '"3dcac279dae7823db53c884768677ff5"'
1102
+ Server:
1103
+ - Contentful
1104
+ Strict-Transport-Security:
1105
+ - max-age=15768000
1106
+ X-Content-Type-Options:
1107
+ - nosniff
1108
+ X-Contentful-Ratelimit-Hour-Limit:
1109
+ - '36000'
1110
+ X-Contentful-Ratelimit-Hour-Remaining:
1111
+ - '35947'
1112
+ X-Contentful-Ratelimit-Reset:
1113
+ - '0'
1114
+ X-Contentful-Ratelimit-Second-Limit:
1115
+ - '10'
1116
+ X-Contentful-Ratelimit-Second-Remaining:
1117
+ - '9'
1118
+ X-Contentful-Request-Id:
1119
+ - 2cb03e1e72f02a47f0ede53d07b8a315
1120
+ Content-Length:
1121
+ - '1299'
1122
+ Connection:
1123
+ - Close
1124
+ Set-Cookie:
1125
+ - incap_ses_297_673446=dEmkHuuVrVeJTo6HiygfBGx8EFkAAAAAOcQvIIdTcu2oWL6naRXuRA==;
1126
+ path=/; Domain=.contentful.com
1127
+ - nlbi_673446=FRbONFmcjValgmL06lKYhQAAAAAmivaeyu9tpnYKFp/4qE1u; path=/; Domain=.contentful.com
1128
+ - visid_incap_673446=M+fno/jzTAymtzrc6A8j4Wx8EFkAAAAAQUIPAAAAAADdAn68tWIzNddMq44RNIuN;
1129
+ expires=Tue, 08 May 2018 07:00:14 GMT; path=/; Domain=.contentful.com
1130
+ X-Iinfo:
1131
+ - 4-39233614-39233634 NNNN CT(138 134 0) RT(1494252648147 160) q(0 0 2 -1) r(39
1132
+ 39) U5
1133
+ X-Cdn:
1134
+ - Incapsula
1135
+ body:
1136
+ encoding: UTF-8
1137
+ string: |
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": 2,
1166
+ "publishedAt": "2017-05-08T14:06:50.971Z",
1167
+ "publishedBy": {
1168
+ "sys": {
1169
+ "type": "Link",
1170
+ "linkType": "User",
1171
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
1172
+ }
1173
+ },
1174
+ "publishedVersion": 10,
1175
+ "version": 11,
1176
+ "updatedAt": "2017-05-08T14:06:50.999Z",
1177
+ "updatedBy": {
1178
+ "sys": {
1179
+ "type": "Link",
1180
+ "linkType": "User",
1181
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
1182
+ }
1183
+ }
1184
+ },
1185
+ "fields": {
1186
+ "name": {
1187
+ "en-US": "Nyan Cat"
1188
+ },
1189
+ "lives": {
1190
+ "en-US": 1337
1191
+ },
1192
+ "bestFriend": {
1193
+ "en-US": {
1194
+ "sys": {
1195
+ "id": "cq0MrAkH8A0Q8QsYquwMq",
1196
+ "linkType": "Entry",
1197
+ "type": "Link"
1198
+ }
1199
+ }
1200
+ }
1201
+ }
1202
+ }
1203
+ http_version:
1204
+ recorded_at: Mon, 08 May 2017 14:10:52 GMT
1205
+ - request:
1206
+ method: get
1207
+ uri: https://cdn.contentful.com/spaces/facgnwwgj5fe/environments/master/entries?sys.id=IJLRrADsqq2AmwcugoYeK
1208
+ body:
1209
+ encoding: US-ASCII
1210
+ string: ''
1211
+ headers:
1212
+ User-Agent:
1213
+ - RubyContentfulGem/2.0.1
1214
+ Authorization:
1215
+ - Bearer 4d0f55d940975f78139daae5d965b463c0816e88ad16062d2c1ee3d6cb930521
1216
+ Content-Type:
1217
+ - application/vnd.contentful.delivery.v1+json
1218
+ Accept-Encoding:
1219
+ - gzip
1220
+ Connection:
1221
+ - close
1222
+ Host:
1223
+ - cdn.contentful.com
1224
+ response:
1225
+ status:
1226
+ code: 200
1227
+ message: OK
1228
+ headers:
1229
+ Access-Control-Allow-Headers:
1230
+ - 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
1231
+ Access-Control-Allow-Methods:
1232
+ - GET,HEAD,OPTIONS
1233
+ Access-Control-Allow-Origin:
1234
+ - "*"
1235
+ Access-Control-Expose-Headers:
1236
+ - Etag
1237
+ Access-Control-Max-Age:
1238
+ - '86400'
1239
+ Cache-Control:
1240
+ - max-age=0
1241
+ Content-Encoding:
1242
+ - gzip
1243
+ Content-Type:
1244
+ - application/vnd.contentful.delivery.v1+json
1245
+ Etag:
1246
+ - W/"d45012aa22853e0bc06cb53248012099"
1247
+ Server:
1248
+ - Contentful
1249
+ X-Content-Type-Options:
1250
+ - nosniff
1251
+ X-Contentful-Request-Id:
1252
+ - 8e122b77084cbdc79dbdd45fc5da041f
1253
+ Content-Length:
1254
+ - '515'
1255
+ Accept-Ranges:
1256
+ - bytes
1257
+ Date:
1258
+ - Mon, 08 May 2017 14:10:53 GMT
1259
+ Via:
1260
+ - 1.1 varnish
1261
+ Age:
1262
+ - '0'
1263
+ Connection:
1264
+ - close
1265
+ X-Served-By:
1266
+ - cache-lax8644-LAX
1267
+ X-Cache:
1268
+ - MISS
1269
+ X-Cache-Hits:
1270
+ - '0'
1271
+ X-Timer:
1272
+ - S1494252653.959519,VS0,VE261
1273
+ Vary:
1274
+ - Accept-Encoding
1275
+ body:
1276
+ encoding: ASCII-8BIT
1277
+ string: !binary |-
1278
+ H4sIAAAAAAAAA62UyW7CMBCG7zwF8rlUDpCy3CLaii5UaqEHWnFwHYNcgrMZ
1279
+ UFTx7vWSBBOScMGHKGN7PDO/5/Nfo9kEcRKDYfNP/AqDJwERFnCiCCVAzB1u
1280
+ 5B7uc+SJeUtZ8ZoGwoDK8OiGcrkEtU052cgDv9WB+thCFBUpDhCWobIdetLI
1281
+ RU6oySynV8rWQMY8DhGdrWdpzlN1YmEDdWU5S4RXbL9f/dpLIqvKxiH/V3Xq
1282
+ AbTP0/PrR+Tcx2HYdjZ7vF35c/JiHJ/n9cB4lJgLOCKIE9eRsoA2tHotaLdg
1283
+ f2Z1h/Bu2LZvLbv7ZTpsA7fGwYa3g5514hCRHY2pz0SAtpE49hknjKeCXE/Z
1284
+ kXFuqb4Y8cuyej5Gnuouwlqf08whVx4sKfHcYzPK2wAMbZTLW4JYcyTCGOV6
1285
+ dEfkdqvT6RnTPyTmjxElTF799UQoXrNKT7cKDuEkctbjvgPf++/xPNzuJ2GF
1286
+ IGmb6c6T34XCiDLsbV1VToqijpeBdESpBKYKnEp3qrRrkBKrl6DK667CSjwb
1287
+ JmRmy9QqdrIxy/Fcd1APWLcjeLFNXkTC9YiVuhiQqXcvG6Aas2soXg1brnsB
1288
+ tzq5K6BLH3ZdUhl4IlaG3hgFQVJgT3WJpm9wok0lfNeQ5rwVDAjL32vj3goy
1289
+ HZ/+EyQXwjo0Do1/KeCF7hwHAAA=
1290
+ http_version:
1291
+ recorded_at: Mon, 08 May 2017 14:10:53 GMT
1292
+ - request:
1293
+ method: get
1294
+ uri: https://api.contentful.com/spaces/facgnwwgj5fe/environments/master/content_types/cat
1295
+ body:
1296
+ encoding: US-ASCII
1297
+ string: ''
1298
+ headers:
1299
+ User-Agent:
1300
+ - RubyContentfulManagementGem/1.1.0
1301
+ Authorization:
1302
+ - Bearer <ACCESS_TOKEN>
1303
+ Content-Type:
1304
+ - application/vnd.contentful.management.v1+json
1305
+ Content-Length:
1306
+ - '0'
1307
+ Connection:
1308
+ - close
1309
+ Host:
1310
+ - api.contentful.com
1311
+ response:
1312
+ status:
1313
+ code: 200
1314
+ message: OK
1315
+ headers:
1316
+ Access-Control-Allow-Headers:
1317
+ - 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
1318
+ Access-Control-Allow-Methods:
1319
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
1320
+ Access-Control-Allow-Origin:
1321
+ - "*"
1322
+ Access-Control-Expose-Headers:
1323
+ - Etag
1324
+ Access-Control-Max-Age:
1325
+ - '1728000'
1326
+ Cf-Space-Id:
1327
+ - facgnwwgj5fe
1328
+ Content-Type:
1329
+ - application/vnd.contentful.management.v1+json
1330
+ Date:
1331
+ - Mon, 08 May 2017 14:10:53 GMT
1332
+ Etag:
1333
+ - '"3ebdb893e2c6c3d675f9c1d97cc55d58"'
1334
+ Server:
1335
+ - Contentful
1336
+ Strict-Transport-Security:
1337
+ - max-age=15768000
1338
+ X-Content-Type-Options:
1339
+ - nosniff
1340
+ X-Contentful-Ratelimit-Hour-Limit:
1341
+ - '36000'
1342
+ X-Contentful-Ratelimit-Hour-Remaining:
1343
+ - '35946'
1344
+ X-Contentful-Ratelimit-Reset:
1345
+ - '0'
1346
+ X-Contentful-Ratelimit-Second-Limit:
1347
+ - '10'
1348
+ X-Contentful-Ratelimit-Second-Remaining:
1349
+ - '9'
1350
+ X-Contentful-Request-Id:
1351
+ - 3bf94d724fe1005dec593d36cb4cf26f
1352
+ Content-Length:
1353
+ - '1604'
1354
+ Connection:
1355
+ - Close
1356
+ Set-Cookie:
1357
+ - incap_ses_297_673446=LGdPZX0MvXP3Uo6HiygfBG58EFkAAAAAqJds0JrIWVeXdcdHwCS7UQ==;
1358
+ path=/; Domain=.contentful.com
1359
+ - nlbi_673446=iGA9MjTOSxobb4qD6lKYhQAAAACDXkAnT9IyQsZIY/+xIId2; path=/; Domain=.contentful.com
1360
+ - visid_incap_673446=dI7jUbLoRSuOceGAydRZbm58EFkAAAAAQUIPAAAAAADIhN6c9FvLXMlp+KaWakoV;
1361
+ expires=Tue, 08 May 2018 07:00:13 GMT; path=/; Domain=.contentful.com
1362
+ X-Iinfo:
1363
+ - 0-22362614-22362630 NNNN CT(140 138 0) RT(1494252653354 109) q(0 0 3 -1) r(6
1364
+ 6) U5
1365
+ X-Cdn:
1366
+ - Incapsula
1367
+ body:
1368
+ encoding: UTF-8
1369
+ string: |
1370
+ {
1371
+ "name": "Cat",
1372
+ "fields": [
1373
+ {
1374
+ "name": "Name",
1375
+ "id": "name",
1376
+ "type": "Symbol",
1377
+ "validations": [],
1378
+ "localized": false,
1379
+ "required": false,
1380
+ "disabled": false,
1381
+ "omitted": false
1382
+ },
1383
+ {
1384
+ "name": "Lives",
1385
+ "id": "lives",
1386
+ "type": "Integer",
1387
+ "validations": [],
1388
+ "localized": false,
1389
+ "required": false,
1390
+ "disabled": false,
1391
+ "omitted": false
1392
+ },
1393
+ {
1394
+ "name": "Best Friend",
1395
+ "id": "bestFriend",
1396
+ "type": "Link",
1397
+ "linkType": "Entry",
1398
+ "localized": false,
1399
+ "required": false,
1400
+ "disabled": false,
1401
+ "omitted": false,
1402
+ "validations": []
1403
+ }
1404
+ ],
1405
+ "displayField": "name",
1406
+ "description": "",
1407
+ "sys": {
1408
+ "id": "cat",
1409
+ "type": "ContentType",
1410
+ "createdAt": "2017-05-08T14:06:00.224Z",
1411
+ "createdBy": {
1412
+ "sys": {
1413
+ "type": "Link",
1414
+ "linkType": "User",
1415
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
1416
+ }
1417
+ },
1418
+ "space": {
1419
+ "sys": {
1420
+ "type": "Link",
1421
+ "linkType": "Space",
1422
+ "id": "facgnwwgj5fe"
1423
+ }
1424
+ },
1425
+ "firstPublishedAt": "2017-05-08T14:06:00.749Z",
1426
+ "publishedCounter": 1,
1427
+ "publishedAt": "2017-05-08T14:06:00.749Z",
1428
+ "publishedBy": {
1429
+ "sys": {
1430
+ "type": "Link",
1431
+ "linkType": "User",
1432
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
1433
+ }
1434
+ },
1435
+ "publishedVersion": 1,
1436
+ "version": 2,
1437
+ "updatedAt": "2017-05-08T14:06:00.760Z",
1438
+ "updatedBy": {
1439
+ "sys": {
1440
+ "type": "Link",
1441
+ "linkType": "User",
1442
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
1443
+ }
1444
+ }
1445
+ }
1446
+ }
1447
+ http_version:
1448
+ recorded_at: Mon, 08 May 2017 14:10:54 GMT
1449
+ recorded_with: VCR 3.0.3