contentful-management 0.7.3 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/CHANGELOG.md +8 -0
- data/Gemfile +2 -0
- data/Guardfile +70 -0
- data/README.md +21 -2
- data/lib/contentful/management/client.rb +13 -9
- data/lib/contentful/management/content_type.rb +9 -3
- data/lib/contentful/management/dynamic_entry.rb +2 -2
- data/lib/contentful/management/entry.rb +19 -0
- data/lib/contentful/management/resource/field_aware.rb +45 -0
- data/lib/contentful/management/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/content_type/issue_79.yml +378 -0
- data/spec/fixtures/vcr_cassettes/entry/issue_61_1.yml +617 -0
- data/spec/fixtures/vcr_cassettes/entry/issue_61_2.yml +613 -0
- data/spec/fixtures/vcr_cassettes/entry/issue_61_3.yml +606 -0
- data/spec/fixtures/vcr_cassettes/entry/issue_61_4.yml +598 -0
- data/spec/fixtures/vcr_cassettes/entry/issue_61_5.yml +592 -0
- data/spec/fixtures/vcr_cassettes/entry/issue_61_6.yml +589 -0
- data/spec/fixtures/vcr_cassettes/entry/issue_61_7.yml +711 -0
- data/spec/fixtures/vcr_cassettes/entry/issue_61_8.yml +711 -0
- data/spec/fixtures/vcr_cassettes/entry/issue_61_spaces.yml +349 -0
- data/spec/fixtures/vcr_cassettes/entry/issue_73.yml +387 -0
- data/spec/lib/contentful/management/content_type_spec.rb +24 -0
- data/spec/lib/contentful/management/entry_spec.rb +223 -0
- metadata +27 -3
@@ -0,0 +1,711 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/2GmtCwDBcIu4giMgQGIIcq
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- RubyContentfulManagementGem/0.7.3
|
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
|
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
|
+
- u2viwgfeal0o
|
39
|
+
Content-Type:
|
40
|
+
- application/vnd.contentful.management.v1+json
|
41
|
+
Date:
|
42
|
+
- Wed, 20 Jan 2016 13:08:44 GMT
|
43
|
+
Etag:
|
44
|
+
- '"024cbf4776b2b351c71267b003573101"'
|
45
|
+
Server:
|
46
|
+
- nginx
|
47
|
+
Strict-Transport-Security:
|
48
|
+
- max-age=15768000
|
49
|
+
X-Content-Type-Options:
|
50
|
+
- nosniff
|
51
|
+
X-Contentful-Request-Id:
|
52
|
+
- content-api:3XUPAgbXJmsQYIAGYeSE8K
|
53
|
+
X-Powered-By:
|
54
|
+
- Express
|
55
|
+
Content-Length:
|
56
|
+
- '1153'
|
57
|
+
Connection:
|
58
|
+
- Close
|
59
|
+
body:
|
60
|
+
encoding: UTF-8
|
61
|
+
string: |
|
62
|
+
{
|
63
|
+
"fields": {
|
64
|
+
"name": {
|
65
|
+
"en-GB": "Test With Previously Empty Field"
|
66
|
+
},
|
67
|
+
"value": {
|
68
|
+
"en-GB": null
|
69
|
+
}
|
70
|
+
},
|
71
|
+
"sys": {
|
72
|
+
"id": "2GmtCwDBcIu4giMgQGIIcq",
|
73
|
+
"type": "Entry",
|
74
|
+
"createdAt": "2016-01-19T12:56:43.494Z",
|
75
|
+
"createdBy": {
|
76
|
+
"sys": {
|
77
|
+
"type": "Link",
|
78
|
+
"linkType": "User",
|
79
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
80
|
+
}
|
81
|
+
},
|
82
|
+
"space": {
|
83
|
+
"sys": {
|
84
|
+
"type": "Link",
|
85
|
+
"linkType": "Space",
|
86
|
+
"id": "u2viwgfeal0o"
|
87
|
+
}
|
88
|
+
},
|
89
|
+
"contentType": {
|
90
|
+
"sys": {
|
91
|
+
"type": "Link",
|
92
|
+
"linkType": "ContentType",
|
93
|
+
"id": "someType"
|
94
|
+
}
|
95
|
+
},
|
96
|
+
"firstPublishedAt": "2016-01-19T12:57:11.738Z",
|
97
|
+
"publishedCounter": 6,
|
98
|
+
"publishedAt": "2016-01-20T12:56:30.203Z",
|
99
|
+
"publishedBy": {
|
100
|
+
"sys": {
|
101
|
+
"type": "Link",
|
102
|
+
"linkType": "User",
|
103
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
104
|
+
}
|
105
|
+
},
|
106
|
+
"publishedVersion": 59,
|
107
|
+
"version": 60,
|
108
|
+
"updatedAt": "2016-01-20T12:56:30.215Z",
|
109
|
+
"updatedBy": {
|
110
|
+
"sys": {
|
111
|
+
"type": "Link",
|
112
|
+
"linkType": "User",
|
113
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
114
|
+
}
|
115
|
+
}
|
116
|
+
}
|
117
|
+
}
|
118
|
+
http_version:
|
119
|
+
recorded_at: Wed, 20 Jan 2016 13:08:44 GMT
|
120
|
+
- request:
|
121
|
+
method: get
|
122
|
+
uri: https://api.contentful.com/spaces/u2viwgfeal0o/content_types/someType
|
123
|
+
body:
|
124
|
+
encoding: US-ASCII
|
125
|
+
string: ''
|
126
|
+
headers:
|
127
|
+
User-Agent:
|
128
|
+
- RubyContentfulManagementGem/0.7.3
|
129
|
+
Authorization:
|
130
|
+
- Bearer <ACCESS_TOKEN>
|
131
|
+
Content-Type:
|
132
|
+
- application/vnd.contentful.management.v1+json
|
133
|
+
Content-Length:
|
134
|
+
- '0'
|
135
|
+
Connection:
|
136
|
+
- close
|
137
|
+
Host:
|
138
|
+
- api.contentful.com
|
139
|
+
response:
|
140
|
+
status:
|
141
|
+
code: 200
|
142
|
+
message: OK
|
143
|
+
headers:
|
144
|
+
Access-Control-Allow-Headers:
|
145
|
+
- 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
|
146
|
+
Access-Control-Allow-Methods:
|
147
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
148
|
+
Access-Control-Allow-Origin:
|
149
|
+
- "*"
|
150
|
+
Access-Control-Expose-Headers:
|
151
|
+
- Etag
|
152
|
+
Access-Control-Max-Age:
|
153
|
+
- '1728000'
|
154
|
+
Cf-Space-Id:
|
155
|
+
- u2viwgfeal0o
|
156
|
+
Content-Type:
|
157
|
+
- application/vnd.contentful.management.v1+json
|
158
|
+
Date:
|
159
|
+
- Wed, 20 Jan 2016 13:08:45 GMT
|
160
|
+
Etag:
|
161
|
+
- '"720d932d152cc930127c0ca782759540"'
|
162
|
+
Server:
|
163
|
+
- nginx
|
164
|
+
Strict-Transport-Security:
|
165
|
+
- max-age=15768000
|
166
|
+
X-Content-Type-Options:
|
167
|
+
- nosniff
|
168
|
+
X-Contentful-Request-Id:
|
169
|
+
- content-api:S23Qa2s3ioeEQEswwwCo8
|
170
|
+
X-Powered-By:
|
171
|
+
- Express
|
172
|
+
Content-Length:
|
173
|
+
- '1172'
|
174
|
+
Connection:
|
175
|
+
- Close
|
176
|
+
body:
|
177
|
+
encoding: UTF-8
|
178
|
+
string: |
|
179
|
+
{
|
180
|
+
"name": "SomeType",
|
181
|
+
"fields": [
|
182
|
+
{
|
183
|
+
"name": "name",
|
184
|
+
"id": "name",
|
185
|
+
"type": "Symbol"
|
186
|
+
},
|
187
|
+
{
|
188
|
+
"name": "value",
|
189
|
+
"id": "value",
|
190
|
+
"type": "Symbol",
|
191
|
+
"localized": true,
|
192
|
+
"validations": []
|
193
|
+
}
|
194
|
+
],
|
195
|
+
"description": "",
|
196
|
+
"displayField": "name",
|
197
|
+
"sys": {
|
198
|
+
"id": "someType",
|
199
|
+
"type": "ContentType",
|
200
|
+
"createdAt": "2015-12-07T13:32:02.610Z",
|
201
|
+
"createdBy": {
|
202
|
+
"sys": {
|
203
|
+
"type": "Link",
|
204
|
+
"linkType": "User",
|
205
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
206
|
+
}
|
207
|
+
},
|
208
|
+
"space": {
|
209
|
+
"sys": {
|
210
|
+
"type": "Link",
|
211
|
+
"linkType": "Space",
|
212
|
+
"id": "u2viwgfeal0o"
|
213
|
+
}
|
214
|
+
},
|
215
|
+
"firstPublishedAt": "2015-12-07T13:32:03.012Z",
|
216
|
+
"publishedCounter": 2,
|
217
|
+
"publishedAt": "2015-12-07T13:36:35.994Z",
|
218
|
+
"publishedBy": {
|
219
|
+
"sys": {
|
220
|
+
"type": "Link",
|
221
|
+
"linkType": "User",
|
222
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
223
|
+
}
|
224
|
+
},
|
225
|
+
"publishedVersion": 4,
|
226
|
+
"version": 5,
|
227
|
+
"updatedAt": "2015-12-07T13:36:36.026Z",
|
228
|
+
"updatedBy": {
|
229
|
+
"sys": {
|
230
|
+
"type": "Link",
|
231
|
+
"linkType": "User",
|
232
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
233
|
+
}
|
234
|
+
}
|
235
|
+
}
|
236
|
+
}
|
237
|
+
http_version:
|
238
|
+
recorded_at: Wed, 20 Jan 2016 13:08:46 GMT
|
239
|
+
- request:
|
240
|
+
method: put
|
241
|
+
uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/2GmtCwDBcIu4giMgQGIIcq
|
242
|
+
body:
|
243
|
+
encoding: UTF-8
|
244
|
+
string: '{"fields":{"name":{"en-GB":"Test With Previously Empty Field"},"value":{"en-GB":"goodbye"}}}'
|
245
|
+
headers:
|
246
|
+
User-Agent:
|
247
|
+
- RubyContentfulManagementGem/0.7.3
|
248
|
+
Authorization:
|
249
|
+
- Bearer <ACCESS_TOKEN>
|
250
|
+
Content-Type:
|
251
|
+
- application/vnd.contentful.management.v1+json
|
252
|
+
X-Contentful-Version:
|
253
|
+
- '60'
|
254
|
+
Connection:
|
255
|
+
- close
|
256
|
+
Host:
|
257
|
+
- api.contentful.com
|
258
|
+
response:
|
259
|
+
status:
|
260
|
+
code: 200
|
261
|
+
message: OK
|
262
|
+
headers:
|
263
|
+
Access-Control-Allow-Headers:
|
264
|
+
- 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
|
265
|
+
Access-Control-Allow-Methods:
|
266
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
267
|
+
Access-Control-Allow-Origin:
|
268
|
+
- "*"
|
269
|
+
Access-Control-Expose-Headers:
|
270
|
+
- Etag
|
271
|
+
Access-Control-Max-Age:
|
272
|
+
- '1728000'
|
273
|
+
Cf-Space-Id:
|
274
|
+
- u2viwgfeal0o
|
275
|
+
Content-Type:
|
276
|
+
- application/vnd.contentful.management.v1+json
|
277
|
+
Date:
|
278
|
+
- Wed, 20 Jan 2016 13:08:46 GMT
|
279
|
+
Etag:
|
280
|
+
- '"cd6c2ba47fce9a5251209a529dbc5db9"'
|
281
|
+
Server:
|
282
|
+
- nginx
|
283
|
+
Strict-Transport-Security:
|
284
|
+
- max-age=15768000
|
285
|
+
X-Content-Type-Options:
|
286
|
+
- nosniff
|
287
|
+
X-Contentful-Request-Id:
|
288
|
+
- content-api:1I8ijOCr9ucoQKiawQikcs
|
289
|
+
X-Powered-By:
|
290
|
+
- Express
|
291
|
+
Content-Length:
|
292
|
+
- '1158'
|
293
|
+
Connection:
|
294
|
+
- Close
|
295
|
+
body:
|
296
|
+
encoding: UTF-8
|
297
|
+
string: |
|
298
|
+
{
|
299
|
+
"fields": {
|
300
|
+
"name": {
|
301
|
+
"en-GB": "Test With Previously Empty Field"
|
302
|
+
},
|
303
|
+
"value": {
|
304
|
+
"en-GB": "goodbye"
|
305
|
+
}
|
306
|
+
},
|
307
|
+
"sys": {
|
308
|
+
"id": "2GmtCwDBcIu4giMgQGIIcq",
|
309
|
+
"type": "Entry",
|
310
|
+
"createdAt": "2016-01-19T12:56:43.494Z",
|
311
|
+
"createdBy": {
|
312
|
+
"sys": {
|
313
|
+
"type": "Link",
|
314
|
+
"linkType": "User",
|
315
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
316
|
+
}
|
317
|
+
},
|
318
|
+
"space": {
|
319
|
+
"sys": {
|
320
|
+
"type": "Link",
|
321
|
+
"linkType": "Space",
|
322
|
+
"id": "u2viwgfeal0o"
|
323
|
+
}
|
324
|
+
},
|
325
|
+
"contentType": {
|
326
|
+
"sys": {
|
327
|
+
"type": "Link",
|
328
|
+
"linkType": "ContentType",
|
329
|
+
"id": "someType"
|
330
|
+
}
|
331
|
+
},
|
332
|
+
"firstPublishedAt": "2016-01-19T12:57:11.738Z",
|
333
|
+
"publishedCounter": 6,
|
334
|
+
"publishedAt": "2016-01-20T12:56:30.203Z",
|
335
|
+
"publishedBy": {
|
336
|
+
"sys": {
|
337
|
+
"type": "Link",
|
338
|
+
"linkType": "User",
|
339
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
340
|
+
}
|
341
|
+
},
|
342
|
+
"publishedVersion": 59,
|
343
|
+
"version": 61,
|
344
|
+
"updatedAt": "2016-01-20T13:08:46.924Z",
|
345
|
+
"updatedBy": {
|
346
|
+
"sys": {
|
347
|
+
"type": "Link",
|
348
|
+
"linkType": "User",
|
349
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
350
|
+
}
|
351
|
+
}
|
352
|
+
}
|
353
|
+
}
|
354
|
+
http_version:
|
355
|
+
recorded_at: Wed, 20 Jan 2016 13:08:47 GMT
|
356
|
+
- request:
|
357
|
+
method: put
|
358
|
+
uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/2GmtCwDBcIu4giMgQGIIcq/published
|
359
|
+
body:
|
360
|
+
encoding: US-ASCII
|
361
|
+
string: ''
|
362
|
+
headers:
|
363
|
+
User-Agent:
|
364
|
+
- RubyContentfulManagementGem/0.7.3
|
365
|
+
Authorization:
|
366
|
+
- Bearer <ACCESS_TOKEN>
|
367
|
+
Content-Type:
|
368
|
+
- application/vnd.contentful.management.v1+json
|
369
|
+
X-Contentful-Version:
|
370
|
+
- '61'
|
371
|
+
Content-Length:
|
372
|
+
- '0'
|
373
|
+
Connection:
|
374
|
+
- close
|
375
|
+
Host:
|
376
|
+
- api.contentful.com
|
377
|
+
response:
|
378
|
+
status:
|
379
|
+
code: 200
|
380
|
+
message: OK
|
381
|
+
headers:
|
382
|
+
Access-Control-Allow-Headers:
|
383
|
+
- 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
|
384
|
+
Access-Control-Allow-Methods:
|
385
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
386
|
+
Access-Control-Allow-Origin:
|
387
|
+
- "*"
|
388
|
+
Access-Control-Expose-Headers:
|
389
|
+
- Etag
|
390
|
+
Access-Control-Max-Age:
|
391
|
+
- '1728000'
|
392
|
+
Cf-Space-Id:
|
393
|
+
- u2viwgfeal0o
|
394
|
+
Content-Type:
|
395
|
+
- application/vnd.contentful.management.v1+json
|
396
|
+
Date:
|
397
|
+
- Wed, 20 Jan 2016 13:08:47 GMT
|
398
|
+
Etag:
|
399
|
+
- '"670eec64d2c28afd2d7ad43a83982520"'
|
400
|
+
Server:
|
401
|
+
- nginx
|
402
|
+
Strict-Transport-Security:
|
403
|
+
- max-age=15768000
|
404
|
+
X-Content-Type-Options:
|
405
|
+
- nosniff
|
406
|
+
X-Contentful-Request-Id:
|
407
|
+
- content-api:36vlmsD9QICUO0WYo4WgWO
|
408
|
+
X-Powered-By:
|
409
|
+
- Express
|
410
|
+
Content-Length:
|
411
|
+
- '1158'
|
412
|
+
Connection:
|
413
|
+
- Close
|
414
|
+
body:
|
415
|
+
encoding: UTF-8
|
416
|
+
string: |
|
417
|
+
{
|
418
|
+
"fields": {
|
419
|
+
"name": {
|
420
|
+
"en-GB": "Test With Previously Empty Field"
|
421
|
+
},
|
422
|
+
"value": {
|
423
|
+
"en-GB": "goodbye"
|
424
|
+
}
|
425
|
+
},
|
426
|
+
"sys": {
|
427
|
+
"id": "2GmtCwDBcIu4giMgQGIIcq",
|
428
|
+
"type": "Entry",
|
429
|
+
"createdAt": "2016-01-19T12:56:43.494Z",
|
430
|
+
"createdBy": {
|
431
|
+
"sys": {
|
432
|
+
"type": "Link",
|
433
|
+
"linkType": "User",
|
434
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
435
|
+
}
|
436
|
+
},
|
437
|
+
"space": {
|
438
|
+
"sys": {
|
439
|
+
"type": "Link",
|
440
|
+
"linkType": "Space",
|
441
|
+
"id": "u2viwgfeal0o"
|
442
|
+
}
|
443
|
+
},
|
444
|
+
"contentType": {
|
445
|
+
"sys": {
|
446
|
+
"type": "Link",
|
447
|
+
"linkType": "ContentType",
|
448
|
+
"id": "someType"
|
449
|
+
}
|
450
|
+
},
|
451
|
+
"firstPublishedAt": "2016-01-19T12:57:11.738Z",
|
452
|
+
"publishedCounter": 7,
|
453
|
+
"publishedAt": "2016-01-20T13:08:47.661Z",
|
454
|
+
"publishedBy": {
|
455
|
+
"sys": {
|
456
|
+
"type": "Link",
|
457
|
+
"linkType": "User",
|
458
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
459
|
+
}
|
460
|
+
},
|
461
|
+
"publishedVersion": 61,
|
462
|
+
"version": 62,
|
463
|
+
"updatedAt": "2016-01-20T13:08:47.661Z",
|
464
|
+
"updatedBy": {
|
465
|
+
"sys": {
|
466
|
+
"type": "Link",
|
467
|
+
"linkType": "User",
|
468
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
469
|
+
}
|
470
|
+
}
|
471
|
+
}
|
472
|
+
}
|
473
|
+
http_version:
|
474
|
+
recorded_at: Wed, 20 Jan 2016 13:08:47 GMT
|
475
|
+
- request:
|
476
|
+
method: put
|
477
|
+
uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/2GmtCwDBcIu4giMgQGIIcq
|
478
|
+
body:
|
479
|
+
encoding: UTF-8
|
480
|
+
string: '{"fields":{"name":{"en-GB":"Test With Previously Empty Field"},"value":{"en-GB":null}}}'
|
481
|
+
headers:
|
482
|
+
User-Agent:
|
483
|
+
- RubyContentfulManagementGem/0.7.3
|
484
|
+
Authorization:
|
485
|
+
- Bearer <ACCESS_TOKEN>
|
486
|
+
Content-Type:
|
487
|
+
- application/vnd.contentful.management.v1+json
|
488
|
+
X-Contentful-Version:
|
489
|
+
- '62'
|
490
|
+
Connection:
|
491
|
+
- close
|
492
|
+
Host:
|
493
|
+
- api.contentful.com
|
494
|
+
response:
|
495
|
+
status:
|
496
|
+
code: 200
|
497
|
+
message: OK
|
498
|
+
headers:
|
499
|
+
Access-Control-Allow-Headers:
|
500
|
+
- 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
|
501
|
+
Access-Control-Allow-Methods:
|
502
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
503
|
+
Access-Control-Allow-Origin:
|
504
|
+
- "*"
|
505
|
+
Access-Control-Expose-Headers:
|
506
|
+
- Etag
|
507
|
+
Access-Control-Max-Age:
|
508
|
+
- '1728000'
|
509
|
+
Cf-Space-Id:
|
510
|
+
- u2viwgfeal0o
|
511
|
+
Content-Type:
|
512
|
+
- application/vnd.contentful.management.v1+json
|
513
|
+
Date:
|
514
|
+
- Wed, 20 Jan 2016 13:08:49 GMT
|
515
|
+
Etag:
|
516
|
+
- '"0a020599a947b5a24bd1cd50b5ebdbd3"'
|
517
|
+
Server:
|
518
|
+
- nginx
|
519
|
+
Strict-Transport-Security:
|
520
|
+
- max-age=15768000
|
521
|
+
X-Content-Type-Options:
|
522
|
+
- nosniff
|
523
|
+
X-Contentful-Request-Id:
|
524
|
+
- content-api:2ife3imfFqACoUgmWcSqqe
|
525
|
+
X-Powered-By:
|
526
|
+
- Express
|
527
|
+
Content-Length:
|
528
|
+
- '1153'
|
529
|
+
Connection:
|
530
|
+
- Close
|
531
|
+
body:
|
532
|
+
encoding: UTF-8
|
533
|
+
string: |
|
534
|
+
{
|
535
|
+
"fields": {
|
536
|
+
"name": {
|
537
|
+
"en-GB": "Test With Previously Empty Field"
|
538
|
+
},
|
539
|
+
"value": {
|
540
|
+
"en-GB": null
|
541
|
+
}
|
542
|
+
},
|
543
|
+
"sys": {
|
544
|
+
"id": "2GmtCwDBcIu4giMgQGIIcq",
|
545
|
+
"type": "Entry",
|
546
|
+
"createdAt": "2016-01-19T12:56:43.494Z",
|
547
|
+
"createdBy": {
|
548
|
+
"sys": {
|
549
|
+
"type": "Link",
|
550
|
+
"linkType": "User",
|
551
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
552
|
+
}
|
553
|
+
},
|
554
|
+
"space": {
|
555
|
+
"sys": {
|
556
|
+
"type": "Link",
|
557
|
+
"linkType": "Space",
|
558
|
+
"id": "u2viwgfeal0o"
|
559
|
+
}
|
560
|
+
},
|
561
|
+
"contentType": {
|
562
|
+
"sys": {
|
563
|
+
"type": "Link",
|
564
|
+
"linkType": "ContentType",
|
565
|
+
"id": "someType"
|
566
|
+
}
|
567
|
+
},
|
568
|
+
"firstPublishedAt": "2016-01-19T12:57:11.738Z",
|
569
|
+
"publishedCounter": 7,
|
570
|
+
"publishedAt": "2016-01-20T13:08:47.661Z",
|
571
|
+
"publishedBy": {
|
572
|
+
"sys": {
|
573
|
+
"type": "Link",
|
574
|
+
"linkType": "User",
|
575
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
576
|
+
}
|
577
|
+
},
|
578
|
+
"publishedVersion": 61,
|
579
|
+
"version": 63,
|
580
|
+
"updatedAt": "2016-01-20T13:08:49.162Z",
|
581
|
+
"updatedBy": {
|
582
|
+
"sys": {
|
583
|
+
"type": "Link",
|
584
|
+
"linkType": "User",
|
585
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
586
|
+
}
|
587
|
+
}
|
588
|
+
}
|
589
|
+
}
|
590
|
+
http_version:
|
591
|
+
recorded_at: Wed, 20 Jan 2016 13:08:49 GMT
|
592
|
+
- request:
|
593
|
+
method: put
|
594
|
+
uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/2GmtCwDBcIu4giMgQGIIcq/published
|
595
|
+
body:
|
596
|
+
encoding: US-ASCII
|
597
|
+
string: ''
|
598
|
+
headers:
|
599
|
+
User-Agent:
|
600
|
+
- RubyContentfulManagementGem/0.7.3
|
601
|
+
Authorization:
|
602
|
+
- Bearer <ACCESS_TOKEN>
|
603
|
+
Content-Type:
|
604
|
+
- application/vnd.contentful.management.v1+json
|
605
|
+
X-Contentful-Version:
|
606
|
+
- '63'
|
607
|
+
Content-Length:
|
608
|
+
- '0'
|
609
|
+
Connection:
|
610
|
+
- close
|
611
|
+
Host:
|
612
|
+
- api.contentful.com
|
613
|
+
response:
|
614
|
+
status:
|
615
|
+
code: 200
|
616
|
+
message: OK
|
617
|
+
headers:
|
618
|
+
Access-Control-Allow-Headers:
|
619
|
+
- 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
|
620
|
+
Access-Control-Allow-Methods:
|
621
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
622
|
+
Access-Control-Allow-Origin:
|
623
|
+
- "*"
|
624
|
+
Access-Control-Expose-Headers:
|
625
|
+
- Etag
|
626
|
+
Access-Control-Max-Age:
|
627
|
+
- '1728000'
|
628
|
+
Cf-Space-Id:
|
629
|
+
- u2viwgfeal0o
|
630
|
+
Content-Type:
|
631
|
+
- application/vnd.contentful.management.v1+json
|
632
|
+
Date:
|
633
|
+
- Wed, 20 Jan 2016 13:08:50 GMT
|
634
|
+
Etag:
|
635
|
+
- '"fe5cb41335853277e67e419092775f10"'
|
636
|
+
Server:
|
637
|
+
- nginx
|
638
|
+
Strict-Transport-Security:
|
639
|
+
- max-age=15768000
|
640
|
+
X-Content-Type-Options:
|
641
|
+
- nosniff
|
642
|
+
X-Contentful-Request-Id:
|
643
|
+
- content-api:3vWQJza3OUUGyQK0yGCYoK
|
644
|
+
X-Powered-By:
|
645
|
+
- Express
|
646
|
+
Content-Length:
|
647
|
+
- '1153'
|
648
|
+
Connection:
|
649
|
+
- Close
|
650
|
+
body:
|
651
|
+
encoding: UTF-8
|
652
|
+
string: |
|
653
|
+
{
|
654
|
+
"fields": {
|
655
|
+
"name": {
|
656
|
+
"en-GB": "Test With Previously Empty Field"
|
657
|
+
},
|
658
|
+
"value": {
|
659
|
+
"en-GB": null
|
660
|
+
}
|
661
|
+
},
|
662
|
+
"sys": {
|
663
|
+
"id": "2GmtCwDBcIu4giMgQGIIcq",
|
664
|
+
"type": "Entry",
|
665
|
+
"createdAt": "2016-01-19T12:56:43.494Z",
|
666
|
+
"createdBy": {
|
667
|
+
"sys": {
|
668
|
+
"type": "Link",
|
669
|
+
"linkType": "User",
|
670
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
671
|
+
}
|
672
|
+
},
|
673
|
+
"space": {
|
674
|
+
"sys": {
|
675
|
+
"type": "Link",
|
676
|
+
"linkType": "Space",
|
677
|
+
"id": "u2viwgfeal0o"
|
678
|
+
}
|
679
|
+
},
|
680
|
+
"contentType": {
|
681
|
+
"sys": {
|
682
|
+
"type": "Link",
|
683
|
+
"linkType": "ContentType",
|
684
|
+
"id": "someType"
|
685
|
+
}
|
686
|
+
},
|
687
|
+
"firstPublishedAt": "2016-01-19T12:57:11.738Z",
|
688
|
+
"publishedCounter": 8,
|
689
|
+
"publishedAt": "2016-01-20T13:08:50.011Z",
|
690
|
+
"publishedBy": {
|
691
|
+
"sys": {
|
692
|
+
"type": "Link",
|
693
|
+
"linkType": "User",
|
694
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
695
|
+
}
|
696
|
+
},
|
697
|
+
"publishedVersion": 63,
|
698
|
+
"version": 64,
|
699
|
+
"updatedAt": "2016-01-20T13:08:50.011Z",
|
700
|
+
"updatedBy": {
|
701
|
+
"sys": {
|
702
|
+
"type": "Link",
|
703
|
+
"linkType": "User",
|
704
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
705
|
+
}
|
706
|
+
}
|
707
|
+
}
|
708
|
+
}
|
709
|
+
http_version:
|
710
|
+
recorded_at: Wed, 20 Jan 2016 13:08:50 GMT
|
711
|
+
recorded_with: VCR 2.9.3
|