kontent-delivery-sdk-ruby 2.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.md +21 -0
  3. data/README.md +511 -0
  4. data/bin/console +14 -0
  5. data/bin/setup +8 -0
  6. data/lib/delivery/builders/image_transformation_builder.rb +271 -0
  7. data/lib/delivery/builders/url_builder.rb +117 -0
  8. data/lib/delivery/client/delivery_client.rb +155 -0
  9. data/lib/delivery/client/delivery_query.rb +249 -0
  10. data/lib/delivery/client/request_manager.rb +108 -0
  11. data/lib/delivery/models/content_item.rb +153 -0
  12. data/lib/delivery/models/content_type.rb +41 -0
  13. data/lib/delivery/models/pagination.rb +21 -0
  14. data/lib/delivery/models/taxonomy_group.rb +39 -0
  15. data/lib/delivery/query_parameters/filters.rb +158 -0
  16. data/lib/delivery/query_parameters/parameter_base.rb +44 -0
  17. data/lib/delivery/query_parameters/query_string.rb +78 -0
  18. data/lib/delivery/resolvers/content_link_resolver.rb +102 -0
  19. data/lib/delivery/resolvers/inline_content_item_resolver.rb +75 -0
  20. data/lib/delivery/resolvers/linked_item_resolver.rb +37 -0
  21. data/lib/delivery/responses/delivery_element_response.rb +33 -0
  22. data/lib/delivery/responses/delivery_item_listing_response.rb +53 -0
  23. data/lib/delivery/responses/delivery_item_response.rb +39 -0
  24. data/lib/delivery/responses/delivery_taxonomy_listing_response.rb +46 -0
  25. data/lib/delivery/responses/delivery_taxonomy_response.rb +32 -0
  26. data/lib/delivery/responses/delivery_type_listing_response.rb +45 -0
  27. data/lib/delivery/responses/delivery_type_response.rb +31 -0
  28. data/lib/delivery/responses/response_base.rb +36 -0
  29. data/lib/delivery/tests/401.json +6 -0
  30. data/lib/delivery/tests/fake_responder.rb +67 -0
  31. data/lib/delivery/tests/filtering/items_gt.json +566 -0
  32. data/lib/delivery/tests/filtering/multiple.json +283 -0
  33. data/lib/delivery/tests/filtering/pagination_about_us.json +647 -0
  34. data/lib/delivery/tests/generic/items.json +4985 -0
  35. data/lib/delivery/tests/generic/items/about_us.json +228 -0
  36. data/lib/delivery/tests/generic/items/aeropress_filters.json +139 -0
  37. data/lib/delivery/tests/generic/items/coffee_processing_techniques.json +169 -0
  38. data/lib/delivery/tests/generic/items/where_does_coffee_come_from_.json +621 -0
  39. data/lib/delivery/tests/generic/taxonomies.json +127 -0
  40. data/lib/delivery/tests/generic/types.json +781 -0
  41. data/lib/delivery/tests/generic/types/brewer/elements/product_status.json +6 -0
  42. data/lib/delivery/version.rb +7 -0
  43. data/lib/kontent-delivery-sdk-ruby.rb +19 -0
  44. metadata +200 -0
@@ -0,0 +1,127 @@
1
+ {
2
+ "taxonomies": [
3
+ {
4
+ "system": {
5
+ "id": "4ce421e9-c403-eee8-fdc2-74f09392a749",
6
+ "name": "Manufacturer",
7
+ "codename": "manufacturer",
8
+ "last_modified": "2017-09-07T08:15:22.7210000Z"
9
+ },
10
+ "terms": [
11
+ {
12
+ "name": "Aerobie",
13
+ "codename": "aerobie",
14
+ "terms": []
15
+ },
16
+ {
17
+ "name": "Chemex",
18
+ "codename": "chemex",
19
+ "terms": []
20
+ },
21
+ {
22
+ "name": "Espro",
23
+ "codename": "espro",
24
+ "terms": []
25
+ },
26
+ {
27
+ "name": "Hario",
28
+ "codename": "hario",
29
+ "terms": []
30
+ }
31
+ ]
32
+ },
33
+ {
34
+ "system": {
35
+ "id": "f30c7f72-e9ab-8832-2a57-62944a038809",
36
+ "name": "Personas",
37
+ "codename": "personas",
38
+ "last_modified": "2016-10-20T13:24:00.3200000Z"
39
+ },
40
+ "terms": [
41
+ {
42
+ "name": "Coffee expert",
43
+ "codename": "coffee_expert",
44
+ "terms": [
45
+ {
46
+ "name": "Barista",
47
+ "codename": "barista",
48
+ "terms": []
49
+ },
50
+ {
51
+ "name": "Cafe owner",
52
+ "codename": "cafe_owner",
53
+ "terms": []
54
+ }
55
+ ]
56
+ },
57
+ {
58
+ "name": "Coffee enthusiast",
59
+ "codename": "coffee_enthusiast",
60
+ "terms": [
61
+ {
62
+ "name": "Coffee lover",
63
+ "codename": "coffee_lover",
64
+ "terms": []
65
+ },
66
+ {
67
+ "name": "Coffee blogger",
68
+ "codename": "coffee_blogger",
69
+ "terms": []
70
+ }
71
+ ]
72
+ }
73
+ ]
74
+ },
75
+ {
76
+ "system": {
77
+ "id": "d351400e-0290-87b2-1413-6c411d8ae5a4",
78
+ "name": "Processing",
79
+ "codename": "processing",
80
+ "last_modified": "2017-09-07T08:15:33.7560000Z"
81
+ },
82
+ "terms": [
83
+ {
84
+ "name": "Wet (Washed)",
85
+ "codename": "wet__washed_",
86
+ "terms": []
87
+ },
88
+ {
89
+ "name": "Dry (Natural)",
90
+ "codename": "dry__natural_",
91
+ "terms": []
92
+ },
93
+ {
94
+ "name": "Semi-dry",
95
+ "codename": "semi_dry",
96
+ "terms": []
97
+ }
98
+ ]
99
+ },
100
+ {
101
+ "system": {
102
+ "id": "79b1c5b6-30bc-d076-a236-d9ec9f1ff01b",
103
+ "name": "Product status",
104
+ "codename": "product_status",
105
+ "last_modified": "2016-09-15T10:53:25.2230000Z"
106
+ },
107
+ "terms": [
108
+ {
109
+ "name": "On sale",
110
+ "codename": "on_sale",
111
+ "terms": []
112
+ },
113
+ {
114
+ "name": "Bestseller",
115
+ "codename": "bestseller",
116
+ "terms": []
117
+ }
118
+ ]
119
+ }
120
+ ],
121
+ "pagination": {
122
+ "skip": 0,
123
+ "limit": 0,
124
+ "count": 4,
125
+ "next_page": ""
126
+ }
127
+ }
@@ -0,0 +1,781 @@
1
+ {
2
+ "types": [
3
+ {
4
+ "system": {
5
+ "id": "b2c14f2c-6467-460b-a70b-bca17972a33a",
6
+ "name": "About us",
7
+ "codename": "about_us",
8
+ "last_modified": "2018-02-27T18:50:42.3010000Z"
9
+ },
10
+ "elements": {
11
+ "metadata__og_description": {
12
+ "type": "text",
13
+ "name": "og:description"
14
+ },
15
+ "metadata__meta_title": {
16
+ "type": "text",
17
+ "name": "Meta title"
18
+ },
19
+ "metadata__og_title": {
20
+ "type": "text",
21
+ "name": "og:title"
22
+ },
23
+ "metadata__meta_description": {
24
+ "type": "text",
25
+ "name": "Meta description"
26
+ },
27
+ "metadata__twitter_site": {
28
+ "type": "text",
29
+ "name": "twitter:site"
30
+ },
31
+ "url_pattern": {
32
+ "type": "url_slug",
33
+ "name": "URL pattern"
34
+ },
35
+ "metadata__twitter_image": {
36
+ "type": "asset",
37
+ "name": "twitter:image"
38
+ },
39
+ "metadata__twitter_creator": {
40
+ "type": "text",
41
+ "name": "twitter:creator"
42
+ },
43
+ "metadata__twitter_title": {
44
+ "type": "text",
45
+ "name": "twitter:title"
46
+ },
47
+ "metadata__twitter_description": {
48
+ "type": "text",
49
+ "name": "twitter:description"
50
+ },
51
+ "metadata__og_image": {
52
+ "type": "asset",
53
+ "name": "og:image"
54
+ },
55
+ "facts": {
56
+ "type": "modular_content",
57
+ "name": "Facts"
58
+ }
59
+ }
60
+ },
61
+ {
62
+ "system": {
63
+ "id": "d9748663-f567-4c51-a922-c24a1d6b935a",
64
+ "name": "Accessory",
65
+ "codename": "accessory",
66
+ "last_modified": "2018-06-20T10:29:45.3330000Z"
67
+ },
68
+ "elements": {
69
+ "metadata__og_description": {
70
+ "type": "text",
71
+ "name": "og:description"
72
+ },
73
+ "metadata__meta_title": {
74
+ "type": "text",
75
+ "name": "Meta title"
76
+ },
77
+ "metadata__og_title": {
78
+ "type": "text",
79
+ "name": "og:title"
80
+ },
81
+ "long_description": {
82
+ "type": "rich_text",
83
+ "name": "Long description"
84
+ },
85
+ "metadata__meta_description": {
86
+ "type": "text",
87
+ "name": "Meta description"
88
+ },
89
+ "metadata__twitter_site": {
90
+ "type": "text",
91
+ "name": "twitter:site"
92
+ },
93
+ "price": {
94
+ "type": "number",
95
+ "name": "Price"
96
+ },
97
+ "metadata__twitter_image": {
98
+ "type": "asset",
99
+ "name": "twitter:image"
100
+ },
101
+ "metadata__twitter_creator": {
102
+ "type": "text",
103
+ "name": "twitter:creator"
104
+ },
105
+ "url_pattern": {
106
+ "type": "url_slug",
107
+ "name": "URL pattern"
108
+ },
109
+ "short_description": {
110
+ "type": "rich_text",
111
+ "name": "Short description"
112
+ },
113
+ "manufacturer": {
114
+ "type": "text",
115
+ "name": "Manufacturer"
116
+ },
117
+ "metadata__twitter_title": {
118
+ "type": "text",
119
+ "name": "twitter:title"
120
+ },
121
+ "metadata__twitter_description": {
122
+ "type": "text",
123
+ "name": "twitter:description"
124
+ },
125
+ "metadata__og_image": {
126
+ "type": "asset",
127
+ "name": "og:image"
128
+ },
129
+ "product_status": {
130
+ "type": "taxonomy",
131
+ "name": "Product status",
132
+ "taxonomy_group": "product_status"
133
+ },
134
+ "image": {
135
+ "type": "asset",
136
+ "name": "Image"
137
+ },
138
+ "product_name": {
139
+ "type": "text",
140
+ "name": "Product name"
141
+ }
142
+ }
143
+ },
144
+ {
145
+ "system": {
146
+ "id": "b7aa4a53-d9b1-48cf-b7a6-ed0b182c4b89",
147
+ "name": "Article",
148
+ "codename": "article",
149
+ "last_modified": "2018-07-04T08:34:03.3440000Z"
150
+ },
151
+ "elements": {
152
+ "metadata__og_description": {
153
+ "type": "text",
154
+ "name": "og:description"
155
+ },
156
+ "metadata__meta_title": {
157
+ "type": "text",
158
+ "name": "Meta title"
159
+ },
160
+ "personas": {
161
+ "type": "taxonomy",
162
+ "name": "Personas",
163
+ "taxonomy_group": "personas"
164
+ },
165
+ "body_copy": {
166
+ "type": "rich_text",
167
+ "name": "Body Copy"
168
+ },
169
+ "metadata__og_title": {
170
+ "type": "text",
171
+ "name": "og:title"
172
+ },
173
+ "metadata__meta_description": {
174
+ "type": "text",
175
+ "name": "Meta description"
176
+ },
177
+ "metadata__twitter_site": {
178
+ "type": "text",
179
+ "name": "twitter:site"
180
+ },
181
+ "post_date": {
182
+ "type": "date_time",
183
+ "name": "Post date"
184
+ },
185
+ "meta_keywords": {
186
+ "type": "text",
187
+ "name": "Meta keywords"
188
+ },
189
+ "teaser_image": {
190
+ "type": "asset",
191
+ "name": "Teaser image"
192
+ },
193
+ "metadata__twitter_image": {
194
+ "type": "asset",
195
+ "name": "twitter:image"
196
+ },
197
+ "metadata__twitter_creator": {
198
+ "type": "text",
199
+ "name": "twitter:creator"
200
+ },
201
+ "title": {
202
+ "type": "text",
203
+ "name": "Title"
204
+ },
205
+ "summary": {
206
+ "type": "text",
207
+ "name": "Summary"
208
+ },
209
+ "metadata__twitter_title": {
210
+ "type": "text",
211
+ "name": "twitter:title"
212
+ },
213
+ "metadata__twitter_description": {
214
+ "type": "text",
215
+ "name": "twitter:description"
216
+ },
217
+ "meta_description": {
218
+ "type": "text",
219
+ "name": "Meta description"
220
+ },
221
+ "metadata__og_image": {
222
+ "type": "asset",
223
+ "name": "og:image"
224
+ },
225
+ "related_articles": {
226
+ "type": "modular_content",
227
+ "name": "Related articles"
228
+ },
229
+ "url_pattern": {
230
+ "type": "url_slug",
231
+ "name": "URL pattern"
232
+ }
233
+ }
234
+ },
235
+ {
236
+ "system": {
237
+ "id": "7bc932b3-ce2a-4aa7-954e-04cbcbd214fc",
238
+ "name": "Brewer",
239
+ "codename": "brewer",
240
+ "last_modified": "2018-06-20T10:29:11.3560000Z"
241
+ },
242
+ "elements": {
243
+ "product_name": {
244
+ "type": "text",
245
+ "name": "Product name"
246
+ },
247
+ "metadata__og_description": {
248
+ "type": "text",
249
+ "name": "og:description"
250
+ },
251
+ "metadata__meta_title": {
252
+ "type": "text",
253
+ "name": "Meta title"
254
+ },
255
+ "long_description": {
256
+ "type": "rich_text",
257
+ "name": "Long description"
258
+ },
259
+ "metadata__og_title": {
260
+ "type": "text",
261
+ "name": "og:title"
262
+ },
263
+ "metadata__meta_description": {
264
+ "type": "text",
265
+ "name": "Meta description"
266
+ },
267
+ "metadata__twitter_site": {
268
+ "type": "text",
269
+ "name": "twitter:site"
270
+ },
271
+ "price": {
272
+ "type": "number",
273
+ "name": "Price"
274
+ },
275
+ "manufacturer": {
276
+ "type": "taxonomy",
277
+ "name": "Manufacturer",
278
+ "taxonomy_group": "manufacturer"
279
+ },
280
+ "metadata__twitter_image": {
281
+ "type": "asset",
282
+ "name": "twitter:image"
283
+ },
284
+ "metadata__twitter_creator": {
285
+ "type": "text",
286
+ "name": "twitter:creator"
287
+ },
288
+ "url_pattern": {
289
+ "type": "url_slug",
290
+ "name": "URL pattern"
291
+ },
292
+ "short_description": {
293
+ "type": "rich_text",
294
+ "name": "Short description"
295
+ },
296
+ "product_status": {
297
+ "type": "taxonomy",
298
+ "name": "Product status",
299
+ "taxonomy_group": "product_status"
300
+ },
301
+ "metadata__twitter_title": {
302
+ "type": "text",
303
+ "name": "twitter:title"
304
+ },
305
+ "metadata__twitter_description": {
306
+ "type": "text",
307
+ "name": "twitter:description"
308
+ },
309
+ "metadata__og_image": {
310
+ "type": "asset",
311
+ "name": "og:image"
312
+ },
313
+ "image": {
314
+ "type": "asset",
315
+ "name": "Image"
316
+ }
317
+ }
318
+ },
319
+ {
320
+ "system": {
321
+ "id": "fe41ae5a-5fe2-420a-8560-f7d6d3533dc2",
322
+ "name": "Cafe",
323
+ "codename": "cafe",
324
+ "last_modified": "2018-06-20T10:28:17.9080000Z"
325
+ },
326
+ "elements": {
327
+ "phone": {
328
+ "type": "text",
329
+ "name": "Phone"
330
+ },
331
+ "city": {
332
+ "type": "text",
333
+ "name": "City"
334
+ },
335
+ "photo": {
336
+ "type": "asset",
337
+ "name": "Photo"
338
+ },
339
+ "email": {
340
+ "type": "text",
341
+ "name": "Email"
342
+ },
343
+ "country": {
344
+ "type": "text",
345
+ "name": "Country"
346
+ },
347
+ "street": {
348
+ "type": "text",
349
+ "name": "Street"
350
+ },
351
+ "state": {
352
+ "type": "text",
353
+ "name": "State"
354
+ },
355
+ "zip_code": {
356
+ "type": "text",
357
+ "name": "ZIP Code"
358
+ }
359
+ }
360
+ },
361
+ {
362
+ "system": {
363
+ "id": "929985ac-4aa5-436b-85a2-94c2d4fbbebd",
364
+ "name": "Coffee",
365
+ "codename": "coffee",
366
+ "last_modified": "2018-06-20T10:27:49.4550000Z"
367
+ },
368
+ "elements": {
369
+ "metadata__og_description": {
370
+ "type": "text",
371
+ "name": "og:description"
372
+ },
373
+ "metadata__meta_title": {
374
+ "type": "text",
375
+ "name": "Meta title"
376
+ },
377
+ "metadata__og_title": {
378
+ "type": "text",
379
+ "name": "og:title"
380
+ },
381
+ "product_status": {
382
+ "type": "taxonomy",
383
+ "name": "Product status",
384
+ "taxonomy_group": "product_status"
385
+ },
386
+ "altitude": {
387
+ "type": "text",
388
+ "name": "Altitude"
389
+ },
390
+ "metadata__meta_description": {
391
+ "type": "text",
392
+ "name": "Meta description"
393
+ },
394
+ "variety": {
395
+ "type": "text",
396
+ "name": "Variety"
397
+ },
398
+ "image": {
399
+ "type": "asset",
400
+ "name": "Image"
401
+ },
402
+ "metadata__twitter_site": {
403
+ "type": "text",
404
+ "name": "twitter:site"
405
+ },
406
+ "url_pattern": {
407
+ "type": "url_slug",
408
+ "name": "URL pattern"
409
+ },
410
+ "price": {
411
+ "type": "number",
412
+ "name": "Price"
413
+ },
414
+ "metadata__twitter_image": {
415
+ "type": "asset",
416
+ "name": "twitter:image"
417
+ },
418
+ "metadata__twitter_creator": {
419
+ "type": "text",
420
+ "name": "twitter:creator"
421
+ },
422
+ "country": {
423
+ "type": "text",
424
+ "name": "Country"
425
+ },
426
+ "metadata__twitter_title": {
427
+ "type": "text",
428
+ "name": "twitter:title"
429
+ },
430
+ "short_description": {
431
+ "type": "rich_text",
432
+ "name": "Short description"
433
+ },
434
+ "processing": {
435
+ "type": "taxonomy",
436
+ "name": "Processing",
437
+ "taxonomy_group": "processing"
438
+ },
439
+ "metadata__twitter_description": {
440
+ "type": "text",
441
+ "name": "twitter:description"
442
+ },
443
+ "metadata__og_image": {
444
+ "type": "asset",
445
+ "name": "og:image"
446
+ },
447
+ "long_description": {
448
+ "type": "rich_text",
449
+ "name": "Long description"
450
+ },
451
+ "farm": {
452
+ "type": "text",
453
+ "name": "Farm"
454
+ },
455
+ "product_name": {
456
+ "type": "text",
457
+ "name": "Product name"
458
+ }
459
+ }
460
+ },
461
+ {
462
+ "system": {
463
+ "id": "b99ec220-0f2b-4658-a080-ff0afe92f6d1",
464
+ "name": "Fact about us",
465
+ "codename": "fact_about_us",
466
+ "last_modified": "2018-06-20T10:27:29.8980000Z"
467
+ },
468
+ "elements": {
469
+ "description": {
470
+ "type": "rich_text",
471
+ "name": "Description"
472
+ },
473
+ "title": {
474
+ "type": "text",
475
+ "name": "Title"
476
+ },
477
+ "image": {
478
+ "type": "asset",
479
+ "name": "Image"
480
+ }
481
+ }
482
+ },
483
+ {
484
+ "system": {
485
+ "id": "da4f1cb1-8a55-43e5-9fcc-67ad331c8888",
486
+ "name": "Grinder",
487
+ "codename": "grinder",
488
+ "last_modified": "2018-06-20T10:27:00.1700000Z"
489
+ },
490
+ "elements": {
491
+ "metadata__og_description": {
492
+ "type": "text",
493
+ "name": "og:description"
494
+ },
495
+ "metadata__meta_title": {
496
+ "type": "text",
497
+ "name": "Meta title"
498
+ },
499
+ "metadata__og_title": {
500
+ "type": "text",
501
+ "name": "og:title"
502
+ },
503
+ "price": {
504
+ "type": "number",
505
+ "name": "Price"
506
+ },
507
+ "long_description": {
508
+ "type": "rich_text",
509
+ "name": "Long description"
510
+ },
511
+ "short_description": {
512
+ "type": "rich_text",
513
+ "name": "Short description"
514
+ },
515
+ "manufacturer": {
516
+ "type": "text",
517
+ "name": "Manufacturer"
518
+ },
519
+ "metadata__meta_description": {
520
+ "type": "text",
521
+ "name": "Meta description"
522
+ },
523
+ "metadata__twitter_site": {
524
+ "type": "text",
525
+ "name": "twitter:site"
526
+ },
527
+ "product_status": {
528
+ "type": "taxonomy",
529
+ "name": "Product status",
530
+ "taxonomy_group": "product_status"
531
+ },
532
+ "metadata__twitter_image": {
533
+ "type": "asset",
534
+ "name": "twitter:image"
535
+ },
536
+ "metadata__twitter_creator": {
537
+ "type": "text",
538
+ "name": "twitter:creator"
539
+ },
540
+ "image": {
541
+ "type": "asset",
542
+ "name": "Image"
543
+ },
544
+ "metadata__twitter_title": {
545
+ "type": "text",
546
+ "name": "twitter:title"
547
+ },
548
+ "product_name": {
549
+ "type": "text",
550
+ "name": "Product name"
551
+ },
552
+ "metadata__twitter_description": {
553
+ "type": "text",
554
+ "name": "twitter:description"
555
+ },
556
+ "url_pattern": {
557
+ "type": "url_slug",
558
+ "name": "URL pattern"
559
+ },
560
+ "metadata__og_image": {
561
+ "type": "asset",
562
+ "name": "og:image"
563
+ }
564
+ }
565
+ },
566
+ {
567
+ "system": {
568
+ "id": "f4deeb7e-fe9b-49a2-a5f6-a51a9be6ac73",
569
+ "name": "Hero Unit",
570
+ "codename": "hero_unit",
571
+ "last_modified": "2018-06-20T10:26:37.8110000Z"
572
+ },
573
+ "elements": {
574
+ "title": {
575
+ "type": "text",
576
+ "name": "Title"
577
+ },
578
+ "image": {
579
+ "type": "asset",
580
+ "name": "Image"
581
+ },
582
+ "marketing_message": {
583
+ "type": "rich_text",
584
+ "name": "Marketing message"
585
+ }
586
+ }
587
+ },
588
+ {
589
+ "system": {
590
+ "id": "a29399c3-5281-47ab-9916-acd4a6f887b7",
591
+ "name": "Home",
592
+ "codename": "home",
593
+ "last_modified": "2018-02-27T18:57:30.2380000Z"
594
+ },
595
+ "elements": {
596
+ "metadata__og_description": {
597
+ "type": "text",
598
+ "name": "og:description"
599
+ },
600
+ "metadata__meta_title": {
601
+ "type": "text",
602
+ "name": "Meta title"
603
+ },
604
+ "metadata__og_title": {
605
+ "type": "text",
606
+ "name": "og:title"
607
+ },
608
+ "articles": {
609
+ "type": "modular_content",
610
+ "name": "Articles"
611
+ },
612
+ "hero_unit": {
613
+ "type": "modular_content",
614
+ "name": "Hero unit"
615
+ },
616
+ "metadata__meta_description": {
617
+ "type": "text",
618
+ "name": "Meta description"
619
+ },
620
+ "metadata__twitter_site": {
621
+ "type": "text",
622
+ "name": "twitter:site"
623
+ },
624
+ "our_story": {
625
+ "type": "modular_content",
626
+ "name": "Our story"
627
+ },
628
+ "cafes": {
629
+ "type": "modular_content",
630
+ "name": "Cafes"
631
+ },
632
+ "metadata__twitter_image": {
633
+ "type": "asset",
634
+ "name": "twitter:image"
635
+ },
636
+ "metadata__twitter_creator": {
637
+ "type": "text",
638
+ "name": "twitter:creator"
639
+ },
640
+ "metadata__twitter_title": {
641
+ "type": "text",
642
+ "name": "twitter:title"
643
+ },
644
+ "metadata__twitter_description": {
645
+ "type": "text",
646
+ "name": "twitter:description"
647
+ },
648
+ "metadata__og_image": {
649
+ "type": "asset",
650
+ "name": "og:image"
651
+ },
652
+ "url_pattern": {
653
+ "type": "url_slug",
654
+ "name": "URL pattern"
655
+ },
656
+ "contact": {
657
+ "type": "rich_text",
658
+ "name": "Contact"
659
+ }
660
+ }
661
+ },
662
+ {
663
+ "system": {
664
+ "id": "269202ad-1d9d-47fd-b3e8-bdb05b3e3cf0",
665
+ "name": "Hosted video",
666
+ "codename": "hosted_video",
667
+ "last_modified": "2017-06-27T12:55:39.0540000Z"
668
+ },
669
+ "elements": {
670
+ "video_id": {
671
+ "type": "text",
672
+ "name": "Video ID"
673
+ },
674
+ "video_host": {
675
+ "type": "multiple_choice",
676
+ "name": "Video host",
677
+ "options": [
678
+ {
679
+ "name": "YouTube",
680
+ "codename": "youtube"
681
+ },
682
+ {
683
+ "name": "Vimeo",
684
+ "codename": "vimeo"
685
+ }
686
+ ]
687
+ }
688
+ }
689
+ },
690
+ {
691
+ "system": {
692
+ "id": "e097306b-3893-4a42-9973-2525fad14d66",
693
+ "name": "Office",
694
+ "codename": "office",
695
+ "last_modified": "2017-08-02T07:27:56.5620000Z"
696
+ },
697
+ "elements": {
698
+ "state": {
699
+ "type": "text",
700
+ "name": "State"
701
+ },
702
+ "email": {
703
+ "type": "text",
704
+ "name": "Email"
705
+ },
706
+ "phone": {
707
+ "type": "text",
708
+ "name": "Phone"
709
+ },
710
+ "country": {
711
+ "type": "text",
712
+ "name": "Country"
713
+ },
714
+ "city": {
715
+ "type": "text",
716
+ "name": "City"
717
+ },
718
+ "name": {
719
+ "type": "text",
720
+ "name": "Name"
721
+ },
722
+ "zip_code": {
723
+ "type": "text",
724
+ "name": "Zip code"
725
+ },
726
+ "street": {
727
+ "type": "text",
728
+ "name": "Street"
729
+ }
730
+ }
731
+ },
732
+ {
733
+ "system": {
734
+ "id": "f808c142-4b62-43b0-8f4d-1cbf412580ab",
735
+ "name": "Tweet",
736
+ "codename": "tweet",
737
+ "last_modified": "2017-06-27T12:59:35.5640000Z"
738
+ },
739
+ "elements": {
740
+ "tweet_link": {
741
+ "type": "text",
742
+ "name": "Tweet link"
743
+ },
744
+ "theme": {
745
+ "type": "multiple_choice",
746
+ "name": "Theme",
747
+ "options": [
748
+ {
749
+ "name": "Dark",
750
+ "codename": "dark"
751
+ },
752
+ {
753
+ "name": "Light",
754
+ "codename": "light"
755
+ }
756
+ ]
757
+ },
758
+ "display_options": {
759
+ "type": "multiple_choice",
760
+ "name": "Display options",
761
+ "options": [
762
+ {
763
+ "name": "Hide thread",
764
+ "codename": "hide_thread"
765
+ },
766
+ {
767
+ "name": "Hide media",
768
+ "codename": "hide_media"
769
+ }
770
+ ]
771
+ }
772
+ }
773
+ }
774
+ ],
775
+ "pagination": {
776
+ "skip": 0,
777
+ "limit": 0,
778
+ "count": 13,
779
+ "next_page": ""
780
+ }
781
+ }