contentful_bootstrap 2.0.2 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +3 -0
  3. data/CHANGELOG.md +6 -0
  4. data/Gemfile +1 -1
  5. data/examples/templates/catalogue.json +87 -62
  6. data/lib/contentful/bootstrap/commands/create_space.rb +1 -1
  7. data/lib/contentful/bootstrap/generator.rb +9 -9
  8. data/lib/contentful/bootstrap/templates/base.rb +42 -24
  9. data/lib/contentful/bootstrap/templates/blog.rb +2 -0
  10. data/lib/contentful/bootstrap/templates/json_template.rb +24 -11
  11. data/lib/contentful/bootstrap/templates/links/base.rb +5 -0
  12. data/lib/contentful/bootstrap/token.rb +3 -3
  13. data/lib/contentful/bootstrap/version.rb +5 -1
  14. data/spec/contentful/bootstrap/commands/create_space_spec.rb +56 -4
  15. data/spec/contentful/bootstrap/commands/generate_token_spec.rb +14 -0
  16. data/spec/contentful/bootstrap/templates/json_template_spec.rb +39 -1
  17. data/spec/contentful/bootstrap/templates/links/asset_spec.rb +14 -0
  18. data/spec/contentful/bootstrap/templates/links/base_spec.rb +15 -1
  19. data/spec/contentful/bootstrap/templates/links/entry_spec.rb +14 -0
  20. data/spec/fixtures/json_fixtures/high.json +6 -0
  21. data/spec/fixtures/json_fixtures/invalid.json +5 -0
  22. data/spec/fixtures/json_fixtures/issue_22.json +20 -15
  23. data/spec/fixtures/json_fixtures/links.json +18 -0
  24. data/spec/fixtures/json_fixtures/low.json +6 -0
  25. data/spec/fixtures/json_fixtures/no_ids.json +25 -0
  26. data/spec/fixtures/json_fixtures/ok_version.json +6 -0
  27. data/spec/fixtures/json_fixtures/simple.json +8 -3
  28. data/spec/fixtures/json_fixtures/wl1z0pal05vy.json +209 -172
  29. data/spec/fixtures/vcr_fixtures/create_space.yml +202 -0
  30. data/spec/fixtures/vcr_fixtures/create_space_with_blog_template.yml +4337 -0
  31. data/spec/fixtures/vcr_fixtures/create_space_with_catalogue_template.yml +9987 -0
  32. data/spec/fixtures/vcr_fixtures/create_space_with_gallery_template.yml +5609 -0
  33. data/spec/fixtures/vcr_fixtures/generate_json.yml +177 -177
  34. data/spec/fixtures/vcr_fixtures/generate_token.yml +394 -0
  35. data/spec/fixtures/vcr_fixtures/issue_22.yml +914 -307
  36. data/spec/fixtures/vcr_fixtures/no_ids.yml +1314 -0
  37. metadata +27 -3
@@ -0,0 +1,1314 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.contentful.com/spaces
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"name":"no_ids_space","defaultLocale":"en-US"}'
9
+ headers:
10
+ User-Agent:
11
+ - RubyContentfulManagementGem/0.7.3
12
+ Authorization:
13
+ - Bearer foobar
14
+ Content-Type:
15
+ - application/vnd.contentful.management.v1+json
16
+ X-Contentful-Organization:
17
+ - 1PLOOEmTI2S1NYald2TemO
18
+ Connection:
19
+ - close
20
+ response:
21
+ status:
22
+ code: 201
23
+ message: Created
24
+ headers:
25
+ Accept-Ranges:
26
+ - bytes
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
+ Cache-Control:
38
+ - max-age=0
39
+ Content-Type:
40
+ - application/vnd.contentful.management.v1+json
41
+ Date:
42
+ - Mon, 21 Dec 2015 09:54:19 GMT
43
+ Etag:
44
+ - '"d35e54cc518b3e78c8d5ef343960fca1"'
45
+ Location:
46
+ - https://api.contentful.com/spaces/fbrhs5tvrf52
47
+ Server:
48
+ - nginx
49
+ Status:
50
+ - 201 Created
51
+ Strict-Transport-Security:
52
+ - max-age=15768000
53
+ X-Content-Type-Options:
54
+ - nosniff
55
+ X-Contentful-Request-Id:
56
+ - 0b5-149627625
57
+ Content-Length:
58
+ - '455'
59
+ Connection:
60
+ - Close
61
+ body:
62
+ encoding: UTF-8
63
+ string: |+
64
+ {
65
+ "sys":{
66
+ "type":"Space",
67
+ "id":"fbrhs5tvrf52",
68
+ "version":1,
69
+ "createdBy":{
70
+ "sys":{
71
+ "type":"Link",
72
+ "linkType":"User",
73
+ "id":"4FLrUHftHW3v2BLi9fzfjU"
74
+ }
75
+ },
76
+ "createdAt":"2015-12-21T09:54:18Z",
77
+ "updatedBy":{
78
+ "sys":{
79
+ "type":"Link",
80
+ "linkType":"User",
81
+ "id":"4FLrUHftHW3v2BLi9fzfjU"
82
+ }
83
+ },
84
+ "updatedAt":"2015-12-21T09:54:18Z"
85
+ },
86
+ "name":"no_ids_space"
87
+ }
88
+
89
+ http_version:
90
+ recorded_at: Mon, 21 Dec 2015 09:54:21 GMT
91
+ - request:
92
+ method: put
93
+ uri: https://api.contentful.com/spaces/fbrhs5tvrf52/content_types/cat
94
+ body:
95
+ encoding: UTF-8
96
+ string: '{"displayField":null,"name":"Cat","description":null,"fields":[{"id":"name","name":"Name","type":"Symbol"}]}'
97
+ headers:
98
+ User-Agent:
99
+ - RubyContentfulManagementGem/0.7.3
100
+ Authorization:
101
+ - Bearer foobar
102
+ Content-Type:
103
+ - application/vnd.contentful.management.v1+json
104
+ Connection:
105
+ - close
106
+ response:
107
+ status:
108
+ code: 201
109
+ message: Created
110
+ headers:
111
+ Access-Control-Allow-Headers:
112
+ - 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
113
+ Access-Control-Allow-Methods:
114
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
115
+ Access-Control-Allow-Origin:
116
+ - '*'
117
+ Access-Control-Expose-Headers:
118
+ - Etag
119
+ Access-Control-Max-Age:
120
+ - '1728000'
121
+ Cf-Space-Id:
122
+ - fbrhs5tvrf52
123
+ Content-Type:
124
+ - application/vnd.contentful.management.v1+json
125
+ Date:
126
+ - Mon, 21 Dec 2015 09:54:23 GMT
127
+ Etag:
128
+ - '"c5a3f0b9e8f7bc55a6d375d2c24c4182"'
129
+ Server:
130
+ - nginx
131
+ Strict-Transport-Security:
132
+ - max-age=15768000
133
+ X-Content-Type-Options:
134
+ - nosniff
135
+ X-Contentful-Request-Id:
136
+ - content-api:1BGdsY38Hi8OIKa0UUMgkk
137
+ X-Powered-By:
138
+ - Express
139
+ Content-Length:
140
+ - '788'
141
+ Connection:
142
+ - Close
143
+ body:
144
+ encoding: UTF-8
145
+ string: |
146
+ {
147
+ "displayField": null,
148
+ "name": "Cat",
149
+ "description": null,
150
+ "fields": [
151
+ {
152
+ "id": "name",
153
+ "name": "Name",
154
+ "type": "Symbol",
155
+ "localized": false,
156
+ "validations": []
157
+ }
158
+ ],
159
+ "sys": {
160
+ "id": "cat",
161
+ "type": "ContentType",
162
+ "version": 1,
163
+ "createdAt": "2015-12-21T09:54:23.964Z",
164
+ "createdBy": {
165
+ "sys": {
166
+ "type": "Link",
167
+ "linkType": "User",
168
+ "id": "4FLrUHftHW3v2BLi9fzfjU"
169
+ }
170
+ },
171
+ "space": {
172
+ "sys": {
173
+ "type": "Link",
174
+ "linkType": "Space",
175
+ "id": "fbrhs5tvrf52"
176
+ }
177
+ },
178
+ "updatedAt": "2015-12-21T09:54:23.964Z",
179
+ "updatedBy": {
180
+ "sys": {
181
+ "type": "Link",
182
+ "linkType": "User",
183
+ "id": "4FLrUHftHW3v2BLi9fzfjU"
184
+ }
185
+ }
186
+ }
187
+ }
188
+ http_version:
189
+ recorded_at: Mon, 21 Dec 2015 09:54:25 GMT
190
+ - request:
191
+ method: put
192
+ uri: https://api.contentful.com/spaces/fbrhs5tvrf52/content_types/cat/published
193
+ body:
194
+ encoding: US-ASCII
195
+ string: ''
196
+ headers:
197
+ User-Agent:
198
+ - RubyContentfulManagementGem/0.7.3
199
+ Authorization:
200
+ - Bearer foobar
201
+ Content-Type:
202
+ - application/vnd.contentful.management.v1+json
203
+ X-Contentful-Version:
204
+ - '1'
205
+ Content-Length:
206
+ - '0'
207
+ Connection:
208
+ - close
209
+ response:
210
+ status:
211
+ code: 200
212
+ message: OK
213
+ headers:
214
+ Access-Control-Allow-Headers:
215
+ - 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
216
+ Access-Control-Allow-Methods:
217
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
218
+ Access-Control-Allow-Origin:
219
+ - '*'
220
+ Access-Control-Expose-Headers:
221
+ - Etag
222
+ Access-Control-Max-Age:
223
+ - '1728000'
224
+ Cf-Space-Id:
225
+ - fbrhs5tvrf52
226
+ Content-Type:
227
+ - application/vnd.contentful.management.v1+json
228
+ Date:
229
+ - Mon, 21 Dec 2015 09:54:27 GMT
230
+ Etag:
231
+ - '"fb78c3d736efc6b74546195f304caacd"'
232
+ Server:
233
+ - nginx
234
+ Strict-Transport-Security:
235
+ - max-age=15768000
236
+ X-Content-Type-Options:
237
+ - nosniff
238
+ X-Contentful-Request-Id:
239
+ - content-api:5J72YK5zigyUO0iYSIaYei
240
+ X-Powered-By:
241
+ - Express
242
+ Content-Length:
243
+ - '1083'
244
+ Connection:
245
+ - Close
246
+ body:
247
+ encoding: UTF-8
248
+ string: |
249
+ {
250
+ "displayField": null,
251
+ "name": "Cat",
252
+ "description": null,
253
+ "fields": [
254
+ {
255
+ "id": "name",
256
+ "name": "Name",
257
+ "type": "Symbol",
258
+ "localized": false,
259
+ "validations": []
260
+ }
261
+ ],
262
+ "sys": {
263
+ "id": "cat",
264
+ "type": "ContentType",
265
+ "createdAt": "2015-12-21T09:54:23.964Z",
266
+ "createdBy": {
267
+ "sys": {
268
+ "type": "Link",
269
+ "linkType": "User",
270
+ "id": "4FLrUHftHW3v2BLi9fzfjU"
271
+ }
272
+ },
273
+ "space": {
274
+ "sys": {
275
+ "type": "Link",
276
+ "linkType": "Space",
277
+ "id": "fbrhs5tvrf52"
278
+ }
279
+ },
280
+ "version": 2,
281
+ "updatedAt": "2015-12-21T09:54:27.539Z",
282
+ "updatedBy": {
283
+ "sys": {
284
+ "type": "Link",
285
+ "linkType": "User",
286
+ "id": "4FLrUHftHW3v2BLi9fzfjU"
287
+ }
288
+ },
289
+ "firstPublishedAt": "2015-12-21T09:54:27.539Z",
290
+ "publishedCounter": 1,
291
+ "publishedAt": "2015-12-21T09:54:27.539Z",
292
+ "publishedBy": {
293
+ "sys": {
294
+ "type": "Link",
295
+ "linkType": "User",
296
+ "id": "4FLrUHftHW3v2BLi9fzfjU"
297
+ }
298
+ },
299
+ "publishedVersion": 1
300
+ }
301
+ }
302
+ http_version:
303
+ recorded_at: Mon, 21 Dec 2015 09:54:29 GMT
304
+ - request:
305
+ method: get
306
+ uri: https://api.contentful.com/spaces/fbrhs5tvrf52/content_types/cat
307
+ body:
308
+ encoding: US-ASCII
309
+ string: ''
310
+ headers:
311
+ User-Agent:
312
+ - RubyContentfulManagementGem/0.7.3
313
+ Authorization:
314
+ - Bearer foobar
315
+ Content-Type:
316
+ - application/vnd.contentful.management.v1+json
317
+ Content-Length:
318
+ - '0'
319
+ Connection:
320
+ - close
321
+ response:
322
+ status:
323
+ code: 200
324
+ message: OK
325
+ headers:
326
+ Access-Control-Allow-Headers:
327
+ - 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
328
+ Access-Control-Allow-Methods:
329
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
330
+ Access-Control-Allow-Origin:
331
+ - '*'
332
+ Access-Control-Expose-Headers:
333
+ - Etag
334
+ Access-Control-Max-Age:
335
+ - '1728000'
336
+ Cf-Space-Id:
337
+ - fbrhs5tvrf52
338
+ Content-Type:
339
+ - application/vnd.contentful.management.v1+json
340
+ Date:
341
+ - Mon, 21 Dec 2015 09:54:28 GMT
342
+ Etag:
343
+ - '"b0e85ce0b9e003b3f6206aa619c8f969"'
344
+ Server:
345
+ - nginx
346
+ Strict-Transport-Security:
347
+ - max-age=15768000
348
+ X-Content-Type-Options:
349
+ - nosniff
350
+ X-Contentful-Request-Id:
351
+ - content-api:2kAU1l23GASoSG0sQqSs6W
352
+ X-Powered-By:
353
+ - Express
354
+ Content-Length:
355
+ - '1083'
356
+ Connection:
357
+ - Close
358
+ body:
359
+ encoding: UTF-8
360
+ string: |
361
+ {
362
+ "displayField": null,
363
+ "name": "Cat",
364
+ "description": null,
365
+ "fields": [
366
+ {
367
+ "id": "name",
368
+ "name": "Name",
369
+ "type": "Symbol",
370
+ "localized": false,
371
+ "validations": []
372
+ }
373
+ ],
374
+ "sys": {
375
+ "id": "cat",
376
+ "type": "ContentType",
377
+ "createdAt": "2015-12-21T09:54:23.964Z",
378
+ "createdBy": {
379
+ "sys": {
380
+ "type": "Link",
381
+ "linkType": "User",
382
+ "id": "4FLrUHftHW3v2BLi9fzfjU"
383
+ }
384
+ },
385
+ "space": {
386
+ "sys": {
387
+ "type": "Link",
388
+ "linkType": "Space",
389
+ "id": "fbrhs5tvrf52"
390
+ }
391
+ },
392
+ "firstPublishedAt": "2015-12-21T09:54:27.539Z",
393
+ "publishedCounter": 1,
394
+ "publishedAt": "2015-12-21T09:54:27.539Z",
395
+ "publishedBy": {
396
+ "sys": {
397
+ "type": "Link",
398
+ "linkType": "User",
399
+ "id": "4FLrUHftHW3v2BLi9fzfjU"
400
+ }
401
+ },
402
+ "publishedVersion": 1,
403
+ "version": 2,
404
+ "updatedAt": "2015-12-21T09:54:27.566Z",
405
+ "updatedBy": {
406
+ "sys": {
407
+ "type": "Link",
408
+ "linkType": "User",
409
+ "id": "4FLrUHftHW3v2BLi9fzfjU"
410
+ }
411
+ }
412
+ }
413
+ }
414
+ http_version:
415
+ recorded_at: Mon, 21 Dec 2015 09:54:30 GMT
416
+ - request:
417
+ method: post
418
+ uri: https://api.contentful.com/spaces/fbrhs5tvrf52/entries/
419
+ body:
420
+ encoding: UTF-8
421
+ string: '{"fields":{}}'
422
+ headers:
423
+ User-Agent:
424
+ - RubyContentfulManagementGem/0.7.3
425
+ Authorization:
426
+ - Bearer foobar
427
+ Content-Type:
428
+ - application/vnd.contentful.management.v1+json
429
+ X-Contentful-Content-Type:
430
+ - cat
431
+ Connection:
432
+ - close
433
+ response:
434
+ status:
435
+ code: 201
436
+ message: Created
437
+ headers:
438
+ Access-Control-Allow-Headers:
439
+ - 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
440
+ Access-Control-Allow-Methods:
441
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
442
+ Access-Control-Allow-Origin:
443
+ - '*'
444
+ Access-Control-Expose-Headers:
445
+ - Etag
446
+ Access-Control-Max-Age:
447
+ - '1728000'
448
+ Cf-Space-Id:
449
+ - fbrhs5tvrf52
450
+ Content-Type:
451
+ - application/vnd.contentful.management.v1+json
452
+ Date:
453
+ - Mon, 21 Dec 2015 09:54:29 GMT
454
+ Etag:
455
+ - '"60b6bc6157feb4a5b104b1258584f1a6"'
456
+ Server:
457
+ - nginx
458
+ Strict-Transport-Security:
459
+ - max-age=15768000
460
+ X-Content-Type-Options:
461
+ - nosniff
462
+ X-Contentful-Request-Id:
463
+ - content-api:31Pr2fzfUQIGs48aomssKC
464
+ X-Powered-By:
465
+ - Express
466
+ Content-Length:
467
+ - '735'
468
+ Connection:
469
+ - Close
470
+ body:
471
+ encoding: UTF-8
472
+ string: |
473
+ {
474
+ "fields": {},
475
+ "sys": {
476
+ "id": "iIRoS058jK8g0E0C0ew2C",
477
+ "type": "Entry",
478
+ "version": 1,
479
+ "createdAt": "2015-12-21T09:54:29.177Z",
480
+ "createdBy": {
481
+ "sys": {
482
+ "type": "Link",
483
+ "linkType": "User",
484
+ "id": "4FLrUHftHW3v2BLi9fzfjU"
485
+ }
486
+ },
487
+ "space": {
488
+ "sys": {
489
+ "type": "Link",
490
+ "linkType": "Space",
491
+ "id": "fbrhs5tvrf52"
492
+ }
493
+ },
494
+ "contentType": {
495
+ "sys": {
496
+ "type": "Link",
497
+ "linkType": "ContentType",
498
+ "id": "cat"
499
+ }
500
+ },
501
+ "updatedAt": "2015-12-21T09:54:29.177Z",
502
+ "updatedBy": {
503
+ "sys": {
504
+ "type": "Link",
505
+ "linkType": "User",
506
+ "id": "4FLrUHftHW3v2BLi9fzfjU"
507
+ }
508
+ }
509
+ }
510
+ }
511
+ http_version:
512
+ recorded_at: Mon, 21 Dec 2015 09:54:30 GMT
513
+ - request:
514
+ method: put
515
+ uri: https://api.contentful.com/spaces/fbrhs5tvrf52/entries/iIRoS058jK8g0E0C0ew2C
516
+ body:
517
+ encoding: UTF-8
518
+ string: '{"fields":{}}'
519
+ headers:
520
+ User-Agent:
521
+ - RubyContentfulManagementGem/0.7.3
522
+ Authorization:
523
+ - Bearer foobar
524
+ Content-Type:
525
+ - application/vnd.contentful.management.v1+json
526
+ X-Contentful-Version:
527
+ - '1'
528
+ Connection:
529
+ - close
530
+ response:
531
+ status:
532
+ code: 200
533
+ message: OK
534
+ headers:
535
+ Access-Control-Allow-Headers:
536
+ - 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
537
+ Access-Control-Allow-Methods:
538
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
539
+ Access-Control-Allow-Origin:
540
+ - '*'
541
+ Access-Control-Expose-Headers:
542
+ - Etag
543
+ Access-Control-Max-Age:
544
+ - '1728000'
545
+ Cf-Space-Id:
546
+ - fbrhs5tvrf52
547
+ Content-Type:
548
+ - application/vnd.contentful.management.v1+json
549
+ Date:
550
+ - Mon, 21 Dec 2015 09:54:29 GMT
551
+ Etag:
552
+ - '"6d20995cd37efcbb83c3da71fb7a378f"'
553
+ Server:
554
+ - nginx
555
+ Strict-Transport-Security:
556
+ - max-age=15768000
557
+ X-Content-Type-Options:
558
+ - nosniff
559
+ X-Contentful-Request-Id:
560
+ - content-api:59pUpOiqJ24I6OiGe68coQ
561
+ X-Powered-By:
562
+ - Express
563
+ Content-Length:
564
+ - '735'
565
+ Connection:
566
+ - Close
567
+ body:
568
+ encoding: UTF-8
569
+ string: |
570
+ {
571
+ "fields": {},
572
+ "sys": {
573
+ "id": "iIRoS058jK8g0E0C0ew2C",
574
+ "type": "Entry",
575
+ "createdAt": "2015-12-21T09:54:29.177Z",
576
+ "createdBy": {
577
+ "sys": {
578
+ "type": "Link",
579
+ "linkType": "User",
580
+ "id": "4FLrUHftHW3v2BLi9fzfjU"
581
+ }
582
+ },
583
+ "space": {
584
+ "sys": {
585
+ "type": "Link",
586
+ "linkType": "Space",
587
+ "id": "fbrhs5tvrf52"
588
+ }
589
+ },
590
+ "contentType": {
591
+ "sys": {
592
+ "type": "Link",
593
+ "linkType": "ContentType",
594
+ "id": "cat"
595
+ }
596
+ },
597
+ "version": 2,
598
+ "updatedAt": "2015-12-21T09:54:29.963Z",
599
+ "updatedBy": {
600
+ "sys": {
601
+ "type": "Link",
602
+ "linkType": "User",
603
+ "id": "4FLrUHftHW3v2BLi9fzfjU"
604
+ }
605
+ }
606
+ }
607
+ }
608
+ http_version:
609
+ recorded_at: Mon, 21 Dec 2015 09:54:31 GMT
610
+ - request:
611
+ method: get
612
+ uri: https://api.contentful.com/spaces/fbrhs5tvrf52/entries/iIRoS058jK8g0E0C0ew2C
613
+ body:
614
+ encoding: US-ASCII
615
+ string: ''
616
+ headers:
617
+ User-Agent:
618
+ - RubyContentfulManagementGem/0.7.3
619
+ Authorization:
620
+ - Bearer foobar
621
+ Content-Type:
622
+ - application/vnd.contentful.management.v1+json
623
+ Content-Length:
624
+ - '0'
625
+ Connection:
626
+ - close
627
+ response:
628
+ status:
629
+ code: 200
630
+ message: OK
631
+ headers:
632
+ Access-Control-Allow-Headers:
633
+ - 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
634
+ Access-Control-Allow-Methods:
635
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
636
+ Access-Control-Allow-Origin:
637
+ - '*'
638
+ Access-Control-Expose-Headers:
639
+ - Etag
640
+ Access-Control-Max-Age:
641
+ - '1728000'
642
+ Cf-Space-Id:
643
+ - fbrhs5tvrf52
644
+ Content-Type:
645
+ - application/vnd.contentful.management.v1+json
646
+ Date:
647
+ - Mon, 21 Dec 2015 09:54:34 GMT
648
+ Etag:
649
+ - '"0db8d9db2409ce03ce7c9f40546f7362"'
650
+ Server:
651
+ - nginx
652
+ Strict-Transport-Security:
653
+ - max-age=15768000
654
+ X-Content-Type-Options:
655
+ - nosniff
656
+ X-Contentful-Request-Id:
657
+ - content-api:1rkkrltOjq8we4kC4u2Saa
658
+ X-Powered-By:
659
+ - Express
660
+ Content-Length:
661
+ - '735'
662
+ Connection:
663
+ - Close
664
+ body:
665
+ encoding: UTF-8
666
+ string: |
667
+ {
668
+ "fields": {},
669
+ "sys": {
670
+ "id": "iIRoS058jK8g0E0C0ew2C",
671
+ "type": "Entry",
672
+ "createdAt": "2015-12-21T09:54:29.177Z",
673
+ "createdBy": {
674
+ "sys": {
675
+ "type": "Link",
676
+ "linkType": "User",
677
+ "id": "4FLrUHftHW3v2BLi9fzfjU"
678
+ }
679
+ },
680
+ "space": {
681
+ "sys": {
682
+ "type": "Link",
683
+ "linkType": "Space",
684
+ "id": "fbrhs5tvrf52"
685
+ }
686
+ },
687
+ "contentType": {
688
+ "sys": {
689
+ "type": "Link",
690
+ "linkType": "ContentType",
691
+ "id": "cat"
692
+ }
693
+ },
694
+ "version": 2,
695
+ "updatedAt": "2015-12-21T09:54:29.978Z",
696
+ "updatedBy": {
697
+ "sys": {
698
+ "type": "Link",
699
+ "linkType": "User",
700
+ "id": "4FLrUHftHW3v2BLi9fzfjU"
701
+ }
702
+ }
703
+ }
704
+ }
705
+ http_version:
706
+ recorded_at: Mon, 21 Dec 2015 09:54:35 GMT
707
+ - request:
708
+ method: put
709
+ uri: https://api.contentful.com/spaces/fbrhs5tvrf52/entries/iIRoS058jK8g0E0C0ew2C
710
+ body:
711
+ encoding: UTF-8
712
+ string: '{"fields":{}}'
713
+ headers:
714
+ User-Agent:
715
+ - RubyContentfulManagementGem/0.7.3
716
+ Authorization:
717
+ - Bearer foobar
718
+ Content-Type:
719
+ - application/vnd.contentful.management.v1+json
720
+ X-Contentful-Version:
721
+ - '2'
722
+ Connection:
723
+ - close
724
+ response:
725
+ status:
726
+ code: 200
727
+ message: OK
728
+ headers:
729
+ Access-Control-Allow-Headers:
730
+ - 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
731
+ Access-Control-Allow-Methods:
732
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
733
+ Access-Control-Allow-Origin:
734
+ - '*'
735
+ Access-Control-Expose-Headers:
736
+ - Etag
737
+ Access-Control-Max-Age:
738
+ - '1728000'
739
+ Cf-Space-Id:
740
+ - fbrhs5tvrf52
741
+ Content-Type:
742
+ - application/vnd.contentful.management.v1+json
743
+ Date:
744
+ - Mon, 21 Dec 2015 09:54:34 GMT
745
+ Etag:
746
+ - '"ff8ce5f951d218785d869c52f27177ba"'
747
+ Server:
748
+ - nginx
749
+ Strict-Transport-Security:
750
+ - max-age=15768000
751
+ X-Content-Type-Options:
752
+ - nosniff
753
+ X-Contentful-Request-Id:
754
+ - content-api:2s8cKtZLcQ0yQ8eKA4Yw68
755
+ X-Powered-By:
756
+ - Express
757
+ Content-Length:
758
+ - '735'
759
+ Connection:
760
+ - Close
761
+ body:
762
+ encoding: UTF-8
763
+ string: |
764
+ {
765
+ "fields": {},
766
+ "sys": {
767
+ "id": "iIRoS058jK8g0E0C0ew2C",
768
+ "type": "Entry",
769
+ "createdAt": "2015-12-21T09:54:29.177Z",
770
+ "createdBy": {
771
+ "sys": {
772
+ "type": "Link",
773
+ "linkType": "User",
774
+ "id": "4FLrUHftHW3v2BLi9fzfjU"
775
+ }
776
+ },
777
+ "space": {
778
+ "sys": {
779
+ "type": "Link",
780
+ "linkType": "Space",
781
+ "id": "fbrhs5tvrf52"
782
+ }
783
+ },
784
+ "contentType": {
785
+ "sys": {
786
+ "type": "Link",
787
+ "linkType": "ContentType",
788
+ "id": "cat"
789
+ }
790
+ },
791
+ "version": 3,
792
+ "updatedAt": "2015-12-21T09:54:34.887Z",
793
+ "updatedBy": {
794
+ "sys": {
795
+ "type": "Link",
796
+ "linkType": "User",
797
+ "id": "4FLrUHftHW3v2BLi9fzfjU"
798
+ }
799
+ }
800
+ }
801
+ }
802
+ http_version:
803
+ recorded_at: Mon, 21 Dec 2015 09:54:36 GMT
804
+ - request:
805
+ method: put
806
+ uri: https://api.contentful.com/spaces/fbrhs5tvrf52/entries/iIRoS058jK8g0E0C0ew2C
807
+ body:
808
+ encoding: UTF-8
809
+ string: '{"fields":{}}'
810
+ headers:
811
+ User-Agent:
812
+ - RubyContentfulManagementGem/0.7.3
813
+ Authorization:
814
+ - Bearer foobar
815
+ Content-Type:
816
+ - application/vnd.contentful.management.v1+json
817
+ X-Contentful-Version:
818
+ - '3'
819
+ Connection:
820
+ - close
821
+ response:
822
+ status:
823
+ code: 200
824
+ message: OK
825
+ headers:
826
+ Access-Control-Allow-Headers:
827
+ - 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
828
+ Access-Control-Allow-Methods:
829
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
830
+ Access-Control-Allow-Origin:
831
+ - '*'
832
+ Access-Control-Expose-Headers:
833
+ - Etag
834
+ Access-Control-Max-Age:
835
+ - '1728000'
836
+ Cf-Space-Id:
837
+ - fbrhs5tvrf52
838
+ Content-Type:
839
+ - application/vnd.contentful.management.v1+json
840
+ Date:
841
+ - Mon, 21 Dec 2015 09:54:35 GMT
842
+ Etag:
843
+ - '"667d7ff509254fd02e1acc7266460919"'
844
+ Server:
845
+ - nginx
846
+ Strict-Transport-Security:
847
+ - max-age=15768000
848
+ X-Content-Type-Options:
849
+ - nosniff
850
+ X-Contentful-Request-Id:
851
+ - content-api:5wtQXXNW5U6e2e2CqyYqYK
852
+ X-Powered-By:
853
+ - Express
854
+ Content-Length:
855
+ - '735'
856
+ Connection:
857
+ - Close
858
+ body:
859
+ encoding: UTF-8
860
+ string: |
861
+ {
862
+ "fields": {},
863
+ "sys": {
864
+ "id": "iIRoS058jK8g0E0C0ew2C",
865
+ "type": "Entry",
866
+ "createdAt": "2015-12-21T09:54:29.177Z",
867
+ "createdBy": {
868
+ "sys": {
869
+ "type": "Link",
870
+ "linkType": "User",
871
+ "id": "4FLrUHftHW3v2BLi9fzfjU"
872
+ }
873
+ },
874
+ "space": {
875
+ "sys": {
876
+ "type": "Link",
877
+ "linkType": "Space",
878
+ "id": "fbrhs5tvrf52"
879
+ }
880
+ },
881
+ "contentType": {
882
+ "sys": {
883
+ "type": "Link",
884
+ "linkType": "ContentType",
885
+ "id": "cat"
886
+ }
887
+ },
888
+ "version": 4,
889
+ "updatedAt": "2015-12-21T09:54:35.629Z",
890
+ "updatedBy": {
891
+ "sys": {
892
+ "type": "Link",
893
+ "linkType": "User",
894
+ "id": "4FLrUHftHW3v2BLi9fzfjU"
895
+ }
896
+ }
897
+ }
898
+ }
899
+ http_version:
900
+ recorded_at: Mon, 21 Dec 2015 09:54:37 GMT
901
+ - request:
902
+ method: get
903
+ uri: https://api.contentful.com/spaces/fbrhs5tvrf52/entries/iIRoS058jK8g0E0C0ew2C
904
+ body:
905
+ encoding: US-ASCII
906
+ string: ''
907
+ headers:
908
+ User-Agent:
909
+ - RubyContentfulManagementGem/0.7.3
910
+ Authorization:
911
+ - Bearer foobar
912
+ Content-Type:
913
+ - application/vnd.contentful.management.v1+json
914
+ Content-Length:
915
+ - '0'
916
+ Connection:
917
+ - close
918
+ response:
919
+ status:
920
+ code: 200
921
+ message: OK
922
+ headers:
923
+ Access-Control-Allow-Headers:
924
+ - 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
925
+ Access-Control-Allow-Methods:
926
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
927
+ Access-Control-Allow-Origin:
928
+ - '*'
929
+ Access-Control-Expose-Headers:
930
+ - Etag
931
+ Access-Control-Max-Age:
932
+ - '1728000'
933
+ Cf-Space-Id:
934
+ - fbrhs5tvrf52
935
+ Content-Type:
936
+ - application/vnd.contentful.management.v1+json
937
+ Date:
938
+ - Mon, 21 Dec 2015 09:54:36 GMT
939
+ Etag:
940
+ - '"5fc654cebe68be45cf4306a1e8d19d8e"'
941
+ Server:
942
+ - nginx
943
+ Strict-Transport-Security:
944
+ - max-age=15768000
945
+ X-Content-Type-Options:
946
+ - nosniff
947
+ X-Contentful-Request-Id:
948
+ - content-api:5qoJiwuz282QeOSgiy6Gky
949
+ X-Powered-By:
950
+ - Express
951
+ Content-Length:
952
+ - '735'
953
+ Connection:
954
+ - Close
955
+ body:
956
+ encoding: UTF-8
957
+ string: |
958
+ {
959
+ "fields": {},
960
+ "sys": {
961
+ "id": "iIRoS058jK8g0E0C0ew2C",
962
+ "type": "Entry",
963
+ "createdAt": "2015-12-21T09:54:29.177Z",
964
+ "createdBy": {
965
+ "sys": {
966
+ "type": "Link",
967
+ "linkType": "User",
968
+ "id": "4FLrUHftHW3v2BLi9fzfjU"
969
+ }
970
+ },
971
+ "space": {
972
+ "sys": {
973
+ "type": "Link",
974
+ "linkType": "Space",
975
+ "id": "fbrhs5tvrf52"
976
+ }
977
+ },
978
+ "contentType": {
979
+ "sys": {
980
+ "type": "Link",
981
+ "linkType": "ContentType",
982
+ "id": "cat"
983
+ }
984
+ },
985
+ "version": 4,
986
+ "updatedAt": "2015-12-21T09:54:35.636Z",
987
+ "updatedBy": {
988
+ "sys": {
989
+ "type": "Link",
990
+ "linkType": "User",
991
+ "id": "4FLrUHftHW3v2BLi9fzfjU"
992
+ }
993
+ }
994
+ }
995
+ }
996
+ http_version:
997
+ recorded_at: Mon, 21 Dec 2015 09:54:37 GMT
998
+ - request:
999
+ method: get
1000
+ uri: https://api.contentful.com/spaces/fbrhs5tvrf52/entries/iIRoS058jK8g0E0C0ew2C
1001
+ body:
1002
+ encoding: US-ASCII
1003
+ string: ''
1004
+ headers:
1005
+ User-Agent:
1006
+ - RubyContentfulManagementGem/0.7.3
1007
+ Authorization:
1008
+ - Bearer foobar
1009
+ Content-Type:
1010
+ - application/vnd.contentful.management.v1+json
1011
+ Content-Length:
1012
+ - '0'
1013
+ Connection:
1014
+ - close
1015
+ response:
1016
+ status:
1017
+ code: 200
1018
+ message: OK
1019
+ headers:
1020
+ Access-Control-Allow-Headers:
1021
+ - 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
1022
+ Access-Control-Allow-Methods:
1023
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
1024
+ Access-Control-Allow-Origin:
1025
+ - '*'
1026
+ Access-Control-Expose-Headers:
1027
+ - Etag
1028
+ Access-Control-Max-Age:
1029
+ - '1728000'
1030
+ Cf-Space-Id:
1031
+ - fbrhs5tvrf52
1032
+ Content-Type:
1033
+ - application/vnd.contentful.management.v1+json
1034
+ Date:
1035
+ - Mon, 21 Dec 2015 09:54:36 GMT
1036
+ Etag:
1037
+ - '"5fc654cebe68be45cf4306a1e8d19d8e"'
1038
+ Server:
1039
+ - nginx
1040
+ Strict-Transport-Security:
1041
+ - max-age=15768000
1042
+ X-Content-Type-Options:
1043
+ - nosniff
1044
+ X-Contentful-Request-Id:
1045
+ - content-api:3uyZ5SMscgeaiOCsm4qKo4
1046
+ X-Powered-By:
1047
+ - Express
1048
+ Content-Length:
1049
+ - '735'
1050
+ Connection:
1051
+ - Close
1052
+ body:
1053
+ encoding: UTF-8
1054
+ string: |
1055
+ {
1056
+ "fields": {},
1057
+ "sys": {
1058
+ "id": "iIRoS058jK8g0E0C0ew2C",
1059
+ "type": "Entry",
1060
+ "createdAt": "2015-12-21T09:54:29.177Z",
1061
+ "createdBy": {
1062
+ "sys": {
1063
+ "type": "Link",
1064
+ "linkType": "User",
1065
+ "id": "4FLrUHftHW3v2BLi9fzfjU"
1066
+ }
1067
+ },
1068
+ "space": {
1069
+ "sys": {
1070
+ "type": "Link",
1071
+ "linkType": "Space",
1072
+ "id": "fbrhs5tvrf52"
1073
+ }
1074
+ },
1075
+ "contentType": {
1076
+ "sys": {
1077
+ "type": "Link",
1078
+ "linkType": "ContentType",
1079
+ "id": "cat"
1080
+ }
1081
+ },
1082
+ "version": 4,
1083
+ "updatedAt": "2015-12-21T09:54:35.636Z",
1084
+ "updatedBy": {
1085
+ "sys": {
1086
+ "type": "Link",
1087
+ "linkType": "User",
1088
+ "id": "4FLrUHftHW3v2BLi9fzfjU"
1089
+ }
1090
+ }
1091
+ }
1092
+ }
1093
+ http_version:
1094
+ recorded_at: Mon, 21 Dec 2015 09:54:38 GMT
1095
+ - request:
1096
+ method: put
1097
+ uri: https://api.contentful.com/spaces/fbrhs5tvrf52/entries/iIRoS058jK8g0E0C0ew2C/published
1098
+ body:
1099
+ encoding: US-ASCII
1100
+ string: ''
1101
+ headers:
1102
+ User-Agent:
1103
+ - RubyContentfulManagementGem/0.7.3
1104
+ Authorization:
1105
+ - Bearer foobar
1106
+ Content-Type:
1107
+ - application/vnd.contentful.management.v1+json
1108
+ X-Contentful-Version:
1109
+ - '4'
1110
+ Content-Length:
1111
+ - '0'
1112
+ Connection:
1113
+ - close
1114
+ response:
1115
+ status:
1116
+ code: 200
1117
+ message: OK
1118
+ headers:
1119
+ Access-Control-Allow-Headers:
1120
+ - 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
1121
+ Access-Control-Allow-Methods:
1122
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
1123
+ Access-Control-Allow-Origin:
1124
+ - '*'
1125
+ Access-Control-Expose-Headers:
1126
+ - Etag
1127
+ Access-Control-Max-Age:
1128
+ - '1728000'
1129
+ Cf-Space-Id:
1130
+ - fbrhs5tvrf52
1131
+ Content-Type:
1132
+ - application/vnd.contentful.management.v1+json
1133
+ Date:
1134
+ - Mon, 21 Dec 2015 09:54:37 GMT
1135
+ Etag:
1136
+ - '"45bd8a4d4b05c64749a6805079882d39"'
1137
+ Server:
1138
+ - nginx
1139
+ Strict-Transport-Security:
1140
+ - max-age=15768000
1141
+ X-Content-Type-Options:
1142
+ - nosniff
1143
+ X-Contentful-Request-Id:
1144
+ - content-api:6H2C2XEnmME24USyMKMa2Q
1145
+ X-Powered-By:
1146
+ - Express
1147
+ Content-Length:
1148
+ - '1030'
1149
+ Connection:
1150
+ - Close
1151
+ body:
1152
+ encoding: UTF-8
1153
+ string: |
1154
+ {
1155
+ "fields": {},
1156
+ "sys": {
1157
+ "id": "iIRoS058jK8g0E0C0ew2C",
1158
+ "type": "Entry",
1159
+ "createdAt": "2015-12-21T09:54:29.177Z",
1160
+ "createdBy": {
1161
+ "sys": {
1162
+ "type": "Link",
1163
+ "linkType": "User",
1164
+ "id": "4FLrUHftHW3v2BLi9fzfjU"
1165
+ }
1166
+ },
1167
+ "space": {
1168
+ "sys": {
1169
+ "type": "Link",
1170
+ "linkType": "Space",
1171
+ "id": "fbrhs5tvrf52"
1172
+ }
1173
+ },
1174
+ "contentType": {
1175
+ "sys": {
1176
+ "type": "Link",
1177
+ "linkType": "ContentType",
1178
+ "id": "cat"
1179
+ }
1180
+ },
1181
+ "version": 5,
1182
+ "updatedAt": "2015-12-21T09:54:37.413Z",
1183
+ "updatedBy": {
1184
+ "sys": {
1185
+ "type": "Link",
1186
+ "linkType": "User",
1187
+ "id": "4FLrUHftHW3v2BLi9fzfjU"
1188
+ }
1189
+ },
1190
+ "firstPublishedAt": "2015-12-21T09:54:37.413Z",
1191
+ "publishedCounter": 1,
1192
+ "publishedAt": "2015-12-21T09:54:37.413Z",
1193
+ "publishedBy": {
1194
+ "sys": {
1195
+ "type": "Link",
1196
+ "linkType": "User",
1197
+ "id": "4FLrUHftHW3v2BLi9fzfjU"
1198
+ }
1199
+ },
1200
+ "publishedVersion": 4
1201
+ }
1202
+ }
1203
+ http_version:
1204
+ recorded_at: Mon, 21 Dec 2015 09:54:39 GMT
1205
+ - request:
1206
+ method: post
1207
+ uri: https://api.contentful.com/spaces/fbrhs5tvrf52/api_keys
1208
+ body:
1209
+ encoding: UTF-8
1210
+ string: '{"name":"Bootstrap Token","description":"Created with ''contentful_bootstrap.rb
1211
+ v2.0.2''"}'
1212
+ headers:
1213
+ User-Agent:
1214
+ - RubyContentfulManagementGem/0.7.3
1215
+ Authorization:
1216
+ - Bearer foobar
1217
+ Content-Type:
1218
+ - application/vnd.contentful.management.v1+json
1219
+ Connection:
1220
+ - close
1221
+ response:
1222
+ status:
1223
+ code: 201
1224
+ message: Created
1225
+ headers:
1226
+ Accept-Ranges:
1227
+ - bytes
1228
+ Access-Control-Allow-Headers:
1229
+ - 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
1230
+ Access-Control-Allow-Methods:
1231
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
1232
+ Access-Control-Allow-Origin:
1233
+ - '*'
1234
+ Access-Control-Expose-Headers:
1235
+ - Etag
1236
+ Access-Control-Max-Age:
1237
+ - '1728000'
1238
+ Cache-Control:
1239
+ - max-age=0
1240
+ Content-Type:
1241
+ - application/vnd.contentful.management.v1+json
1242
+ Date:
1243
+ - Mon, 21 Dec 2015 09:54:38 GMT
1244
+ Etag:
1245
+ - '"f18040497fabf2c0e6ff6abb25b1ad72"'
1246
+ Location:
1247
+ - https://api.contentful.com/spaces/fbrhs5tvrf52/api_keys/60V12pES0cfX9qlGkzOsoM
1248
+ Server:
1249
+ - nginx
1250
+ Status:
1251
+ - 201 Created
1252
+ Strict-Transport-Security:
1253
+ - max-age=15768000
1254
+ X-Content-Type-Options:
1255
+ - nosniff
1256
+ X-Contentful-Request-Id:
1257
+ - 0b5-149627774
1258
+ Content-Length:
1259
+ - '954'
1260
+ Connection:
1261
+ - Close
1262
+ body:
1263
+ encoding: UTF-8
1264
+ string: |+
1265
+ {
1266
+ "sys":{
1267
+ "type":"ApiKey",
1268
+ "id":"60V12pES0cfX9qlGkzOsoM",
1269
+ "version":0,
1270
+ "space":{
1271
+ "sys":{
1272
+ "type":"Link",
1273
+ "linkType":"Space",
1274
+ "id":"fbrhs5tvrf52"
1275
+ }
1276
+ },
1277
+ "createdBy":{
1278
+ "sys":{
1279
+ "type":"Link",
1280
+ "linkType":"User",
1281
+ "id":"4FLrUHftHW3v2BLi9fzfjU"
1282
+ }
1283
+ },
1284
+ "createdAt":"2015-12-21T09:54:38Z",
1285
+ "updatedBy":{
1286
+ "sys":{
1287
+ "type":"Link",
1288
+ "linkType":"User",
1289
+ "id":"4FLrUHftHW3v2BLi9fzfjU"
1290
+ }
1291
+ },
1292
+ "updatedAt":"2015-12-21T09:54:38Z"
1293
+ },
1294
+ "name":"Bootstrap Token",
1295
+ "description":"Created with 'contentful_bootstrap.rb v2.0.2'",
1296
+ "accessToken":"61eeaaac93e18cb4f23c5b0108dea17999bafa87215b4020945b4dc0dd3d7fcc",
1297
+ "policies":[
1298
+ {
1299
+ "effect":"allow",
1300
+ "actions":"all"
1301
+ }
1302
+ ],
1303
+ "preview_api_key":{
1304
+ "sys":{
1305
+ "type":"Link",
1306
+ "linkType":"PreviewApiKey",
1307
+ "id":"60WmXduCRM5y97RucLE6pW"
1308
+ }
1309
+ }
1310
+ }
1311
+
1312
+ http_version:
1313
+ recorded_at: Mon, 21 Dec 2015 09:54:40 GMT
1314
+ recorded_with: VCR 3.0.1