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,613 @@
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:48:56 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:5g04m3nGJ2kuQg86coQMa0
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:48:52 GMT
122
+ - request:
123
+ method: put
124
+ uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/issue61_2
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:48:57 GMT
162
+ Etag:
163
+ - '"ba73976f643f0e88d731b574a5a7b2dd"'
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:4xOxu9q6Yw0A8mKI6M0KMU
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_2",
185
+ "type": "Entry",
186
+ "version": 1,
187
+ "createdAt": "2016-01-19T13:48:57.157Z",
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:48:57.157Z",
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:48:53 GMT
221
+ - request:
222
+ method: put
223
+ uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/issue61_2
224
+ body:
225
+ encoding: UTF-8
226
+ string: '{"fields":{"value":{"en-GB":"goodbye"}}}'
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
+ X-Contentful-Version:
235
+ - '1'
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:48:58 GMT
261
+ Etag:
262
+ - '"8d8329463f1534720d14fe451ca319cc"'
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:2lM2dipWsAocskKicuksgw
271
+ X-Powered-By:
272
+ - Express
273
+ Content-Length:
274
+ - '777'
275
+ Connection:
276
+ - Close
277
+ body:
278
+ encoding: UTF-8
279
+ string: |
280
+ {
281
+ "fields": {
282
+ "value": {
283
+ "en-GB": "goodbye"
284
+ }
285
+ },
286
+ "sys": {
287
+ "id": "issue61_2",
288
+ "type": "Entry",
289
+ "createdAt": "2016-01-19T13:48:57.157Z",
290
+ "createdBy": {
291
+ "sys": {
292
+ "type": "Link",
293
+ "linkType": "User",
294
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
295
+ }
296
+ },
297
+ "space": {
298
+ "sys": {
299
+ "type": "Link",
300
+ "linkType": "Space",
301
+ "id": "u2viwgfeal0o"
302
+ }
303
+ },
304
+ "contentType": {
305
+ "sys": {
306
+ "type": "Link",
307
+ "linkType": "ContentType",
308
+ "id": "someType"
309
+ }
310
+ },
311
+ "version": 2,
312
+ "updatedAt": "2016-01-19T13:48:58.113Z",
313
+ "updatedBy": {
314
+ "sys": {
315
+ "type": "Link",
316
+ "linkType": "User",
317
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
318
+ }
319
+ }
320
+ }
321
+ }
322
+ http_version:
323
+ recorded_at: Tue, 19 Jan 2016 13:48:54 GMT
324
+ - request:
325
+ method: put
326
+ uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/issue61_2/published
327
+ body:
328
+ encoding: US-ASCII
329
+ string: ''
330
+ headers:
331
+ User-Agent:
332
+ - RubyContentfulManagementGem/0.7.3
333
+ Authorization:
334
+ - Bearer <ACCESS_TOKEN>
335
+ Content-Type:
336
+ - application/vnd.contentful.management.v1+json
337
+ X-Contentful-Version:
338
+ - '2'
339
+ Content-Length:
340
+ - '0'
341
+ Connection:
342
+ - close
343
+ Host:
344
+ - api.contentful.com
345
+ response:
346
+ status:
347
+ code: 200
348
+ message: OK
349
+ headers:
350
+ Access-Control-Allow-Headers:
351
+ - 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
352
+ Access-Control-Allow-Methods:
353
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
354
+ Access-Control-Allow-Origin:
355
+ - "*"
356
+ Access-Control-Expose-Headers:
357
+ - Etag
358
+ Access-Control-Max-Age:
359
+ - '1728000'
360
+ Cf-Space-Id:
361
+ - u2viwgfeal0o
362
+ Content-Type:
363
+ - application/vnd.contentful.management.v1+json
364
+ Date:
365
+ - Tue, 19 Jan 2016 13:48:59 GMT
366
+ Etag:
367
+ - '"da3eeb59cf859b45220ed5a4c1487f70"'
368
+ Server:
369
+ - nginx
370
+ Strict-Transport-Security:
371
+ - max-age=15768000
372
+ X-Content-Type-Options:
373
+ - nosniff
374
+ X-Contentful-Request-Id:
375
+ - content-api:3dJqJVg60MGcoGSKgyoiio
376
+ X-Powered-By:
377
+ - Express
378
+ Content-Length:
379
+ - '1072'
380
+ Connection:
381
+ - Close
382
+ body:
383
+ encoding: UTF-8
384
+ string: |
385
+ {
386
+ "fields": {
387
+ "value": {
388
+ "en-GB": "goodbye"
389
+ }
390
+ },
391
+ "sys": {
392
+ "id": "issue61_2",
393
+ "type": "Entry",
394
+ "createdAt": "2016-01-19T13:48:57.157Z",
395
+ "createdBy": {
396
+ "sys": {
397
+ "type": "Link",
398
+ "linkType": "User",
399
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
400
+ }
401
+ },
402
+ "space": {
403
+ "sys": {
404
+ "type": "Link",
405
+ "linkType": "Space",
406
+ "id": "u2viwgfeal0o"
407
+ }
408
+ },
409
+ "contentType": {
410
+ "sys": {
411
+ "type": "Link",
412
+ "linkType": "ContentType",
413
+ "id": "someType"
414
+ }
415
+ },
416
+ "version": 3,
417
+ "updatedAt": "2016-01-19T13:48:58.834Z",
418
+ "updatedBy": {
419
+ "sys": {
420
+ "type": "Link",
421
+ "linkType": "User",
422
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
423
+ }
424
+ },
425
+ "firstPublishedAt": "2016-01-19T13:48:58.834Z",
426
+ "publishedCounter": 1,
427
+ "publishedAt": "2016-01-19T13:48:58.834Z",
428
+ "publishedBy": {
429
+ "sys": {
430
+ "type": "Link",
431
+ "linkType": "User",
432
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
433
+ }
434
+ },
435
+ "publishedVersion": 2
436
+ }
437
+ }
438
+ http_version:
439
+ recorded_at: Tue, 19 Jan 2016 13:48:55 GMT
440
+ - request:
441
+ method: get
442
+ uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/issue61_2
443
+ body:
444
+ encoding: US-ASCII
445
+ string: ''
446
+ headers:
447
+ User-Agent:
448
+ - RubyContentfulManagementGem/0.7.3
449
+ Authorization:
450
+ - Bearer <ACCESS_TOKEN>
451
+ Content-Type:
452
+ - application/vnd.contentful.management.v1+json
453
+ Content-Length:
454
+ - '0'
455
+ Connection:
456
+ - close
457
+ Host:
458
+ - api.contentful.com
459
+ response:
460
+ status:
461
+ code: 200
462
+ message: OK
463
+ headers:
464
+ Access-Control-Allow-Headers:
465
+ - 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
466
+ Access-Control-Allow-Methods:
467
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
468
+ Access-Control-Allow-Origin:
469
+ - "*"
470
+ Access-Control-Expose-Headers:
471
+ - Etag
472
+ Access-Control-Max-Age:
473
+ - '1728000'
474
+ Cf-Space-Id:
475
+ - u2viwgfeal0o
476
+ Content-Type:
477
+ - application/vnd.contentful.management.v1+json
478
+ Date:
479
+ - Tue, 19 Jan 2016 13:48:59 GMT
480
+ Etag:
481
+ - '"cb94cdb57667fe822a9bde0c28d12afd"'
482
+ Server:
483
+ - nginx
484
+ Strict-Transport-Security:
485
+ - max-age=15768000
486
+ X-Content-Type-Options:
487
+ - nosniff
488
+ X-Contentful-Request-Id:
489
+ - content-api:658wf6Hvvaym08aOiGCyWo
490
+ X-Powered-By:
491
+ - Express
492
+ Content-Length:
493
+ - '1072'
494
+ Connection:
495
+ - Close
496
+ body:
497
+ encoding: UTF-8
498
+ string: |
499
+ {
500
+ "fields": {
501
+ "value": {
502
+ "en-GB": "goodbye"
503
+ }
504
+ },
505
+ "sys": {
506
+ "id": "issue61_2",
507
+ "type": "Entry",
508
+ "createdAt": "2016-01-19T13:48:57.157Z",
509
+ "createdBy": {
510
+ "sys": {
511
+ "type": "Link",
512
+ "linkType": "User",
513
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
514
+ }
515
+ },
516
+ "space": {
517
+ "sys": {
518
+ "type": "Link",
519
+ "linkType": "Space",
520
+ "id": "u2viwgfeal0o"
521
+ }
522
+ },
523
+ "contentType": {
524
+ "sys": {
525
+ "type": "Link",
526
+ "linkType": "ContentType",
527
+ "id": "someType"
528
+ }
529
+ },
530
+ "firstPublishedAt": "2016-01-19T13:48:58.834Z",
531
+ "publishedCounter": 1,
532
+ "publishedAt": "2016-01-19T13:48:58.834Z",
533
+ "publishedBy": {
534
+ "sys": {
535
+ "type": "Link",
536
+ "linkType": "User",
537
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
538
+ }
539
+ },
540
+ "publishedVersion": 2,
541
+ "version": 3,
542
+ "updatedAt": "2016-01-19T13:48:58.853Z",
543
+ "updatedBy": {
544
+ "sys": {
545
+ "type": "Link",
546
+ "linkType": "User",
547
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
548
+ }
549
+ }
550
+ }
551
+ }
552
+ http_version:
553
+ recorded_at: Tue, 19 Jan 2016 13:48:55 GMT
554
+ - request:
555
+ method: delete
556
+ uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/issue61_2
557
+ body:
558
+ encoding: US-ASCII
559
+ string: ''
560
+ headers:
561
+ User-Agent:
562
+ - RubyContentfulManagementGem/0.7.3
563
+ Authorization:
564
+ - Bearer <ACCESS_TOKEN>
565
+ Content-Type:
566
+ - application/vnd.contentful.management.v1+json
567
+ Content-Length:
568
+ - '0'
569
+ Connection:
570
+ - close
571
+ Host:
572
+ - api.contentful.com
573
+ response:
574
+ status:
575
+ code: 400
576
+ message: Bad Request
577
+ headers:
578
+ Access-Control-Allow-Headers:
579
+ - 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
580
+ Access-Control-Allow-Methods:
581
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
582
+ Access-Control-Allow-Origin:
583
+ - "*"
584
+ Access-Control-Expose-Headers:
585
+ - Etag
586
+ Access-Control-Max-Age:
587
+ - '1728000'
588
+ Content-Type:
589
+ - application/vnd.contentful.management.v1+json
590
+ Date:
591
+ - Tue, 19 Jan 2016 13:49:00 GMT
592
+ Server:
593
+ - nginx
594
+ X-Powered-By:
595
+ - Express
596
+ Content-Length:
597
+ - '156'
598
+ Connection:
599
+ - Close
600
+ body:
601
+ encoding: UTF-8
602
+ string: |
603
+ {
604
+ "sys": {
605
+ "type": "Error",
606
+ "id": "BadRequest"
607
+ },
608
+ "message": "Cannot delete published",
609
+ "requestId": "content-api:2w3I0aMNrO2oo8sAmiUAcK"
610
+ }
611
+ http_version:
612
+ recorded_at: Tue, 19 Jan 2016 13:48:56 GMT
613
+ recorded_with: VCR 2.9.3