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,606 @@
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:01 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:2m8DRdfTKko22IsyYewqMM
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:57 GMT
122
+ - request:
123
+ method: put
124
+ uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/issue61_3
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:49:02 GMT
162
+ Etag:
163
+ - '"baea6f277ac200c2af476ffcc26209d1"'
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:5dNrRiFwVyekWG6Ee6wMOa
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_3",
189
+ "type": "Entry",
190
+ "version": 1,
191
+ "createdAt": "2016-01-19T13:49:02.870Z",
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:49:02.870Z",
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:59 GMT
225
+ - request:
226
+ method: get
227
+ uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/issue61_3
228
+ body:
229
+ encoding: US-ASCII
230
+ string: ''
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
+ Content-Length:
239
+ - '0'
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:49:03 GMT
265
+ Etag:
266
+ - '"f58b9df7df7715cf6a5327f5824c0b29"'
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:6o4W7Yskw0Eyqu0qG6iyE6
275
+ X-Powered-By:
276
+ - Express
277
+ Content-Length:
278
+ - '775'
279
+ Connection:
280
+ - Close
281
+ body:
282
+ encoding: UTF-8
283
+ string: |
284
+ {
285
+ "fields": {
286
+ "value": {
287
+ "en-GB": "hello"
288
+ }
289
+ },
290
+ "sys": {
291
+ "id": "issue61_3",
292
+ "type": "Entry",
293
+ "createdAt": "2016-01-19T13:49:02.870Z",
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": 1,
316
+ "updatedAt": "2016-01-19T13:49:02.879Z",
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:59 GMT
328
+ - request:
329
+ method: put
330
+ uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/issue61_3
331
+ body:
332
+ encoding: UTF-8
333
+ string: '{"fields":{"value":{"en-GB":"goodbye"}}}'
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
+ - '1'
343
+ Connection:
344
+ - close
345
+ Host:
346
+ - api.contentful.com
347
+ response:
348
+ status:
349
+ code: 200
350
+ message: OK
351
+ headers:
352
+ Access-Control-Allow-Headers:
353
+ - 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
354
+ Access-Control-Allow-Methods:
355
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
356
+ Access-Control-Allow-Origin:
357
+ - "*"
358
+ Access-Control-Expose-Headers:
359
+ - Etag
360
+ Access-Control-Max-Age:
361
+ - '1728000'
362
+ Cf-Space-Id:
363
+ - u2viwgfeal0o
364
+ Content-Type:
365
+ - application/vnd.contentful.management.v1+json
366
+ Date:
367
+ - Tue, 19 Jan 2016 13:49:04 GMT
368
+ Etag:
369
+ - '"b670b1609873907385300e2b23e31214"'
370
+ Server:
371
+ - nginx
372
+ Strict-Transport-Security:
373
+ - max-age=15768000
374
+ X-Content-Type-Options:
375
+ - nosniff
376
+ X-Contentful-Request-Id:
377
+ - content-api:54HN2eifWE4U60uU88syAc
378
+ X-Powered-By:
379
+ - Express
380
+ Content-Length:
381
+ - '777'
382
+ Connection:
383
+ - Close
384
+ body:
385
+ encoding: UTF-8
386
+ string: |
387
+ {
388
+ "fields": {
389
+ "value": {
390
+ "en-GB": "goodbye"
391
+ }
392
+ },
393
+ "sys": {
394
+ "id": "issue61_3",
395
+ "type": "Entry",
396
+ "createdAt": "2016-01-19T13:49:02.870Z",
397
+ "createdBy": {
398
+ "sys": {
399
+ "type": "Link",
400
+ "linkType": "User",
401
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
402
+ }
403
+ },
404
+ "space": {
405
+ "sys": {
406
+ "type": "Link",
407
+ "linkType": "Space",
408
+ "id": "u2viwgfeal0o"
409
+ }
410
+ },
411
+ "contentType": {
412
+ "sys": {
413
+ "type": "Link",
414
+ "linkType": "ContentType",
415
+ "id": "someType"
416
+ }
417
+ },
418
+ "version": 2,
419
+ "updatedAt": "2016-01-19T13:49:04.639Z",
420
+ "updatedBy": {
421
+ "sys": {
422
+ "type": "Link",
423
+ "linkType": "User",
424
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
425
+ }
426
+ }
427
+ }
428
+ }
429
+ http_version:
430
+ recorded_at: Tue, 19 Jan 2016 13:49:00 GMT
431
+ - request:
432
+ method: put
433
+ uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/issue61_3/published
434
+ body:
435
+ encoding: US-ASCII
436
+ string: ''
437
+ headers:
438
+ User-Agent:
439
+ - RubyContentfulManagementGem/0.7.3
440
+ Authorization:
441
+ - Bearer <ACCESS_TOKEN>
442
+ Content-Type:
443
+ - application/vnd.contentful.management.v1+json
444
+ X-Contentful-Version:
445
+ - '2'
446
+ Content-Length:
447
+ - '0'
448
+ Connection:
449
+ - close
450
+ Host:
451
+ - api.contentful.com
452
+ response:
453
+ status:
454
+ code: 200
455
+ message: OK
456
+ headers:
457
+ Access-Control-Allow-Headers:
458
+ - 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
459
+ Access-Control-Allow-Methods:
460
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
461
+ Access-Control-Allow-Origin:
462
+ - "*"
463
+ Access-Control-Expose-Headers:
464
+ - Etag
465
+ Access-Control-Max-Age:
466
+ - '1728000'
467
+ Cf-Space-Id:
468
+ - u2viwgfeal0o
469
+ Content-Type:
470
+ - application/vnd.contentful.management.v1+json
471
+ Date:
472
+ - Tue, 19 Jan 2016 13:49:05 GMT
473
+ Etag:
474
+ - '"639898a56051f1497ec8b90fca31327e"'
475
+ Server:
476
+ - nginx
477
+ Strict-Transport-Security:
478
+ - max-age=15768000
479
+ X-Content-Type-Options:
480
+ - nosniff
481
+ X-Contentful-Request-Id:
482
+ - content-api:2g5oBi562IMEgwAMcOgY22
483
+ X-Powered-By:
484
+ - Express
485
+ Content-Length:
486
+ - '1072'
487
+ Connection:
488
+ - Close
489
+ body:
490
+ encoding: UTF-8
491
+ string: |
492
+ {
493
+ "fields": {
494
+ "value": {
495
+ "en-GB": "goodbye"
496
+ }
497
+ },
498
+ "sys": {
499
+ "id": "issue61_3",
500
+ "type": "Entry",
501
+ "createdAt": "2016-01-19T13:49:02.870Z",
502
+ "createdBy": {
503
+ "sys": {
504
+ "type": "Link",
505
+ "linkType": "User",
506
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
507
+ }
508
+ },
509
+ "space": {
510
+ "sys": {
511
+ "type": "Link",
512
+ "linkType": "Space",
513
+ "id": "u2viwgfeal0o"
514
+ }
515
+ },
516
+ "contentType": {
517
+ "sys": {
518
+ "type": "Link",
519
+ "linkType": "ContentType",
520
+ "id": "someType"
521
+ }
522
+ },
523
+ "version": 3,
524
+ "updatedAt": "2016-01-19T13:49:05.374Z",
525
+ "updatedBy": {
526
+ "sys": {
527
+ "type": "Link",
528
+ "linkType": "User",
529
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
530
+ }
531
+ },
532
+ "firstPublishedAt": "2016-01-19T13:49:05.374Z",
533
+ "publishedCounter": 1,
534
+ "publishedAt": "2016-01-19T13:49:05.374Z",
535
+ "publishedBy": {
536
+ "sys": {
537
+ "type": "Link",
538
+ "linkType": "User",
539
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
540
+ }
541
+ },
542
+ "publishedVersion": 2
543
+ }
544
+ }
545
+ http_version:
546
+ recorded_at: Tue, 19 Jan 2016 13:49:01 GMT
547
+ - request:
548
+ method: delete
549
+ uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/issue61_3
550
+ body:
551
+ encoding: US-ASCII
552
+ string: ''
553
+ headers:
554
+ User-Agent:
555
+ - RubyContentfulManagementGem/0.7.3
556
+ Authorization:
557
+ - Bearer <ACCESS_TOKEN>
558
+ Content-Type:
559
+ - application/vnd.contentful.management.v1+json
560
+ Content-Length:
561
+ - '0'
562
+ Connection:
563
+ - close
564
+ Host:
565
+ - api.contentful.com
566
+ response:
567
+ status:
568
+ code: 400
569
+ message: Bad Request
570
+ headers:
571
+ Access-Control-Allow-Headers:
572
+ - 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
573
+ Access-Control-Allow-Methods:
574
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
575
+ Access-Control-Allow-Origin:
576
+ - "*"
577
+ Access-Control-Expose-Headers:
578
+ - Etag
579
+ Access-Control-Max-Age:
580
+ - '1728000'
581
+ Content-Type:
582
+ - application/vnd.contentful.management.v1+json
583
+ Date:
584
+ - Tue, 19 Jan 2016 13:49:06 GMT
585
+ Server:
586
+ - nginx
587
+ X-Powered-By:
588
+ - Express
589
+ Content-Length:
590
+ - '156'
591
+ Connection:
592
+ - Close
593
+ body:
594
+ encoding: UTF-8
595
+ string: |
596
+ {
597
+ "sys": {
598
+ "type": "Error",
599
+ "id": "BadRequest"
600
+ },
601
+ "message": "Cannot delete published",
602
+ "requestId": "content-api:4vumZLe1i8cCSKQcGsmWwE"
603
+ }
604
+ http_version:
605
+ recorded_at: Tue, 19 Jan 2016 13:49:02 GMT
606
+ recorded_with: VCR 2.9.3