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