contentful-management 0.7.3 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,598 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.contentful.com/spaces/u2viwgfeal0o/content_types/someType
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
+ - Tue, 19 Jan 2016 13:49:06 GMT
43
+ Etag:
44
+ - '"720d932d152cc930127c0ca782759540"'
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:464CNITSm4EEy6GW0I80y6
53
+ X-Powered-By:
54
+ - Express
55
+ Content-Length:
56
+ - '1172'
57
+ Connection:
58
+ - Close
59
+ body:
60
+ encoding: UTF-8
61
+ string: |
62
+ {
63
+ "name": "SomeType",
64
+ "fields": [
65
+ {
66
+ "name": "name",
67
+ "id": "name",
68
+ "type": "Symbol"
69
+ },
70
+ {
71
+ "name": "value",
72
+ "id": "value",
73
+ "type": "Symbol",
74
+ "localized": true,
75
+ "validations": []
76
+ }
77
+ ],
78
+ "description": "",
79
+ "displayField": "name",
80
+ "sys": {
81
+ "id": "someType",
82
+ "type": "ContentType",
83
+ "createdAt": "2015-12-07T13:32:02.610Z",
84
+ "createdBy": {
85
+ "sys": {
86
+ "type": "Link",
87
+ "linkType": "User",
88
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
89
+ }
90
+ },
91
+ "space": {
92
+ "sys": {
93
+ "type": "Link",
94
+ "linkType": "Space",
95
+ "id": "u2viwgfeal0o"
96
+ }
97
+ },
98
+ "firstPublishedAt": "2015-12-07T13:32:03.012Z",
99
+ "publishedCounter": 2,
100
+ "publishedAt": "2015-12-07T13:36:35.994Z",
101
+ "publishedBy": {
102
+ "sys": {
103
+ "type": "Link",
104
+ "linkType": "User",
105
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
106
+ }
107
+ },
108
+ "publishedVersion": 4,
109
+ "version": 5,
110
+ "updatedAt": "2015-12-07T13:36:36.026Z",
111
+ "updatedBy": {
112
+ "sys": {
113
+ "type": "Link",
114
+ "linkType": "User",
115
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
116
+ }
117
+ }
118
+ }
119
+ }
120
+ http_version:
121
+ recorded_at: Tue, 19 Jan 2016 13:49:03 GMT
122
+ - request:
123
+ method: put
124
+ uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/issue61_4
125
+ body:
126
+ encoding: UTF-8
127
+ string: '{"fields":{}}'
128
+ headers:
129
+ User-Agent:
130
+ - RubyContentfulManagementGem/0.7.3
131
+ Authorization:
132
+ - Bearer <ACCESS_TOKEN>
133
+ Content-Type:
134
+ - application/vnd.contentful.management.v1+json
135
+ X-Contentful-Content-Type:
136
+ - someType
137
+ Connection:
138
+ - close
139
+ Host:
140
+ - api.contentful.com
141
+ response:
142
+ status:
143
+ code: 201
144
+ message: Created
145
+ headers:
146
+ Access-Control-Allow-Headers:
147
+ - 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
148
+ Access-Control-Allow-Methods:
149
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
150
+ Access-Control-Allow-Origin:
151
+ - "*"
152
+ Access-Control-Expose-Headers:
153
+ - Etag
154
+ Access-Control-Max-Age:
155
+ - '1728000'
156
+ Cf-Space-Id:
157
+ - u2viwgfeal0o
158
+ Content-Type:
159
+ - application/vnd.contentful.management.v1+json
160
+ Date:
161
+ - Tue, 19 Jan 2016 13:49:07 GMT
162
+ Etag:
163
+ - '"3bb492ba97862322ce83fd9b65620bf2"'
164
+ Server:
165
+ - nginx
166
+ Strict-Transport-Security:
167
+ - max-age=15768000
168
+ X-Content-Type-Options:
169
+ - nosniff
170
+ X-Contentful-Request-Id:
171
+ - content-api:jVbkVAN8aWqmKiGKi6ECi
172
+ X-Powered-By:
173
+ - Express
174
+ Content-Length:
175
+ - '728'
176
+ Connection:
177
+ - Close
178
+ body:
179
+ encoding: UTF-8
180
+ string: |
181
+ {
182
+ "fields": {},
183
+ "sys": {
184
+ "id": "issue61_4",
185
+ "type": "Entry",
186
+ "version": 1,
187
+ "createdAt": "2016-01-19T13:49:07.842Z",
188
+ "createdBy": {
189
+ "sys": {
190
+ "type": "Link",
191
+ "linkType": "User",
192
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
193
+ }
194
+ },
195
+ "space": {
196
+ "sys": {
197
+ "type": "Link",
198
+ "linkType": "Space",
199
+ "id": "u2viwgfeal0o"
200
+ }
201
+ },
202
+ "contentType": {
203
+ "sys": {
204
+ "type": "Link",
205
+ "linkType": "ContentType",
206
+ "id": "someType"
207
+ }
208
+ },
209
+ "updatedAt": "2016-01-19T13:49:07.842Z",
210
+ "updatedBy": {
211
+ "sys": {
212
+ "type": "Link",
213
+ "linkType": "User",
214
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
215
+ }
216
+ }
217
+ }
218
+ }
219
+ http_version:
220
+ recorded_at: Tue, 19 Jan 2016 13:49:04 GMT
221
+ - request:
222
+ method: get
223
+ uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/issue61_4
224
+ body:
225
+ encoding: US-ASCII
226
+ string: ''
227
+ headers:
228
+ User-Agent:
229
+ - RubyContentfulManagementGem/0.7.3
230
+ Authorization:
231
+ - Bearer <ACCESS_TOKEN>
232
+ Content-Type:
233
+ - application/vnd.contentful.management.v1+json
234
+ Content-Length:
235
+ - '0'
236
+ Connection:
237
+ - close
238
+ Host:
239
+ - api.contentful.com
240
+ response:
241
+ status:
242
+ code: 200
243
+ message: OK
244
+ headers:
245
+ Access-Control-Allow-Headers:
246
+ - 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
247
+ Access-Control-Allow-Methods:
248
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
249
+ Access-Control-Allow-Origin:
250
+ - "*"
251
+ Access-Control-Expose-Headers:
252
+ - Etag
253
+ Access-Control-Max-Age:
254
+ - '1728000'
255
+ Cf-Space-Id:
256
+ - u2viwgfeal0o
257
+ Content-Type:
258
+ - application/vnd.contentful.management.v1+json
259
+ Date:
260
+ - Tue, 19 Jan 2016 13:49:08 GMT
261
+ Etag:
262
+ - '"e587700e3d5c01c1e4198cab25f743a5"'
263
+ Server:
264
+ - nginx
265
+ Strict-Transport-Security:
266
+ - max-age=15768000
267
+ X-Content-Type-Options:
268
+ - nosniff
269
+ X-Contentful-Request-Id:
270
+ - content-api:43bYspVpCoSGwKg8Ic20GE
271
+ X-Powered-By:
272
+ - Express
273
+ Content-Length:
274
+ - '728'
275
+ Connection:
276
+ - Close
277
+ body:
278
+ encoding: UTF-8
279
+ string: |
280
+ {
281
+ "fields": {},
282
+ "sys": {
283
+ "id": "issue61_4",
284
+ "type": "Entry",
285
+ "createdAt": "2016-01-19T13:49:07.842Z",
286
+ "createdBy": {
287
+ "sys": {
288
+ "type": "Link",
289
+ "linkType": "User",
290
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
291
+ }
292
+ },
293
+ "space": {
294
+ "sys": {
295
+ "type": "Link",
296
+ "linkType": "Space",
297
+ "id": "u2viwgfeal0o"
298
+ }
299
+ },
300
+ "contentType": {
301
+ "sys": {
302
+ "type": "Link",
303
+ "linkType": "ContentType",
304
+ "id": "someType"
305
+ }
306
+ },
307
+ "version": 1,
308
+ "updatedAt": "2016-01-19T13:49:07.859Z",
309
+ "updatedBy": {
310
+ "sys": {
311
+ "type": "Link",
312
+ "linkType": "User",
313
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
314
+ }
315
+ }
316
+ }
317
+ }
318
+ http_version:
319
+ recorded_at: Tue, 19 Jan 2016 13:49:04 GMT
320
+ - request:
321
+ method: put
322
+ uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/issue61_4
323
+ body:
324
+ encoding: UTF-8
325
+ string: '{"fields":{"value":{"en-GB":"goodbye"}}}'
326
+ headers:
327
+ User-Agent:
328
+ - RubyContentfulManagementGem/0.7.3
329
+ Authorization:
330
+ - Bearer <ACCESS_TOKEN>
331
+ Content-Type:
332
+ - application/vnd.contentful.management.v1+json
333
+ X-Contentful-Version:
334
+ - '1'
335
+ Connection:
336
+ - close
337
+ Host:
338
+ - api.contentful.com
339
+ response:
340
+ status:
341
+ code: 200
342
+ message: OK
343
+ headers:
344
+ Access-Control-Allow-Headers:
345
+ - 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
346
+ Access-Control-Allow-Methods:
347
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
348
+ Access-Control-Allow-Origin:
349
+ - "*"
350
+ Access-Control-Expose-Headers:
351
+ - Etag
352
+ Access-Control-Max-Age:
353
+ - '1728000'
354
+ Cf-Space-Id:
355
+ - u2viwgfeal0o
356
+ Content-Type:
357
+ - application/vnd.contentful.management.v1+json
358
+ Date:
359
+ - Tue, 19 Jan 2016 13:49:09 GMT
360
+ Etag:
361
+ - '"8953a3ad7fccdcfb2b276e50477e80c3"'
362
+ Server:
363
+ - nginx
364
+ Strict-Transport-Security:
365
+ - max-age=15768000
366
+ X-Content-Type-Options:
367
+ - nosniff
368
+ X-Contentful-Request-Id:
369
+ - content-api:3VWliguFO0sq4AA2cQceim
370
+ X-Powered-By:
371
+ - Express
372
+ Content-Length:
373
+ - '777'
374
+ Connection:
375
+ - Close
376
+ body:
377
+ encoding: UTF-8
378
+ string: |
379
+ {
380
+ "fields": {
381
+ "value": {
382
+ "en-GB": "goodbye"
383
+ }
384
+ },
385
+ "sys": {
386
+ "id": "issue61_4",
387
+ "type": "Entry",
388
+ "createdAt": "2016-01-19T13:49:07.842Z",
389
+ "createdBy": {
390
+ "sys": {
391
+ "type": "Link",
392
+ "linkType": "User",
393
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
394
+ }
395
+ },
396
+ "space": {
397
+ "sys": {
398
+ "type": "Link",
399
+ "linkType": "Space",
400
+ "id": "u2viwgfeal0o"
401
+ }
402
+ },
403
+ "contentType": {
404
+ "sys": {
405
+ "type": "Link",
406
+ "linkType": "ContentType",
407
+ "id": "someType"
408
+ }
409
+ },
410
+ "version": 2,
411
+ "updatedAt": "2016-01-19T13:49:09.453Z",
412
+ "updatedBy": {
413
+ "sys": {
414
+ "type": "Link",
415
+ "linkType": "User",
416
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
417
+ }
418
+ }
419
+ }
420
+ }
421
+ http_version:
422
+ recorded_at: Tue, 19 Jan 2016 13:49:05 GMT
423
+ - request:
424
+ method: put
425
+ uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/issue61_4/published
426
+ body:
427
+ encoding: US-ASCII
428
+ string: ''
429
+ headers:
430
+ User-Agent:
431
+ - RubyContentfulManagementGem/0.7.3
432
+ Authorization:
433
+ - Bearer <ACCESS_TOKEN>
434
+ Content-Type:
435
+ - application/vnd.contentful.management.v1+json
436
+ X-Contentful-Version:
437
+ - '2'
438
+ Content-Length:
439
+ - '0'
440
+ Connection:
441
+ - close
442
+ Host:
443
+ - api.contentful.com
444
+ response:
445
+ status:
446
+ code: 200
447
+ message: OK
448
+ headers:
449
+ Access-Control-Allow-Headers:
450
+ - 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
451
+ Access-Control-Allow-Methods:
452
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
453
+ Access-Control-Allow-Origin:
454
+ - "*"
455
+ Access-Control-Expose-Headers:
456
+ - Etag
457
+ Access-Control-Max-Age:
458
+ - '1728000'
459
+ Cf-Space-Id:
460
+ - u2viwgfeal0o
461
+ Content-Type:
462
+ - application/vnd.contentful.management.v1+json
463
+ Date:
464
+ - Tue, 19 Jan 2016 13:49:10 GMT
465
+ Etag:
466
+ - '"36146af5de02378221b8fd7117b7b262"'
467
+ Server:
468
+ - nginx
469
+ Strict-Transport-Security:
470
+ - max-age=15768000
471
+ X-Content-Type-Options:
472
+ - nosniff
473
+ X-Contentful-Request-Id:
474
+ - content-api:5kKijSvqjScIyGAOI8giSk
475
+ X-Powered-By:
476
+ - Express
477
+ Content-Length:
478
+ - '1072'
479
+ Connection:
480
+ - Close
481
+ body:
482
+ encoding: UTF-8
483
+ string: |
484
+ {
485
+ "fields": {
486
+ "value": {
487
+ "en-GB": "goodbye"
488
+ }
489
+ },
490
+ "sys": {
491
+ "id": "issue61_4",
492
+ "type": "Entry",
493
+ "createdAt": "2016-01-19T13:49:07.842Z",
494
+ "createdBy": {
495
+ "sys": {
496
+ "type": "Link",
497
+ "linkType": "User",
498
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
499
+ }
500
+ },
501
+ "space": {
502
+ "sys": {
503
+ "type": "Link",
504
+ "linkType": "Space",
505
+ "id": "u2viwgfeal0o"
506
+ }
507
+ },
508
+ "contentType": {
509
+ "sys": {
510
+ "type": "Link",
511
+ "linkType": "ContentType",
512
+ "id": "someType"
513
+ }
514
+ },
515
+ "version": 3,
516
+ "updatedAt": "2016-01-19T13:49:10.156Z",
517
+ "updatedBy": {
518
+ "sys": {
519
+ "type": "Link",
520
+ "linkType": "User",
521
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
522
+ }
523
+ },
524
+ "firstPublishedAt": "2016-01-19T13:49:10.156Z",
525
+ "publishedCounter": 1,
526
+ "publishedAt": "2016-01-19T13:49:10.156Z",
527
+ "publishedBy": {
528
+ "sys": {
529
+ "type": "Link",
530
+ "linkType": "User",
531
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
532
+ }
533
+ },
534
+ "publishedVersion": 2
535
+ }
536
+ }
537
+ http_version:
538
+ recorded_at: Tue, 19 Jan 2016 13:49:06 GMT
539
+ - request:
540
+ method: delete
541
+ uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/issue61_4
542
+ body:
543
+ encoding: US-ASCII
544
+ string: ''
545
+ headers:
546
+ User-Agent:
547
+ - RubyContentfulManagementGem/0.7.3
548
+ Authorization:
549
+ - Bearer <ACCESS_TOKEN>
550
+ Content-Type:
551
+ - application/vnd.contentful.management.v1+json
552
+ Content-Length:
553
+ - '0'
554
+ Connection:
555
+ - close
556
+ Host:
557
+ - api.contentful.com
558
+ response:
559
+ status:
560
+ code: 400
561
+ message: Bad Request
562
+ headers:
563
+ Access-Control-Allow-Headers:
564
+ - 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
565
+ Access-Control-Allow-Methods:
566
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
567
+ Access-Control-Allow-Origin:
568
+ - "*"
569
+ Access-Control-Expose-Headers:
570
+ - Etag
571
+ Access-Control-Max-Age:
572
+ - '1728000'
573
+ Content-Type:
574
+ - application/vnd.contentful.management.v1+json
575
+ Date:
576
+ - Tue, 19 Jan 2016 13:49:11 GMT
577
+ Server:
578
+ - nginx
579
+ X-Powered-By:
580
+ - Express
581
+ Content-Length:
582
+ - '156'
583
+ Connection:
584
+ - Close
585
+ body:
586
+ encoding: UTF-8
587
+ string: |
588
+ {
589
+ "sys": {
590
+ "type": "Error",
591
+ "id": "BadRequest"
592
+ },
593
+ "message": "Cannot delete published",
594
+ "requestId": "content-api:5Kw9eyRh5uEAEsg84sG0Cq"
595
+ }
596
+ http_version:
597
+ recorded_at: Tue, 19 Jan 2016 13:49:07 GMT
598
+ recorded_with: VCR 2.9.3