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.
@@ -0,0 +1,617 @@
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:50 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:5cmanEm3wckeiau6uogkGU
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:47 GMT
122
+ - request:
123
+ method: put
124
+ uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/issue61_1
125
+ body:
126
+ encoding: UTF-8
127
+ string: '{"fields":{"value":{"en-GB":"hello"}}}'
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:52 GMT
162
+ Etag:
163
+ - '"e25c59c71c8f39f458ff04df5d538cb4"'
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:1aXx2M3Rc2aKsKqKcMMwq6
172
+ X-Powered-By:
173
+ - Express
174
+ Content-Length:
175
+ - '775'
176
+ Connection:
177
+ - Close
178
+ body:
179
+ encoding: UTF-8
180
+ string: |
181
+ {
182
+ "fields": {
183
+ "value": {
184
+ "en-GB": "hello"
185
+ }
186
+ },
187
+ "sys": {
188
+ "id": "issue61_1",
189
+ "type": "Entry",
190
+ "version": 1,
191
+ "createdAt": "2016-01-19T13:48:52.065Z",
192
+ "createdBy": {
193
+ "sys": {
194
+ "type": "Link",
195
+ "linkType": "User",
196
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
197
+ }
198
+ },
199
+ "space": {
200
+ "sys": {
201
+ "type": "Link",
202
+ "linkType": "Space",
203
+ "id": "u2viwgfeal0o"
204
+ }
205
+ },
206
+ "contentType": {
207
+ "sys": {
208
+ "type": "Link",
209
+ "linkType": "ContentType",
210
+ "id": "someType"
211
+ }
212
+ },
213
+ "updatedAt": "2016-01-19T13:48:52.065Z",
214
+ "updatedBy": {
215
+ "sys": {
216
+ "type": "Link",
217
+ "linkType": "User",
218
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
219
+ }
220
+ }
221
+ }
222
+ }
223
+ http_version:
224
+ recorded_at: Tue, 19 Jan 2016 13:48:48 GMT
225
+ - request:
226
+ method: put
227
+ uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/issue61_1
228
+ body:
229
+ encoding: UTF-8
230
+ string: '{"fields":{"value":{"en-GB":"goodbye"}}}'
231
+ headers:
232
+ User-Agent:
233
+ - RubyContentfulManagementGem/0.7.3
234
+ Authorization:
235
+ - Bearer <ACCESS_TOKEN>
236
+ Content-Type:
237
+ - application/vnd.contentful.management.v1+json
238
+ X-Contentful-Version:
239
+ - '1'
240
+ Connection:
241
+ - close
242
+ Host:
243
+ - api.contentful.com
244
+ response:
245
+ status:
246
+ code: 200
247
+ message: OK
248
+ headers:
249
+ Access-Control-Allow-Headers:
250
+ - 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
251
+ Access-Control-Allow-Methods:
252
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
253
+ Access-Control-Allow-Origin:
254
+ - "*"
255
+ Access-Control-Expose-Headers:
256
+ - Etag
257
+ Access-Control-Max-Age:
258
+ - '1728000'
259
+ Cf-Space-Id:
260
+ - u2viwgfeal0o
261
+ Content-Type:
262
+ - application/vnd.contentful.management.v1+json
263
+ Date:
264
+ - Tue, 19 Jan 2016 13:48:53 GMT
265
+ Etag:
266
+ - '"3c4fab184e5474925282584f8cf07f53"'
267
+ Server:
268
+ - nginx
269
+ Strict-Transport-Security:
270
+ - max-age=15768000
271
+ X-Content-Type-Options:
272
+ - nosniff
273
+ X-Contentful-Request-Id:
274
+ - content-api:1vQsL9oARWw8uuoikg4CyM
275
+ X-Powered-By:
276
+ - Express
277
+ Content-Length:
278
+ - '777'
279
+ Connection:
280
+ - Close
281
+ body:
282
+ encoding: UTF-8
283
+ string: |
284
+ {
285
+ "fields": {
286
+ "value": {
287
+ "en-GB": "goodbye"
288
+ }
289
+ },
290
+ "sys": {
291
+ "id": "issue61_1",
292
+ "type": "Entry",
293
+ "createdAt": "2016-01-19T13:48:52.065Z",
294
+ "createdBy": {
295
+ "sys": {
296
+ "type": "Link",
297
+ "linkType": "User",
298
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
299
+ }
300
+ },
301
+ "space": {
302
+ "sys": {
303
+ "type": "Link",
304
+ "linkType": "Space",
305
+ "id": "u2viwgfeal0o"
306
+ }
307
+ },
308
+ "contentType": {
309
+ "sys": {
310
+ "type": "Link",
311
+ "linkType": "ContentType",
312
+ "id": "someType"
313
+ }
314
+ },
315
+ "version": 2,
316
+ "updatedAt": "2016-01-19T13:48:53.133Z",
317
+ "updatedBy": {
318
+ "sys": {
319
+ "type": "Link",
320
+ "linkType": "User",
321
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
322
+ }
323
+ }
324
+ }
325
+ }
326
+ http_version:
327
+ recorded_at: Tue, 19 Jan 2016 13:48:49 GMT
328
+ - request:
329
+ method: put
330
+ uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/issue61_1/published
331
+ body:
332
+ encoding: US-ASCII
333
+ string: ''
334
+ headers:
335
+ User-Agent:
336
+ - RubyContentfulManagementGem/0.7.3
337
+ Authorization:
338
+ - Bearer <ACCESS_TOKEN>
339
+ Content-Type:
340
+ - application/vnd.contentful.management.v1+json
341
+ X-Contentful-Version:
342
+ - '2'
343
+ Content-Length:
344
+ - '0'
345
+ Connection:
346
+ - close
347
+ Host:
348
+ - api.contentful.com
349
+ response:
350
+ status:
351
+ code: 200
352
+ message: OK
353
+ headers:
354
+ Access-Control-Allow-Headers:
355
+ - 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
356
+ Access-Control-Allow-Methods:
357
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
358
+ Access-Control-Allow-Origin:
359
+ - "*"
360
+ Access-Control-Expose-Headers:
361
+ - Etag
362
+ Access-Control-Max-Age:
363
+ - '1728000'
364
+ Cf-Space-Id:
365
+ - u2viwgfeal0o
366
+ Content-Type:
367
+ - application/vnd.contentful.management.v1+json
368
+ Date:
369
+ - Tue, 19 Jan 2016 13:48:54 GMT
370
+ Etag:
371
+ - '"220ff8d40d9333c3c51a610797cd68c1"'
372
+ Server:
373
+ - nginx
374
+ Strict-Transport-Security:
375
+ - max-age=15768000
376
+ X-Content-Type-Options:
377
+ - nosniff
378
+ X-Contentful-Request-Id:
379
+ - content-api:ReMaxDWquiE8GEgm4Guyu
380
+ X-Powered-By:
381
+ - Express
382
+ Content-Length:
383
+ - '1072'
384
+ Connection:
385
+ - Close
386
+ body:
387
+ encoding: UTF-8
388
+ string: |
389
+ {
390
+ "fields": {
391
+ "value": {
392
+ "en-GB": "goodbye"
393
+ }
394
+ },
395
+ "sys": {
396
+ "id": "issue61_1",
397
+ "type": "Entry",
398
+ "createdAt": "2016-01-19T13:48:52.065Z",
399
+ "createdBy": {
400
+ "sys": {
401
+ "type": "Link",
402
+ "linkType": "User",
403
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
404
+ }
405
+ },
406
+ "space": {
407
+ "sys": {
408
+ "type": "Link",
409
+ "linkType": "Space",
410
+ "id": "u2viwgfeal0o"
411
+ }
412
+ },
413
+ "contentType": {
414
+ "sys": {
415
+ "type": "Link",
416
+ "linkType": "ContentType",
417
+ "id": "someType"
418
+ }
419
+ },
420
+ "version": 3,
421
+ "updatedAt": "2016-01-19T13:48:53.897Z",
422
+ "updatedBy": {
423
+ "sys": {
424
+ "type": "Link",
425
+ "linkType": "User",
426
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
427
+ }
428
+ },
429
+ "firstPublishedAt": "2016-01-19T13:48:53.897Z",
430
+ "publishedCounter": 1,
431
+ "publishedAt": "2016-01-19T13:48:53.897Z",
432
+ "publishedBy": {
433
+ "sys": {
434
+ "type": "Link",
435
+ "linkType": "User",
436
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
437
+ }
438
+ },
439
+ "publishedVersion": 2
440
+ }
441
+ }
442
+ http_version:
443
+ recorded_at: Tue, 19 Jan 2016 13:48:50 GMT
444
+ - request:
445
+ method: get
446
+ uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/issue61_1
447
+ body:
448
+ encoding: US-ASCII
449
+ string: ''
450
+ headers:
451
+ User-Agent:
452
+ - RubyContentfulManagementGem/0.7.3
453
+ Authorization:
454
+ - Bearer <ACCESS_TOKEN>
455
+ Content-Type:
456
+ - application/vnd.contentful.management.v1+json
457
+ Content-Length:
458
+ - '0'
459
+ Connection:
460
+ - close
461
+ Host:
462
+ - api.contentful.com
463
+ response:
464
+ status:
465
+ code: 200
466
+ message: OK
467
+ headers:
468
+ Access-Control-Allow-Headers:
469
+ - 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
470
+ Access-Control-Allow-Methods:
471
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
472
+ Access-Control-Allow-Origin:
473
+ - "*"
474
+ Access-Control-Expose-Headers:
475
+ - Etag
476
+ Access-Control-Max-Age:
477
+ - '1728000'
478
+ Cf-Space-Id:
479
+ - u2viwgfeal0o
480
+ Content-Type:
481
+ - application/vnd.contentful.management.v1+json
482
+ Date:
483
+ - Tue, 19 Jan 2016 13:48:54 GMT
484
+ Etag:
485
+ - '"8921e3e795cfc36f843286fa4d610f68"'
486
+ Server:
487
+ - nginx
488
+ Strict-Transport-Security:
489
+ - max-age=15768000
490
+ X-Content-Type-Options:
491
+ - nosniff
492
+ X-Contentful-Request-Id:
493
+ - content-api:4ovOlxRZFeGyamy8awEw8O
494
+ X-Powered-By:
495
+ - Express
496
+ Content-Length:
497
+ - '1072'
498
+ Connection:
499
+ - Close
500
+ body:
501
+ encoding: UTF-8
502
+ string: |
503
+ {
504
+ "fields": {
505
+ "value": {
506
+ "en-GB": "goodbye"
507
+ }
508
+ },
509
+ "sys": {
510
+ "id": "issue61_1",
511
+ "type": "Entry",
512
+ "createdAt": "2016-01-19T13:48:52.065Z",
513
+ "createdBy": {
514
+ "sys": {
515
+ "type": "Link",
516
+ "linkType": "User",
517
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
518
+ }
519
+ },
520
+ "space": {
521
+ "sys": {
522
+ "type": "Link",
523
+ "linkType": "Space",
524
+ "id": "u2viwgfeal0o"
525
+ }
526
+ },
527
+ "contentType": {
528
+ "sys": {
529
+ "type": "Link",
530
+ "linkType": "ContentType",
531
+ "id": "someType"
532
+ }
533
+ },
534
+ "firstPublishedAt": "2016-01-19T13:48:53.897Z",
535
+ "publishedCounter": 1,
536
+ "publishedAt": "2016-01-19T13:48:53.897Z",
537
+ "publishedBy": {
538
+ "sys": {
539
+ "type": "Link",
540
+ "linkType": "User",
541
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
542
+ }
543
+ },
544
+ "publishedVersion": 2,
545
+ "version": 3,
546
+ "updatedAt": "2016-01-19T13:48:53.912Z",
547
+ "updatedBy": {
548
+ "sys": {
549
+ "type": "Link",
550
+ "linkType": "User",
551
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
552
+ }
553
+ }
554
+ }
555
+ }
556
+ http_version:
557
+ recorded_at: Tue, 19 Jan 2016 13:48:50 GMT
558
+ - request:
559
+ method: delete
560
+ uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/issue61_1
561
+ body:
562
+ encoding: US-ASCII
563
+ string: ''
564
+ headers:
565
+ User-Agent:
566
+ - RubyContentfulManagementGem/0.7.3
567
+ Authorization:
568
+ - Bearer <ACCESS_TOKEN>
569
+ Content-Type:
570
+ - application/vnd.contentful.management.v1+json
571
+ Content-Length:
572
+ - '0'
573
+ Connection:
574
+ - close
575
+ Host:
576
+ - api.contentful.com
577
+ response:
578
+ status:
579
+ code: 400
580
+ message: Bad Request
581
+ headers:
582
+ Access-Control-Allow-Headers:
583
+ - 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
584
+ Access-Control-Allow-Methods:
585
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
586
+ Access-Control-Allow-Origin:
587
+ - "*"
588
+ Access-Control-Expose-Headers:
589
+ - Etag
590
+ Access-Control-Max-Age:
591
+ - '1728000'
592
+ Content-Type:
593
+ - application/vnd.contentful.management.v1+json
594
+ Date:
595
+ - Tue, 19 Jan 2016 13:48:55 GMT
596
+ Server:
597
+ - nginx
598
+ X-Powered-By:
599
+ - Express
600
+ Content-Length:
601
+ - '156'
602
+ Connection:
603
+ - Close
604
+ body:
605
+ encoding: UTF-8
606
+ string: |
607
+ {
608
+ "sys": {
609
+ "type": "Error",
610
+ "id": "BadRequest"
611
+ },
612
+ "message": "Cannot delete published",
613
+ "requestId": "content-api:31GSItnuY82maeAyiiYKAe"
614
+ }
615
+ http_version:
616
+ recorded_at: Tue, 19 Jan 2016 13:48:51 GMT
617
+ recorded_with: VCR 2.9.3