contentful_middleman 1.1.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +7 -3
  3. data/CHANGELOG.md +10 -0
  4. data/CONTRIBUTING.md +1 -1
  5. data/Gemfile +1 -2
  6. data/Guardfile +5 -0
  7. data/README.md +122 -8
  8. data/contentful_middleman.gemspec +9 -3
  9. data/lib/contentful_middleman/commands/contentful.rb +0 -1
  10. data/lib/contentful_middleman/core.rb +18 -0
  11. data/lib/contentful_middleman/helpers.rb +29 -0
  12. data/lib/contentful_middleman/import_task.rb +6 -3
  13. data/lib/contentful_middleman/instance.rb +26 -5
  14. data/lib/contentful_middleman/mappers/base.rb +10 -2
  15. data/lib/contentful_middleman/version.rb +1 -1
  16. data/lib/contentful_middleman/webhook_handler.rb +33 -0
  17. data/spec/contentful_middleman/commands/context_spec.rb +22 -0
  18. data/spec/contentful_middleman/core_spec.rb +89 -0
  19. data/spec/contentful_middleman/helpers_spec.rb +99 -0
  20. data/spec/contentful_middleman/import_task_spec.rb +41 -0
  21. data/spec/contentful_middleman/instance_spec.rb +71 -0
  22. data/spec/contentful_middleman/local_data/file_spec.rb +34 -0
  23. data/spec/contentful_middleman/local_data/store_spec.rb +47 -0
  24. data/spec/contentful_middleman/mappers/base_spec.rb +88 -0
  25. data/spec/contentful_middleman/tools/backup_spec.rb +113 -0
  26. data/spec/contentful_middleman/version_hash_spec.rb +58 -0
  27. data/spec/contentful_middleman/webhook_handler_spec.rb +32 -0
  28. data/spec/fixtures/backup_fixtures/.tmp/backups/.gitkeep +0 -0
  29. data/spec/fixtures/backup_fixtures/baz +0 -0
  30. data/spec/fixtures/space_hash_fixtures/.blah-space-hash +1 -0
  31. data/spec/fixtures/space_hash_fixtures/.foo-space-hash +1 -0
  32. data/spec/fixtures/space_hash_fixtures/.foobar-space-hash +1 -0
  33. data/spec/fixtures/space_hash_fixtures/.my_space-space-hash +1 -0
  34. data/spec/fixtures/vcr_fixtures/instance/entries_1.yml +93 -0
  35. data/spec/fixtures/vcr_fixtures/instance/entries_2.yml +293 -0
  36. data/spec/fixtures/vcr_fixtures/mappers/entries.yml +913 -0
  37. data/spec/fixtures/vcr_fixtures/mappers/entries_localized.yml +996 -0
  38. data/spec/spec_helper.rb +57 -2
  39. metadata +153 -14
  40. data/TODO +0 -15
  41. data/spec/contentful_middleman_spec.rb +0 -5
@@ -0,0 +1,996 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://cdn.contentful.com/spaces/cfexampleapi/content_types?limit=1000
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - RubyContentfulGem/0.7.0
12
+ Authorization:
13
+ - Bearer b4c0n73n7fu1
14
+ Content-Type:
15
+ - application/vnd.contentful.delivery.v1+json
16
+ Connection:
17
+ - close
18
+ Host:
19
+ - cdn.contentful.com
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Access-Control-Allow-Headers:
26
+ - 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
27
+ Access-Control-Allow-Methods:
28
+ - GET,HEAD,OPTIONS
29
+ Access-Control-Allow-Origin:
30
+ - "*"
31
+ Access-Control-Expose-Headers:
32
+ - Etag
33
+ Access-Control-Max-Age:
34
+ - '86400'
35
+ Cache-Control:
36
+ - max-age=0
37
+ Content-Type:
38
+ - application/vnd.contentful.delivery.v1+json
39
+ Etag:
40
+ - '"a74bc0b64b4ed0d8864f88c464ca92ec"'
41
+ Server:
42
+ - nginx
43
+ X-Contentful-Request-Id:
44
+ - 405-1389484612
45
+ Content-Length:
46
+ - '5619'
47
+ Accept-Ranges:
48
+ - bytes
49
+ Date:
50
+ - Wed, 02 Dec 2015 18:20:29 GMT
51
+ Via:
52
+ - 1.1 varnish
53
+ Age:
54
+ - '0'
55
+ Connection:
56
+ - close
57
+ X-Served-By:
58
+ - cache-iad2122-IAD
59
+ X-Cache:
60
+ - MISS
61
+ X-Cache-Hits:
62
+ - '0'
63
+ Vary:
64
+ - Accept-Encoding
65
+ body:
66
+ encoding: UTF-8
67
+ string: |
68
+ {
69
+ "sys": {
70
+ "type": "Array"
71
+ },
72
+ "total": 5,
73
+ "skip": 0,
74
+ "limit": 1000,
75
+ "items": [
76
+ {
77
+ "fields": [
78
+ {
79
+ "name": "Name",
80
+ "id": "name",
81
+ "type": "Text",
82
+ "required": true
83
+ },
84
+ {
85
+ "name": "Center",
86
+ "id": "center",
87
+ "type": "Location",
88
+ "required": true
89
+ }
90
+ ],
91
+ "name": "City",
92
+ "sys": {
93
+ "space": {
94
+ "sys": {
95
+ "type": "Link",
96
+ "linkType": "Space",
97
+ "id": "cfexampleapi"
98
+ }
99
+ },
100
+ "type": "ContentType",
101
+ "id": "1t9IbcfdCk6m04uISSsaIK",
102
+ "revision": 1,
103
+ "createdAt": "2014-02-21T13:42:33.009Z",
104
+ "updatedAt": "2014-02-21T13:42:33.009Z"
105
+ },
106
+ "displayField": "name"
107
+ },
108
+ {
109
+ "fields": [
110
+ {
111
+ "id": "name",
112
+ "name": "Name",
113
+ "type": "Text",
114
+ "required": true,
115
+ "localized": false
116
+ }
117
+ ],
118
+ "name": "Cat",
119
+ "sys": {
120
+ "space": {
121
+ "sys": {
122
+ "type": "Link",
123
+ "linkType": "Space",
124
+ "id": "cfexampleapi"
125
+ }
126
+ },
127
+ "type": "ContentType",
128
+ "id": "63k4qdEi9aI8IQUGaYGg4O",
129
+ "revision": 1,
130
+ "createdAt": "2013-06-23T19:06:29.976Z",
131
+ "updatedAt": "2013-06-23T19:06:29.976Z"
132
+ },
133
+ "description": "Meow!",
134
+ "displayField": "name"
135
+ },
136
+ {
137
+ "fields": [
138
+ {
139
+ "id": "name",
140
+ "name": "Name",
141
+ "type": "Text",
142
+ "required": true,
143
+ "localized": false
144
+ },
145
+ {
146
+ "id": "description",
147
+ "name": "Description",
148
+ "type": "Text",
149
+ "required": false,
150
+ "localized": false
151
+ },
152
+ {
153
+ "id": "image",
154
+ "name": "Image",
155
+ "required": false,
156
+ "localized": false,
157
+ "type": "Link",
158
+ "linkType": "Asset"
159
+ }
160
+ ],
161
+ "name": "Dog",
162
+ "description": "Bark!",
163
+ "displayField": "name",
164
+ "sys": {
165
+ "space": {
166
+ "sys": {
167
+ "type": "Link",
168
+ "linkType": "Space",
169
+ "id": "cfexampleapi"
170
+ }
171
+ },
172
+ "type": "ContentType",
173
+ "id": "dog",
174
+ "revision": 2,
175
+ "createdAt": "2013-06-27T22:46:13.498Z",
176
+ "updatedAt": "2013-09-02T14:32:11.837Z"
177
+ }
178
+ },
179
+ {
180
+ "fields": [
181
+ {
182
+ "id": "name",
183
+ "name": "Name",
184
+ "type": "Text",
185
+ "required": true,
186
+ "localized": true
187
+ },
188
+ {
189
+ "id": "likes",
190
+ "name": "Likes",
191
+ "type": "Array",
192
+ "required": false,
193
+ "localized": false,
194
+ "items": {
195
+ "type": "Symbol"
196
+ }
197
+ },
198
+ {
199
+ "id": "color",
200
+ "name": "Color",
201
+ "type": "Symbol",
202
+ "required": false,
203
+ "localized": false
204
+ },
205
+ {
206
+ "id": "bestFriend",
207
+ "name": "Best Friend",
208
+ "type": "Link",
209
+ "required": false,
210
+ "localized": false,
211
+ "linkType": "Entry"
212
+ },
213
+ {
214
+ "id": "birthday",
215
+ "name": "Birthday",
216
+ "type": "Date",
217
+ "required": false,
218
+ "localized": false
219
+ },
220
+ {
221
+ "id": "lifes",
222
+ "name": "Lifes left",
223
+ "type": "Integer",
224
+ "required": false,
225
+ "localized": false,
226
+ "disabled": true
227
+ },
228
+ {
229
+ "id": "lives",
230
+ "name": "Lives left",
231
+ "type": "Integer",
232
+ "required": false,
233
+ "localized": false
234
+ },
235
+ {
236
+ "id": "image",
237
+ "name": "Image",
238
+ "required": false,
239
+ "localized": false,
240
+ "type": "Link",
241
+ "linkType": "Asset"
242
+ }
243
+ ],
244
+ "name": "Cat",
245
+ "displayField": "name",
246
+ "description": "Meow.",
247
+ "sys": {
248
+ "space": {
249
+ "sys": {
250
+ "type": "Link",
251
+ "linkType": "Space",
252
+ "id": "cfexampleapi"
253
+ }
254
+ },
255
+ "type": "ContentType",
256
+ "id": "cat",
257
+ "revision": 2,
258
+ "createdAt": "2013-06-27T22:46:12.852Z",
259
+ "updatedAt": "2013-09-02T13:14:47.863Z"
260
+ }
261
+ },
262
+ {
263
+ "fields": [
264
+ {
265
+ "id": "name",
266
+ "name": "Name",
267
+ "type": "Text",
268
+ "required": true,
269
+ "localized": false
270
+ },
271
+ {
272
+ "id": "description",
273
+ "name": "Description",
274
+ "type": "Text",
275
+ "required": false,
276
+ "localized": false
277
+ },
278
+ {
279
+ "id": "likes",
280
+ "name": "Likes",
281
+ "type": "Array",
282
+ "required": false,
283
+ "localized": false,
284
+ "items": {
285
+ "type": "Symbol"
286
+ }
287
+ },
288
+ {
289
+ "id": "image",
290
+ "name": "Image",
291
+ "required": false,
292
+ "localized": false,
293
+ "type": "Array",
294
+ "items": {
295
+ "type": "Link",
296
+ "linkType": "Asset"
297
+ },
298
+ "disabled": true
299
+ }
300
+ ],
301
+ "name": "Human",
302
+ "displayField": "name",
303
+ "sys": {
304
+ "space": {
305
+ "sys": {
306
+ "type": "Link",
307
+ "linkType": "Space",
308
+ "id": "cfexampleapi"
309
+ }
310
+ },
311
+ "type": "ContentType",
312
+ "id": "human",
313
+ "revision": 3,
314
+ "createdAt": "2013-06-27T22:46:14.133Z",
315
+ "updatedAt": "2013-09-02T15:10:26.818Z"
316
+ }
317
+ }
318
+ ]
319
+ }
320
+ http_version:
321
+ recorded_at: Wed, 02 Dec 2015 18:20:29 GMT
322
+ - request:
323
+ method: get
324
+ uri: https://cdn.contentful.com/spaces/cfexampleapi/entries?include=1&locale=*
325
+ body:
326
+ encoding: US-ASCII
327
+ string: ''
328
+ headers:
329
+ User-Agent:
330
+ - RubyContentfulGem/0.7.0
331
+ Authorization:
332
+ - Bearer b4c0n73n7fu1
333
+ Content-Type:
334
+ - application/vnd.contentful.delivery.v1+json
335
+ Connection:
336
+ - close
337
+ Host:
338
+ - cdn.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
+ - GET,HEAD,OPTIONS
348
+ Access-Control-Allow-Origin:
349
+ - "*"
350
+ Access-Control-Expose-Headers:
351
+ - Etag
352
+ Access-Control-Max-Age:
353
+ - '86400'
354
+ Cache-Control:
355
+ - max-age=0
356
+ Content-Type:
357
+ - application/vnd.contentful.delivery.v1+json
358
+ Etag:
359
+ - '"eac96ae01d702c27f00720b82d4f85f6"'
360
+ Server:
361
+ - nginx
362
+ X-Contentful-Request-Id:
363
+ - c40-589333571
364
+ Content-Length:
365
+ - '13968'
366
+ Accept-Ranges:
367
+ - bytes
368
+ Date:
369
+ - Wed, 02 Dec 2015 18:20:29 GMT
370
+ Via:
371
+ - 1.1 varnish
372
+ Age:
373
+ - '0'
374
+ Connection:
375
+ - close
376
+ X-Served-By:
377
+ - cache-iad2145-IAD
378
+ X-Cache:
379
+ - MISS
380
+ X-Cache-Hits:
381
+ - '0'
382
+ Vary:
383
+ - Accept-Encoding
384
+ body:
385
+ encoding: UTF-8
386
+ string: |
387
+ {
388
+ "sys": {
389
+ "type": "Array"
390
+ },
391
+ "total": 11,
392
+ "skip": 0,
393
+ "limit": 100,
394
+ "items": [
395
+ {
396
+ "sys": {
397
+ "space": {
398
+ "sys": {
399
+ "type": "Link",
400
+ "linkType": "Space",
401
+ "id": "cfexampleapi"
402
+ }
403
+ },
404
+ "type": "Entry",
405
+ "contentType": {
406
+ "sys": {
407
+ "type": "Link",
408
+ "linkType": "ContentType",
409
+ "id": "dog"
410
+ }
411
+ },
412
+ "id": "6KntaYXaHSyIw8M6eo26OK",
413
+ "revision": 2,
414
+ "createdAt": "2013-11-06T09:45:27.475Z",
415
+ "updatedAt": "2013-11-18T09:13:37.808Z"
416
+ },
417
+ "fields": {
418
+ "name": {
419
+ "en-US": "Doge"
420
+ },
421
+ "image": {
422
+ "en-US": {
423
+ "sys": {
424
+ "type": "Link",
425
+ "linkType": "Asset",
426
+ "id": "1x0xpXu4pSGS4OukSyWGUK"
427
+ }
428
+ }
429
+ },
430
+ "description": {
431
+ "en-US": "such json\nwow"
432
+ }
433
+ }
434
+ },
435
+ {
436
+ "sys": {
437
+ "space": {
438
+ "sys": {
439
+ "type": "Link",
440
+ "linkType": "Space",
441
+ "id": "cfexampleapi"
442
+ }
443
+ },
444
+ "type": "Entry",
445
+ "contentType": {
446
+ "sys": {
447
+ "type": "Link",
448
+ "linkType": "ContentType",
449
+ "id": "1t9IbcfdCk6m04uISSsaIK"
450
+ }
451
+ },
452
+ "id": "4MU1s3potiUEM2G4okYOqw",
453
+ "revision": 1,
454
+ "createdAt": "2014-02-21T13:42:45.926Z",
455
+ "updatedAt": "2014-02-21T13:42:45.926Z"
456
+ },
457
+ "fields": {
458
+ "name": {
459
+ "en-US": "Berlin"
460
+ },
461
+ "center": {
462
+ "en-US": {
463
+ "lat": 52.52000659999999,
464
+ "lon": 13.404953999999975
465
+ }
466
+ }
467
+ }
468
+ },
469
+ {
470
+ "fields": {
471
+ "name": {
472
+ "en-US": "Happy Cat",
473
+ "tlh": "Quch vIghro'"
474
+ },
475
+ "bestFriend": {
476
+ "en-US": {
477
+ "sys": {
478
+ "type": "Link",
479
+ "linkType": "Entry",
480
+ "id": "nyancat"
481
+ }
482
+ }
483
+ },
484
+ "likes": {
485
+ "en-US": [
486
+ "cheezburger"
487
+ ]
488
+ },
489
+ "color": {
490
+ "en-US": "gray"
491
+ },
492
+ "birthday": {
493
+ "en-US": "2003-10-28T23:00:00+00:00"
494
+ },
495
+ "lives": {
496
+ "en-US": 1
497
+ },
498
+ "image": {
499
+ "en-US": {
500
+ "sys": {
501
+ "type": "Link",
502
+ "linkType": "Asset",
503
+ "id": "happycat"
504
+ }
505
+ }
506
+ }
507
+ },
508
+ "sys": {
509
+ "space": {
510
+ "sys": {
511
+ "type": "Link",
512
+ "linkType": "Space",
513
+ "id": "cfexampleapi"
514
+ }
515
+ },
516
+ "type": "Entry",
517
+ "contentType": {
518
+ "sys": {
519
+ "type": "Link",
520
+ "linkType": "ContentType",
521
+ "id": "cat"
522
+ }
523
+ },
524
+ "id": "happycat",
525
+ "revision": 8,
526
+ "createdAt": "2013-06-27T22:46:20.171Z",
527
+ "updatedAt": "2013-11-18T15:58:02.018Z"
528
+ }
529
+ },
530
+ {
531
+ "sys": {
532
+ "space": {
533
+ "sys": {
534
+ "type": "Link",
535
+ "linkType": "Space",
536
+ "id": "cfexampleapi"
537
+ }
538
+ },
539
+ "type": "Entry",
540
+ "contentType": {
541
+ "sys": {
542
+ "type": "Link",
543
+ "linkType": "ContentType",
544
+ "id": "63k4qdEi9aI8IQUGaYGg4O"
545
+ }
546
+ },
547
+ "id": "CVebBDcQsSsu6yKKIayy",
548
+ "revision": 1,
549
+ "createdAt": "2013-06-23T19:06:46.224Z",
550
+ "updatedAt": "2013-06-23T19:06:46.224Z"
551
+ },
552
+ "fields": {
553
+ "name": {
554
+ "en-US": "Nyancat"
555
+ }
556
+ }
557
+ },
558
+ {
559
+ "fields": {
560
+ "name": {
561
+ "en-US": "Garfield",
562
+ "tlh": "Garfield"
563
+ },
564
+ "likes": {
565
+ "en-US": [
566
+ "lasagna"
567
+ ]
568
+ },
569
+ "color": {
570
+ "en-US": "orange"
571
+ },
572
+ "lifes": {
573
+ "en-US": null
574
+ },
575
+ "lives": {
576
+ "en-US": 9
577
+ },
578
+ "birthday": {
579
+ "en-US": "1979-06-18T23:00:00+00:00"
580
+ }
581
+ },
582
+ "sys": {
583
+ "space": {
584
+ "sys": {
585
+ "type": "Link",
586
+ "linkType": "Space",
587
+ "id": "cfexampleapi"
588
+ }
589
+ },
590
+ "type": "Entry",
591
+ "contentType": {
592
+ "sys": {
593
+ "type": "Link",
594
+ "linkType": "ContentType",
595
+ "id": "cat"
596
+ }
597
+ },
598
+ "id": "garfield",
599
+ "revision": 2,
600
+ "createdAt": "2013-06-27T22:46:20.821Z",
601
+ "updatedAt": "2013-08-27T10:09:07.929Z"
602
+ }
603
+ },
604
+ {
605
+ "fields": {
606
+ "name": {
607
+ "en-US": "Nyan Cat",
608
+ "tlh": "Nyan vIghro'"
609
+ },
610
+ "likes": {
611
+ "en-US": [
612
+ "rainbows",
613
+ "fish"
614
+ ]
615
+ },
616
+ "color": {
617
+ "en-US": "rainbow"
618
+ },
619
+ "bestFriend": {
620
+ "en-US": {
621
+ "sys": {
622
+ "type": "Link",
623
+ "linkType": "Entry",
624
+ "id": "happycat"
625
+ }
626
+ }
627
+ },
628
+ "birthday": {
629
+ "en-US": "2011-04-04T22:00:00+00:00"
630
+ },
631
+ "lives": {
632
+ "en-US": 1337
633
+ },
634
+ "image": {
635
+ "en-US": {
636
+ "sys": {
637
+ "type": "Link",
638
+ "linkType": "Asset",
639
+ "id": "nyancat"
640
+ }
641
+ }
642
+ }
643
+ },
644
+ "sys": {
645
+ "space": {
646
+ "sys": {
647
+ "type": "Link",
648
+ "linkType": "Space",
649
+ "id": "cfexampleapi"
650
+ }
651
+ },
652
+ "type": "Entry",
653
+ "contentType": {
654
+ "sys": {
655
+ "type": "Link",
656
+ "linkType": "ContentType",
657
+ "id": "cat"
658
+ }
659
+ },
660
+ "id": "nyancat",
661
+ "revision": 5,
662
+ "createdAt": "2013-06-27T22:46:19.513Z",
663
+ "updatedAt": "2013-09-04T09:19:39.027Z"
664
+ }
665
+ },
666
+ {
667
+ "sys": {
668
+ "space": {
669
+ "sys": {
670
+ "type": "Link",
671
+ "linkType": "Space",
672
+ "id": "cfexampleapi"
673
+ }
674
+ },
675
+ "type": "Entry",
676
+ "contentType": {
677
+ "sys": {
678
+ "type": "Link",
679
+ "linkType": "ContentType",
680
+ "id": "1t9IbcfdCk6m04uISSsaIK"
681
+ }
682
+ },
683
+ "id": "7qVBlCjpWE86Oseo40gAEY",
684
+ "revision": 2,
685
+ "createdAt": "2014-02-21T13:43:38.258Z",
686
+ "updatedAt": "2014-04-15T08:22:22.010Z"
687
+ },
688
+ "fields": {
689
+ "name": {
690
+ "en-US": "San Francisco"
691
+ },
692
+ "center": {
693
+ "en-US": {
694
+ "lat": 37.7749295,
695
+ "lon": -122.41941550000001
696
+ }
697
+ }
698
+ }
699
+ },
700
+ {
701
+ "fields": {
702
+ "name": {
703
+ "en-US": "Finn"
704
+ },
705
+ "description": {
706
+ "en-US": "Fearless adventurer! Defender of pancakes."
707
+ },
708
+ "likes": {
709
+ "en-US": [
710
+ "adventure"
711
+ ]
712
+ },
713
+ "image": {}
714
+ },
715
+ "sys": {
716
+ "space": {
717
+ "sys": {
718
+ "type": "Link",
719
+ "linkType": "Space",
720
+ "id": "cfexampleapi"
721
+ }
722
+ },
723
+ "type": "Entry",
724
+ "contentType": {
725
+ "sys": {
726
+ "type": "Link",
727
+ "linkType": "ContentType",
728
+ "id": "human"
729
+ }
730
+ },
731
+ "id": "finn",
732
+ "revision": 6,
733
+ "createdAt": "2013-06-27T22:46:21.450Z",
734
+ "updatedAt": "2013-09-09T16:15:01.297Z"
735
+ }
736
+ },
737
+ {
738
+ "fields": {
739
+ "name": {
740
+ "en-US": "Jake"
741
+ },
742
+ "description": {
743
+ "en-US": "Bacon pancakes, makin' bacon pancakes!"
744
+ },
745
+ "image": {
746
+ "en-US": {
747
+ "sys": {
748
+ "type": "Link",
749
+ "linkType": "Asset",
750
+ "id": "jake"
751
+ }
752
+ }
753
+ }
754
+ },
755
+ "sys": {
756
+ "space": {
757
+ "sys": {
758
+ "type": "Link",
759
+ "linkType": "Space",
760
+ "id": "cfexampleapi"
761
+ }
762
+ },
763
+ "type": "Entry",
764
+ "contentType": {
765
+ "sys": {
766
+ "type": "Link",
767
+ "linkType": "ContentType",
768
+ "id": "dog"
769
+ }
770
+ },
771
+ "id": "jake",
772
+ "revision": 5,
773
+ "createdAt": "2013-06-27T22:46:22.096Z",
774
+ "updatedAt": "2013-12-18T13:10:26.212Z"
775
+ }
776
+ },
777
+ {
778
+ "sys": {
779
+ "space": {
780
+ "sys": {
781
+ "type": "Link",
782
+ "linkType": "Space",
783
+ "id": "cfexampleapi"
784
+ }
785
+ },
786
+ "type": "Entry",
787
+ "contentType": {
788
+ "sys": {
789
+ "type": "Link",
790
+ "linkType": "ContentType",
791
+ "id": "1t9IbcfdCk6m04uISSsaIK"
792
+ }
793
+ },
794
+ "id": "ge1xHyH3QOWucKWCCAgIG",
795
+ "revision": 1,
796
+ "createdAt": "2014-02-21T13:43:23.210Z",
797
+ "updatedAt": "2014-02-21T13:43:23.210Z"
798
+ },
799
+ "fields": {
800
+ "name": {
801
+ "en-US": "Paris"
802
+ },
803
+ "center": {
804
+ "en-US": {
805
+ "lat": 48.856614,
806
+ "lon": 2.3522219000000177
807
+ }
808
+ }
809
+ }
810
+ },
811
+ {
812
+ "sys": {
813
+ "space": {
814
+ "sys": {
815
+ "type": "Link",
816
+ "linkType": "Space",
817
+ "id": "cfexampleapi"
818
+ }
819
+ },
820
+ "type": "Entry",
821
+ "contentType": {
822
+ "sys": {
823
+ "type": "Link",
824
+ "linkType": "ContentType",
825
+ "id": "1t9IbcfdCk6m04uISSsaIK"
826
+ }
827
+ },
828
+ "id": "5ETMRzkl9KM4omyMwKAOki",
829
+ "revision": 3,
830
+ "createdAt": "2014-02-21T13:42:57.752Z",
831
+ "updatedAt": "2014-08-23T14:42:35.207Z"
832
+ },
833
+ "fields": {
834
+ "name": {
835
+ "en-US": "London"
836
+ },
837
+ "center": {
838
+ "en-US": {
839
+ "lat": 51.508515,
840
+ "lon": -0.12548719999995228
841
+ }
842
+ }
843
+ }
844
+ }
845
+ ],
846
+ "includes": {
847
+ "Asset": [
848
+ {
849
+ "fields": {
850
+ "title": {
851
+ "en-US": "Jake"
852
+ },
853
+ "file": {
854
+ "en-US": {
855
+ "fileName": "jake.png",
856
+ "contentType": "image/png",
857
+ "details": {
858
+ "image": {
859
+ "width": 100,
860
+ "height": 161
861
+ },
862
+ "size": 20480
863
+ },
864
+ "url": "//images.contentful.com/cfexampleapi/4hlteQAXS8iS0YCMU6QMWg/2a4d826144f014109364ccf5c891d2dd/jake.png"
865
+ }
866
+ }
867
+ },
868
+ "sys": {
869
+ "space": {
870
+ "sys": {
871
+ "type": "Link",
872
+ "linkType": "Space",
873
+ "id": "cfexampleapi"
874
+ }
875
+ },
876
+ "type": "Asset",
877
+ "id": "jake",
878
+ "revision": 2,
879
+ "createdAt": "2013-09-02T14:56:34.260Z",
880
+ "updatedAt": "2013-09-02T15:22:39.466Z"
881
+ }
882
+ },
883
+ {
884
+ "fields": {
885
+ "title": {
886
+ "en-US": "Nyan Cat"
887
+ },
888
+ "file": {
889
+ "en-US": {
890
+ "fileName": "Nyan_cat_250px_frame.png",
891
+ "contentType": "image/png",
892
+ "details": {
893
+ "image": {
894
+ "width": 250,
895
+ "height": 250
896
+ },
897
+ "size": 12273
898
+ },
899
+ "url": "//images.contentful.com/cfexampleapi/4gp6taAwW4CmSgumq2ekUm/9da0cd1936871b8d72343e895a00d611/Nyan_cat_250px_frame.png"
900
+ }
901
+ }
902
+ },
903
+ "sys": {
904
+ "space": {
905
+ "sys": {
906
+ "type": "Link",
907
+ "linkType": "Space",
908
+ "id": "cfexampleapi"
909
+ }
910
+ },
911
+ "type": "Asset",
912
+ "id": "nyancat",
913
+ "revision": 1,
914
+ "createdAt": "2013-09-02T14:56:34.240Z",
915
+ "updatedAt": "2013-09-02T14:56:34.240Z"
916
+ }
917
+ },
918
+ {
919
+ "fields": {
920
+ "file": {
921
+ "en-US": {
922
+ "fileName": "happycatw.jpg",
923
+ "contentType": "image/jpeg",
924
+ "details": {
925
+ "image": {
926
+ "width": 273,
927
+ "height": 397
928
+ },
929
+ "size": 59939
930
+ },
931
+ "url": "//images.contentful.com/cfexampleapi/3MZPnjZTIskAIIkuuosCss/382a48dfa2cb16c47aa2c72f7b23bf09/happycatw.jpg"
932
+ }
933
+ },
934
+ "title": {
935
+ "en-US": "Happy Cat"
936
+ }
937
+ },
938
+ "sys": {
939
+ "space": {
940
+ "sys": {
941
+ "type": "Link",
942
+ "linkType": "Space",
943
+ "id": "cfexampleapi"
944
+ }
945
+ },
946
+ "type": "Asset",
947
+ "id": "happycat",
948
+ "revision": 2,
949
+ "createdAt": "2013-09-02T14:56:34.267Z",
950
+ "updatedAt": "2013-09-02T15:11:24.361Z"
951
+ }
952
+ },
953
+ {
954
+ "sys": {
955
+ "space": {
956
+ "sys": {
957
+ "type": "Link",
958
+ "linkType": "Space",
959
+ "id": "cfexampleapi"
960
+ }
961
+ },
962
+ "type": "Asset",
963
+ "id": "1x0xpXu4pSGS4OukSyWGUK",
964
+ "revision": 6,
965
+ "createdAt": "2013-11-06T09:45:10.000Z",
966
+ "updatedAt": "2013-12-18T13:27:14.917Z"
967
+ },
968
+ "fields": {
969
+ "title": {
970
+ "en-US": "Doge"
971
+ },
972
+ "file": {
973
+ "en-US": {
974
+ "fileName": "doge.jpg",
975
+ "contentType": "image/jpeg",
976
+ "details": {
977
+ "image": {
978
+ "width": 5800,
979
+ "height": 4350
980
+ },
981
+ "size": 522943
982
+ },
983
+ "url": "//images.contentful.com/cfexampleapi/1x0xpXu4pSGS4OukSyWGUK/cc1239c6385428ef26f4180190532818/doge.jpg"
984
+ }
985
+ },
986
+ "description": {
987
+ "en-US": "nice picture"
988
+ }
989
+ }
990
+ }
991
+ ]
992
+ }
993
+ }
994
+ http_version:
995
+ recorded_at: Wed, 02 Dec 2015 18:20:29 GMT
996
+ recorded_with: VCR 2.9.3