contentful-management 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +12 -29
  3. data/.rubocop_todo.yml +24 -0
  4. data/.travis.yml +1 -1
  5. data/.yardopts +4 -0
  6. data/CHANGELOG.md +12 -0
  7. data/Gemfile +1 -0
  8. data/Guardfile +39 -34
  9. data/README.md +42 -1
  10. data/Rakefile +2 -0
  11. data/contentful-management.gemspec +2 -1
  12. data/lib/contentful/management/api_key.rb +65 -0
  13. data/lib/contentful/management/array.rb +3 -2
  14. data/lib/contentful/management/asset.rb +124 -58
  15. data/lib/contentful/management/client.rb +60 -19
  16. data/lib/contentful/management/content_type.rb +104 -49
  17. data/lib/contentful/management/content_type_entry_methods_factory.rb +21 -0
  18. data/lib/contentful/management/dynamic_entry.rb +22 -18
  19. data/lib/contentful/management/entry.rb +138 -80
  20. data/lib/contentful/management/error.rb +23 -23
  21. data/lib/contentful/management/field.rb +16 -13
  22. data/lib/contentful/management/http_client.rb +29 -0
  23. data/lib/contentful/management/link.rb +3 -3
  24. data/lib/contentful/management/locale.rb +55 -26
  25. data/lib/contentful/management/location.rb +1 -1
  26. data/lib/contentful/management/request.rb +11 -12
  27. data/lib/contentful/management/resource.rb +27 -12
  28. data/lib/contentful/management/resource/array_like.rb +1 -1
  29. data/lib/contentful/management/resource/asset_fields.rb +1 -0
  30. data/lib/contentful/management/resource/entry_fields.rb +2 -0
  31. data/lib/contentful/management/resource/field_aware.rb +16 -5
  32. data/lib/contentful/management/resource/fields.rb +16 -8
  33. data/lib/contentful/management/resource/refresher.rb +1 -0
  34. data/lib/contentful/management/resource/system_properties.rb +13 -6
  35. data/lib/contentful/management/resource_builder.rb +43 -40
  36. data/lib/contentful/management/space.rb +67 -28
  37. data/lib/contentful/management/space_api_key_methods_factory.rb +15 -0
  38. data/lib/contentful/management/space_asset_methods_factory.rb +4 -0
  39. data/lib/contentful/management/space_association_all_published_method_factory.rb +11 -0
  40. data/lib/contentful/management/space_association_methods_factory.rb +4 -2
  41. data/lib/contentful/management/space_content_type_methods_factory.rb +4 -0
  42. data/lib/contentful/management/space_entry_methods_factory.rb +4 -0
  43. data/lib/contentful/management/space_locale_methods_factory.rb +2 -0
  44. data/lib/contentful/management/space_webhook_methods_factory.rb +2 -0
  45. data/lib/contentful/management/validation.rb +3 -2
  46. data/lib/contentful/management/version.rb +4 -1
  47. data/lib/contentful/management/webhook.rb +42 -21
  48. data/spec/fixtures/vcr_cassettes/api_key/all_for_space.yml +194 -0
  49. data/spec/fixtures/vcr_cassettes/api_key/create_for_space.yml +113 -0
  50. data/spec/fixtures/vcr_cassettes/api_key/find.yml +113 -0
  51. data/spec/fixtures/vcr_cassettes/api_key/find_for_space_not_found.yml +71 -0
  52. data/spec/fixtures/vcr_cassettes/asset/all_public.yml +112 -0
  53. data/spec/fixtures/vcr_cassettes/content_type/all_public.yml +106 -0
  54. data/spec/fixtures/vcr_cassettes/entry/all_public.yml +102 -0
  55. data/spec/fixtures/vcr_cassettes/locale/destroy.yml +330 -0
  56. data/spec/fixtures/vcr_cassettes/locale/update_both.yml +306 -0
  57. data/spec/fixtures/vcr_cassettes/locale/update_code.yml +306 -0
  58. data/spec/fixtures/vcr_cassettes/locale/update_name.yml +306 -0
  59. data/spec/fixtures/vcr_cassettes/space/api_key/all.yml +410 -0
  60. data/spec/fixtures/vcr_cassettes/space/api_key/create.yml +329 -0
  61. data/spec/fixtures/vcr_cassettes/space/api_key/find.yml +329 -0
  62. data/spec/fixtures/vcr_cassettes/space/asset/all_public.yml +328 -0
  63. data/spec/fixtures/vcr_cassettes/space/content_type/all_public.yml +322 -0
  64. data/spec/fixtures/vcr_cassettes/space/entry/all_public.yml +318 -0
  65. data/spec/lib/contentful/management/api_key_spec.rb +55 -0
  66. data/spec/lib/contentful/management/asset_spec.rb +10 -0
  67. data/spec/lib/contentful/management/content_type_spec.rb +10 -0
  68. data/spec/lib/contentful/management/entry_spec.rb +10 -0
  69. data/spec/lib/contentful/management/locale_spec.rb +58 -0
  70. data/spec/lib/contentful/management/space_spec.rb +53 -0
  71. metadata +58 -9
@@ -0,0 +1,322 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.contentful.com/spaces/bjwq7b86vgmm
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - RubyContentfulManagementGem/0.8.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
+ Accept-Ranges:
28
+ - bytes
29
+ Access-Control-Allow-Headers:
30
+ - Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation
31
+ Access-Control-Allow-Methods:
32
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
33
+ Access-Control-Allow-Origin:
34
+ - "*"
35
+ Access-Control-Expose-Headers:
36
+ - Etag
37
+ Access-Control-Max-Age:
38
+ - '1728000'
39
+ Cache-Control:
40
+ - max-age=0
41
+ Content-Type:
42
+ - application/vnd.contentful.management.v1+json
43
+ Date:
44
+ - Tue, 26 Jan 2016 21:20:22 GMT
45
+ Etag:
46
+ - '"0371a0ce2c5fae216391411caf850eba"'
47
+ Server:
48
+ - nginx
49
+ Status:
50
+ - 200 OK
51
+ Strict-Transport-Security:
52
+ - max-age=15768000
53
+ X-Content-Type-Options:
54
+ - nosniff
55
+ X-Contentful-Request-Id:
56
+ - 9e1-669020545
57
+ Content-Length:
58
+ - '461'
59
+ Connection:
60
+ - Close
61
+ body:
62
+ encoding: UTF-8
63
+ string: |+
64
+ {
65
+ "sys":{
66
+ "type":"Space",
67
+ "id":"bjwq7b86vgmm",
68
+ "version":93,
69
+ "createdBy":{
70
+ "sys":{
71
+ "type":"Link",
72
+ "linkType":"User",
73
+ "id":"4SejVrWT96dvL9IV4Nb7sQ"
74
+ }
75
+ },
76
+ "createdAt":"2016-01-21T13:21:17Z",
77
+ "updatedBy":{
78
+ "sys":{
79
+ "type":"Link",
80
+ "linkType":"User",
81
+ "id":"4SejVrWT96dvL9IV4Nb7sQ"
82
+ }
83
+ },
84
+ "updatedAt":"2016-01-26T21:04:49Z"
85
+ },
86
+ "name":"Integration Tests"
87
+ }
88
+
89
+ http_version:
90
+ recorded_at: Tue, 26 Jan 2016 21:20:22 GMT
91
+ - request:
92
+ method: get
93
+ uri: https://api.contentful.com/spaces/bjwq7b86vgmm/content_types
94
+ body:
95
+ encoding: US-ASCII
96
+ string: ''
97
+ headers:
98
+ User-Agent:
99
+ - RubyContentfulManagementGem/0.8.0
100
+ Authorization:
101
+ - Bearer <ACCESS_TOKEN>
102
+ Content-Type:
103
+ - application/vnd.contentful.management.v1+json
104
+ Content-Length:
105
+ - '0'
106
+ Connection:
107
+ - close
108
+ Host:
109
+ - api.contentful.com
110
+ response:
111
+ status:
112
+ code: 200
113
+ message: OK
114
+ headers:
115
+ Access-Control-Allow-Headers:
116
+ - 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
117
+ Access-Control-Allow-Methods:
118
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
119
+ Access-Control-Allow-Origin:
120
+ - "*"
121
+ Access-Control-Expose-Headers:
122
+ - Etag
123
+ Access-Control-Max-Age:
124
+ - '1728000'
125
+ Cf-Space-Id:
126
+ - bjwq7b86vgmm
127
+ Content-Type:
128
+ - application/vnd.contentful.management.v1+json
129
+ Date:
130
+ - Tue, 26 Jan 2016 21:20:23 GMT
131
+ Etag:
132
+ - '"9832307ed8bd540e40166f6a0b00e173"'
133
+ Server:
134
+ - nginx
135
+ Strict-Transport-Security:
136
+ - max-age=15768000
137
+ X-Content-Type-Options:
138
+ - nosniff
139
+ X-Contentful-Request-Id:
140
+ - content-api:5K9flAfRKMEo8Ek0qKQMQq
141
+ X-Powered-By:
142
+ - Express
143
+ Content-Length:
144
+ - '1514'
145
+ Connection:
146
+ - Close
147
+ body:
148
+ encoding: UTF-8
149
+ string: |
150
+ {
151
+ "sys": {
152
+ "type": "Array"
153
+ },
154
+ "total": 1,
155
+ "skip": 0,
156
+ "limit": 100,
157
+ "items": [
158
+ {
159
+ "displayField": "name",
160
+ "name": "TestCT",
161
+ "description": "",
162
+ "fields": [
163
+ {
164
+ "id": "name",
165
+ "name": "name",
166
+ "type": "Symbol",
167
+ "linkType": null,
168
+ "items": null,
169
+ "required": null,
170
+ "localized": null,
171
+ "validations": [],
172
+ "disabled": null
173
+ }
174
+ ],
175
+ "sys": {
176
+ "id": "testCt",
177
+ "type": "ContentType",
178
+ "createdAt": "2016-01-21T13:22:50.705Z",
179
+ "createdBy": {
180
+ "sys": {
181
+ "type": "Link",
182
+ "linkType": "User",
183
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
184
+ }
185
+ },
186
+ "space": {
187
+ "sys": {
188
+ "type": "Link",
189
+ "linkType": "Space",
190
+ "id": "bjwq7b86vgmm"
191
+ }
192
+ },
193
+ "firstPublishedAt": "2016-01-21T13:22:51.140Z",
194
+ "publishedCounter": 73,
195
+ "publishedAt": "2016-01-26T21:03:35.369Z",
196
+ "publishedBy": {
197
+ "sys": {
198
+ "type": "Link",
199
+ "linkType": "User",
200
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
201
+ }
202
+ },
203
+ "publishedVersion": 147,
204
+ "version": 148,
205
+ "updatedAt": "2016-01-26T21:03:35.382Z",
206
+ "updatedBy": {
207
+ "sys": {
208
+ "type": "Link",
209
+ "linkType": "User",
210
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
211
+ }
212
+ }
213
+ }
214
+ }
215
+ ]
216
+ }
217
+ http_version:
218
+ recorded_at: Tue, 26 Jan 2016 21:20:23 GMT
219
+ - request:
220
+ method: get
221
+ uri: https://api.contentful.com/spaces/bjwq7b86vgmm/public/content_types
222
+ body:
223
+ encoding: US-ASCII
224
+ string: ''
225
+ headers:
226
+ User-Agent:
227
+ - RubyContentfulManagementGem/0.8.0
228
+ Authorization:
229
+ - Bearer <ACCESS_TOKEN>
230
+ Content-Type:
231
+ - application/vnd.contentful.management.v1+json
232
+ Content-Length:
233
+ - '0'
234
+ Connection:
235
+ - close
236
+ Host:
237
+ - api.contentful.com
238
+ response:
239
+ status:
240
+ code: 200
241
+ message: OK
242
+ headers:
243
+ Access-Control-Allow-Headers:
244
+ - 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
245
+ Access-Control-Allow-Methods:
246
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
247
+ Access-Control-Allow-Origin:
248
+ - "*"
249
+ Access-Control-Expose-Headers:
250
+ - Etag
251
+ Access-Control-Max-Age:
252
+ - '1728000'
253
+ Cf-Space-Id:
254
+ - bjwq7b86vgmm
255
+ Content-Type:
256
+ - application/vnd.contentful.management.v1+json
257
+ Date:
258
+ - Tue, 26 Jan 2016 21:20:24 GMT
259
+ Etag:
260
+ - '"67f7d7ea590afed67e5d873f69fd71a4"'
261
+ Server:
262
+ - nginx
263
+ Strict-Transport-Security:
264
+ - max-age=15768000
265
+ X-Content-Type-Options:
266
+ - nosniff
267
+ X-Contentful-Request-Id:
268
+ - content-api:3rARUqI7rq4GmoGkSgsmUq
269
+ X-Powered-By:
270
+ - Express
271
+ Content-Length:
272
+ - '836'
273
+ Connection:
274
+ - Close
275
+ body:
276
+ encoding: UTF-8
277
+ string: |
278
+ {
279
+ "sys": {
280
+ "type": "Array"
281
+ },
282
+ "total": 1,
283
+ "skip": 0,
284
+ "limit": 100,
285
+ "items": [
286
+ {
287
+ "displayField": "name",
288
+ "name": "TestCT",
289
+ "description": "",
290
+ "fields": [
291
+ {
292
+ "id": "name",
293
+ "name": "name",
294
+ "type": "Symbol",
295
+ "linkType": null,
296
+ "items": null,
297
+ "required": null,
298
+ "localized": null,
299
+ "validations": [],
300
+ "disabled": null
301
+ }
302
+ ],
303
+ "sys": {
304
+ "space": {
305
+ "sys": {
306
+ "type": "Link",
307
+ "linkType": "Space",
308
+ "id": "bjwq7b86vgmm"
309
+ }
310
+ },
311
+ "type": "ContentType",
312
+ "id": "testCt",
313
+ "revision": 73,
314
+ "createdAt": "2016-01-21T13:22:51.140Z",
315
+ "updatedAt": "2016-01-26T21:03:35.369Z"
316
+ }
317
+ }
318
+ ]
319
+ }
320
+ http_version:
321
+ recorded_at: Tue, 26 Jan 2016 21:20:24 GMT
322
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,318 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.contentful.com/spaces/bjwq7b86vgmm
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - RubyContentfulManagementGem/0.8.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
+ Accept-Ranges:
28
+ - bytes
29
+ Access-Control-Allow-Headers:
30
+ - Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation
31
+ Access-Control-Allow-Methods:
32
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
33
+ Access-Control-Allow-Origin:
34
+ - "*"
35
+ Access-Control-Expose-Headers:
36
+ - Etag
37
+ Access-Control-Max-Age:
38
+ - '1728000'
39
+ Cache-Control:
40
+ - max-age=0
41
+ Content-Type:
42
+ - application/vnd.contentful.management.v1+json
43
+ Date:
44
+ - Tue, 26 Jan 2016 21:24:09 GMT
45
+ Etag:
46
+ - '"0371a0ce2c5fae216391411caf850eba"'
47
+ Server:
48
+ - nginx
49
+ Status:
50
+ - 200 OK
51
+ Strict-Transport-Security:
52
+ - max-age=15768000
53
+ X-Content-Type-Options:
54
+ - nosniff
55
+ X-Contentful-Request-Id:
56
+ - 9e1-669023042
57
+ Content-Length:
58
+ - '461'
59
+ Connection:
60
+ - Close
61
+ body:
62
+ encoding: UTF-8
63
+ string: |+
64
+ {
65
+ "sys":{
66
+ "type":"Space",
67
+ "id":"bjwq7b86vgmm",
68
+ "version":93,
69
+ "createdBy":{
70
+ "sys":{
71
+ "type":"Link",
72
+ "linkType":"User",
73
+ "id":"4SejVrWT96dvL9IV4Nb7sQ"
74
+ }
75
+ },
76
+ "createdAt":"2016-01-21T13:21:17Z",
77
+ "updatedBy":{
78
+ "sys":{
79
+ "type":"Link",
80
+ "linkType":"User",
81
+ "id":"4SejVrWT96dvL9IV4Nb7sQ"
82
+ }
83
+ },
84
+ "updatedAt":"2016-01-26T21:04:49Z"
85
+ },
86
+ "name":"Integration Tests"
87
+ }
88
+
89
+ http_version:
90
+ recorded_at: Tue, 26 Jan 2016 21:24:09 GMT
91
+ - request:
92
+ method: get
93
+ uri: https://api.contentful.com/spaces/bjwq7b86vgmm/content_types
94
+ body:
95
+ encoding: US-ASCII
96
+ string: ''
97
+ headers:
98
+ User-Agent:
99
+ - RubyContentfulManagementGem/0.8.0
100
+ Authorization:
101
+ - Bearer <ACCESS_TOKEN>
102
+ Content-Type:
103
+ - application/vnd.contentful.management.v1+json
104
+ Content-Length:
105
+ - '0'
106
+ Connection:
107
+ - close
108
+ Host:
109
+ - api.contentful.com
110
+ response:
111
+ status:
112
+ code: 200
113
+ message: OK
114
+ headers:
115
+ Access-Control-Allow-Headers:
116
+ - 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
117
+ Access-Control-Allow-Methods:
118
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
119
+ Access-Control-Allow-Origin:
120
+ - "*"
121
+ Access-Control-Expose-Headers:
122
+ - Etag
123
+ Access-Control-Max-Age:
124
+ - '1728000'
125
+ Cf-Space-Id:
126
+ - bjwq7b86vgmm
127
+ Content-Type:
128
+ - application/vnd.contentful.management.v1+json
129
+ Date:
130
+ - Tue, 26 Jan 2016 21:24:10 GMT
131
+ Etag:
132
+ - '"9832307ed8bd540e40166f6a0b00e173"'
133
+ Server:
134
+ - nginx
135
+ Strict-Transport-Security:
136
+ - max-age=15768000
137
+ X-Content-Type-Options:
138
+ - nosniff
139
+ X-Contentful-Request-Id:
140
+ - content-api:6yMb1Bo4FyAuImqISak4Ue
141
+ X-Powered-By:
142
+ - Express
143
+ Content-Length:
144
+ - '1514'
145
+ Connection:
146
+ - Close
147
+ body:
148
+ encoding: UTF-8
149
+ string: |
150
+ {
151
+ "sys": {
152
+ "type": "Array"
153
+ },
154
+ "total": 1,
155
+ "skip": 0,
156
+ "limit": 100,
157
+ "items": [
158
+ {
159
+ "displayField": "name",
160
+ "name": "TestCT",
161
+ "description": "",
162
+ "fields": [
163
+ {
164
+ "id": "name",
165
+ "name": "name",
166
+ "type": "Symbol",
167
+ "linkType": null,
168
+ "items": null,
169
+ "required": null,
170
+ "localized": null,
171
+ "validations": [],
172
+ "disabled": null
173
+ }
174
+ ],
175
+ "sys": {
176
+ "id": "testCt",
177
+ "type": "ContentType",
178
+ "createdAt": "2016-01-21T13:22:50.705Z",
179
+ "createdBy": {
180
+ "sys": {
181
+ "type": "Link",
182
+ "linkType": "User",
183
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
184
+ }
185
+ },
186
+ "space": {
187
+ "sys": {
188
+ "type": "Link",
189
+ "linkType": "Space",
190
+ "id": "bjwq7b86vgmm"
191
+ }
192
+ },
193
+ "firstPublishedAt": "2016-01-21T13:22:51.140Z",
194
+ "publishedCounter": 73,
195
+ "publishedAt": "2016-01-26T21:03:35.369Z",
196
+ "publishedBy": {
197
+ "sys": {
198
+ "type": "Link",
199
+ "linkType": "User",
200
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
201
+ }
202
+ },
203
+ "publishedVersion": 147,
204
+ "version": 148,
205
+ "updatedAt": "2016-01-26T21:03:35.382Z",
206
+ "updatedBy": {
207
+ "sys": {
208
+ "type": "Link",
209
+ "linkType": "User",
210
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
211
+ }
212
+ }
213
+ }
214
+ }
215
+ ]
216
+ }
217
+ http_version:
218
+ recorded_at: Tue, 26 Jan 2016 21:24:10 GMT
219
+ - request:
220
+ method: get
221
+ uri: https://api.contentful.com/spaces/bjwq7b86vgmm/public/entries
222
+ body:
223
+ encoding: US-ASCII
224
+ string: ''
225
+ headers:
226
+ User-Agent:
227
+ - RubyContentfulManagementGem/0.8.0
228
+ Authorization:
229
+ - Bearer <ACCESS_TOKEN>
230
+ Content-Type:
231
+ - application/vnd.contentful.management.v1+json
232
+ Content-Length:
233
+ - '0'
234
+ Connection:
235
+ - close
236
+ Host:
237
+ - api.contentful.com
238
+ response:
239
+ status:
240
+ code: 200
241
+ message: OK
242
+ headers:
243
+ Access-Control-Allow-Headers:
244
+ - 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
245
+ Access-Control-Allow-Methods:
246
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
247
+ Access-Control-Allow-Origin:
248
+ - "*"
249
+ Access-Control-Expose-Headers:
250
+ - Etag
251
+ Access-Control-Max-Age:
252
+ - '1728000'
253
+ Cf-Space-Id:
254
+ - bjwq7b86vgmm
255
+ Content-Type:
256
+ - application/vnd.contentful.management.v1+json
257
+ Date:
258
+ - Tue, 26 Jan 2016 21:24:10 GMT
259
+ Etag:
260
+ - '"1f726ad559b7a5cf82db6135bea8c132"'
261
+ Server:
262
+ - nginx
263
+ Strict-Transport-Security:
264
+ - max-age=15768000
265
+ X-Content-Type-Options:
266
+ - nosniff
267
+ X-Contentful-Request-Id:
268
+ - content-api:Vh5CpfPiOyoQKmqM6uSk8
269
+ X-Powered-By:
270
+ - Express
271
+ Content-Length:
272
+ - '723'
273
+ Connection:
274
+ - Close
275
+ body:
276
+ encoding: UTF-8
277
+ string: |
278
+ {
279
+ "sys": {
280
+ "type": "Array"
281
+ },
282
+ "total": 1,
283
+ "skip": 0,
284
+ "limit": 100,
285
+ "items": [
286
+ {
287
+ "fields": {
288
+ "name": {
289
+ "en-US": "testEntry"
290
+ }
291
+ },
292
+ "sys": {
293
+ "space": {
294
+ "sys": {
295
+ "type": "Link",
296
+ "linkType": "Space",
297
+ "id": "bjwq7b86vgmm"
298
+ }
299
+ },
300
+ "type": "Entry",
301
+ "contentType": {
302
+ "sys": {
303
+ "type": "Link",
304
+ "linkType": "ContentType",
305
+ "id": "testCt"
306
+ }
307
+ },
308
+ "id": "2KFh3j824U8qQeaIs06gou",
309
+ "revision": 39,
310
+ "createdAt": "2016-01-25T17:26:29.082Z",
311
+ "updatedAt": "2016-01-26T21:05:13.858Z"
312
+ }
313
+ }
314
+ ]
315
+ }
316
+ http_version:
317
+ recorded_at: Tue, 26 Jan 2016 21:24:10 GMT
318
+ recorded_with: VCR 2.9.3