contentful 2.12.0 → 2.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (250) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +69 -1
  3. data/README.md +24 -13
  4. data/lib/contentful/array.rb +14 -6
  5. data/lib/contentful/array_like.rb +11 -2
  6. data/lib/contentful/asset.rb +10 -4
  7. data/lib/contentful/base_resource.rb +29 -6
  8. data/lib/contentful/client.rb +4 -3
  9. data/lib/contentful/coercions.rb +1 -4
  10. data/lib/contentful/entry.rb +9 -5
  11. data/lib/contentful/fields_resource.rb +7 -11
  12. data/lib/contentful/includes.rb +74 -0
  13. data/lib/contentful/request.rb +6 -1
  14. data/lib/contentful/resource_builder.rb +15 -12
  15. data/lib/contentful/support.rb +0 -35
  16. data/lib/contentful/version.rb +1 -1
  17. metadata +15 -370
  18. data/.gitignore +0 -7
  19. data/.rspec +0 -1
  20. data/.rubocop.yml +0 -28
  21. data/.rubocop_todo.yml +0 -35
  22. data/.travis.yml +0 -13
  23. data/.yardopts +0 -4
  24. data/Gemfile +0 -9
  25. data/Gemfile.lock +0 -152
  26. data/Guardfile +0 -24
  27. data/RELEASE.md +0 -8
  28. data/Rakefile +0 -33
  29. data/contentful.gemspec +0 -44
  30. data/coverage/.last_run.json +0 -5
  31. data/coverage/.resultset.json +0 -2419
  32. data/coverage/.resultset.json.lock +0 -0
  33. data/coverage/assets/0.10.2/application.css +0 -799
  34. data/coverage/assets/0.10.2/application.js +0 -1707
  35. data/coverage/assets/0.10.2/colorbox/border.png +0 -0
  36. data/coverage/assets/0.10.2/colorbox/controls.png +0 -0
  37. data/coverage/assets/0.10.2/colorbox/loading.gif +0 -0
  38. data/coverage/assets/0.10.2/colorbox/loading_background.png +0 -0
  39. data/coverage/assets/0.10.2/favicon_green.png +0 -0
  40. data/coverage/assets/0.10.2/favicon_red.png +0 -0
  41. data/coverage/assets/0.10.2/favicon_yellow.png +0 -0
  42. data/coverage/assets/0.10.2/loading.gif +0 -0
  43. data/coverage/assets/0.10.2/magnify.png +0 -0
  44. data/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  45. data/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  46. data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  47. data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  48. data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  49. data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  50. data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  51. data/coverage/assets/0.10.2/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  52. data/coverage/assets/0.10.2/smoothness/images/ui-icons_222222_256x240.png +0 -0
  53. data/coverage/assets/0.10.2/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  54. data/coverage/assets/0.10.2/smoothness/images/ui-icons_454545_256x240.png +0 -0
  55. data/coverage/assets/0.10.2/smoothness/images/ui-icons_888888_256x240.png +0 -0
  56. data/coverage/assets/0.10.2/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  57. data/coverage/index.html +0 -15071
  58. data/doc/Contentful/AccessDenied.html +0 -159
  59. data/doc/Contentful/Array.html +0 -765
  60. data/doc/Contentful/ArrayCoercion.html +0 -242
  61. data/doc/Contentful/ArrayLike.html +0 -625
  62. data/doc/Contentful/Asset.html +0 -487
  63. data/doc/Contentful/BadGateway.html +0 -159
  64. data/doc/Contentful/BadRequest.html +0 -159
  65. data/doc/Contentful/BaseCoercion.html +0 -445
  66. data/doc/Contentful/BaseResource.html +0 -599
  67. data/doc/Contentful/BooleanCoercion.html +0 -242
  68. data/doc/Contentful/Client.html +0 -1740
  69. data/doc/Contentful/ContentType.html +0 -618
  70. data/doc/Contentful/ContentTypeCache.html +0 -428
  71. data/doc/Contentful/DateCoercion.html +0 -244
  72. data/doc/Contentful/DeletedAsset.html +0 -157
  73. data/doc/Contentful/DeletedEntry.html +0 -157
  74. data/doc/Contentful/EmptyFieldError.html +0 -217
  75. data/doc/Contentful/Entry.html +0 -334
  76. data/doc/Contentful/Error.html +0 -410
  77. data/doc/Contentful/Field.html +0 -936
  78. data/doc/Contentful/FieldsResource.html +0 -583
  79. data/doc/Contentful/File.html +0 -218
  80. data/doc/Contentful/FloatCoercion.html +0 -238
  81. data/doc/Contentful/IntegerCoercion.html +0 -238
  82. data/doc/Contentful/Link.html +0 -249
  83. data/doc/Contentful/LinkCoercion.html +0 -158
  84. data/doc/Contentful/Locale.html +0 -537
  85. data/doc/Contentful/Location.html +0 -383
  86. data/doc/Contentful/LocationCoercion.html +0 -238
  87. data/doc/Contentful/NotFound.html +0 -159
  88. data/doc/Contentful/ObjectCoercion.html +0 -238
  89. data/doc/Contentful/RateLimitExceeded.html +0 -346
  90. data/doc/Contentful/Request.html +0 -887
  91. data/doc/Contentful/ResourceBuilder.html +0 -978
  92. data/doc/Contentful/ResourceReferences.html +0 -254
  93. data/doc/Contentful/Response.html +0 -710
  94. data/doc/Contentful/RichTextCoercion.html +0 -238
  95. data/doc/Contentful/ServerError.html +0 -159
  96. data/doc/Contentful/ServiceUnavailable.html +0 -159
  97. data/doc/Contentful/Space.html +0 -393
  98. data/doc/Contentful/StringCoercion.html +0 -242
  99. data/doc/Contentful/StructuredTextCoercion.html +0 -238
  100. data/doc/Contentful/Support.html +0 -788
  101. data/doc/Contentful/SymbolCoercion.html +0 -169
  102. data/doc/Contentful/Sync.html +0 -653
  103. data/doc/Contentful/SyncPage.html +0 -807
  104. data/doc/Contentful/TextCoercion.html +0 -169
  105. data/doc/Contentful/Unauthorized.html +0 -159
  106. data/doc/Contentful/UnparsableJson.html +0 -159
  107. data/doc/Contentful/UnparsableResource.html +0 -135
  108. data/doc/Contentful.html +0 -157
  109. data/doc/_index.html +0 -563
  110. data/doc/class_list.html +0 -51
  111. data/doc/css/common.css +0 -1
  112. data/doc/css/full_list.css +0 -58
  113. data/doc/css/style.css +0 -496
  114. data/doc/file.CHANGELOG.html +0 -729
  115. data/doc/file.LICENSE.html +0 -70
  116. data/doc/file.README.html +0 -925
  117. data/doc/file_list.html +0 -66
  118. data/doc/frames.html +0 -17
  119. data/doc/index.html +0 -925
  120. data/doc/js/app.js +0 -292
  121. data/doc/js/full_list.js +0 -216
  122. data/doc/js/jquery.js +0 -4
  123. data/doc/method_list.html +0 -1171
  124. data/doc/top-level-namespace.html +0 -110
  125. data/examples/custom_classes.rb +0 -39
  126. data/examples/example_queries.rb +0 -26
  127. data/examples/raise_errors.rb +0 -20
  128. data/examples/raw_mode.rb +0 -14
  129. data/spec/array_spec.rb +0 -122
  130. data/spec/asset_spec.rb +0 -192
  131. data/spec/auto_includes_spec.rb +0 -12
  132. data/spec/client_class_spec.rb +0 -86
  133. data/spec/client_configuration_spec.rb +0 -377
  134. data/spec/content_type_spec.rb +0 -49
  135. data/spec/deleted_asset_spec.rb +0 -38
  136. data/spec/deleted_entry_spec.rb +0 -38
  137. data/spec/entry_spec.rb +0 -688
  138. data/spec/error_class_spec.rb +0 -327
  139. data/spec/error_requests_spec.rb +0 -87
  140. data/spec/field_spec.rb +0 -95
  141. data/spec/file_spec.rb +0 -33
  142. data/spec/fixtures/json_responses/400_details_errors_object.json +0 -14
  143. data/spec/fixtures/json_responses/400_details_errors_string.json +0 -12
  144. data/spec/fixtures/json_responses/400_details_string.json +0 -8
  145. data/spec/fixtures/json_responses/403_reasons.json +0 -13
  146. data/spec/fixtures/json_responses/404_details_string.json +0 -8
  147. data/spec/fixtures/json_responses/404_id.json +0 -11
  148. data/spec/fixtures/json_responses/404_sys_type.json +0 -12
  149. data/spec/fixtures/json_responses/404_type.json +0 -10
  150. data/spec/fixtures/json_responses/content_type.json +0 -83
  151. data/spec/fixtures/json_responses/default_400.json +0 -7
  152. data/spec/fixtures/json_responses/default_401.json +0 -7
  153. data/spec/fixtures/json_responses/default_403.json +0 -7
  154. data/spec/fixtures/json_responses/default_404.json +0 -7
  155. data/spec/fixtures/json_responses/default_429.json +0 -7
  156. data/spec/fixtures/json_responses/default_500.json +0 -7
  157. data/spec/fixtures/json_responses/default_502.json +0 -7
  158. data/spec/fixtures/json_responses/default_503.json +0 -7
  159. data/spec/fixtures/json_responses/includes.json +0 -111
  160. data/spec/fixtures/json_responses/link_array.json +0 -43
  161. data/spec/fixtures/json_responses/not_found.json +0 -13
  162. data/spec/fixtures/json_responses/nyancat.json +0 -48
  163. data/spec/fixtures/json_responses/other_error.json +0 -9
  164. data/spec/fixtures/json_responses/other_error_no_details.json +0 -8
  165. data/spec/fixtures/json_responses/other_error_no_message.json +0 -8
  166. data/spec/fixtures/json_responses/other_error_no_request_id.json +0 -8
  167. data/spec/fixtures/json_responses/other_error_nothing.json +0 -6
  168. data/spec/fixtures/json_responses/self_link.json +0 -82
  169. data/spec/fixtures/json_responses/unparsable.json +0 -13
  170. data/spec/fixtures/vcr_cassettes/array/marshal_custom_classes.yml +0 -159
  171. data/spec/fixtures/vcr_cassettes/array/nested_resources.yml +0 -159
  172. data/spec/fixtures/vcr_cassettes/array.yml +0 -288
  173. data/spec/fixtures/vcr_cassettes/arrayField.yml +0 -87
  174. data/spec/fixtures/vcr_cassettes/array_page_1.yml +0 -106
  175. data/spec/fixtures/vcr_cassettes/array_page_2.yml +0 -73
  176. data/spec/fixtures/vcr_cassettes/asset/select_empty_array.yml +0 -104
  177. data/spec/fixtures/vcr_cassettes/asset/select_no_sys.yml +0 -119
  178. data/spec/fixtures/vcr_cassettes/asset/select_one_field.yml +0 -97
  179. data/spec/fixtures/vcr_cassettes/asset/select_only_sys.yml +0 -88
  180. data/spec/fixtures/vcr_cassettes/asset.yml +0 -96
  181. data/spec/fixtures/vcr_cassettes/assets/issues_129.yml +0 -90
  182. data/spec/fixtures/vcr_cassettes/assets/issues_jekyll_46.yml +0 -115
  183. data/spec/fixtures/vcr_cassettes/bad_request.yml +0 -76
  184. data/spec/fixtures/vcr_cassettes/content_type.yml +0 -147
  185. data/spec/fixtures/vcr_cassettes/entries/empty_fields.yml +0 -246
  186. data/spec/fixtures/vcr_cassettes/entries/issue_117.yml +0 -201
  187. data/spec/fixtures/vcr_cassettes/entries/issue_125.yml +0 -198
  188. data/spec/fixtures/vcr_cassettes/entries/rich_text.yml +0 -1707
  189. data/spec/fixtures/vcr_cassettes/entries/rich_text_hydration_issue.yml +0 -460
  190. data/spec/fixtures/vcr_cassettes/entries/rich_text_nested_fields.yml +0 -653
  191. data/spec/fixtures/vcr_cassettes/entries/rich_text_unresolved_relationships.yml +0 -983
  192. data/spec/fixtures/vcr_cassettes/entries/unresolvable_filter.yml +0 -159
  193. data/spec/fixtures/vcr_cassettes/entries/unresolvable_filter_deeply_nested.yml +0 -167
  194. data/spec/fixtures/vcr_cassettes/entries.yml +0 -561
  195. data/spec/fixtures/vcr_cassettes/entry/custom_resource.yml +0 -168
  196. data/spec/fixtures/vcr_cassettes/entry/include_resolution.yml +0 -101
  197. data/spec/fixtures/vcr_cassettes/entry/include_resolution_uniques.yml +0 -81
  198. data/spec/fixtures/vcr_cassettes/entry/json_objects.yml +0 -88
  199. data/spec/fixtures/vcr_cassettes/entry/json_objects_client.yml +0 -86
  200. data/spec/fixtures/vcr_cassettes/entry/marshal_138.yml +0 -159
  201. data/spec/fixtures/vcr_cassettes/entry/marshal_unpublished.yml +0 -303
  202. data/spec/fixtures/vcr_cassettes/entry/marshall.yml +0 -293
  203. data/spec/fixtures/vcr_cassettes/entry/raw.yml +0 -201
  204. data/spec/fixtures/vcr_cassettes/entry/search_link_to_asset.yml +0 -81
  205. data/spec/fixtures/vcr_cassettes/entry/search_link_to_entry.yml +0 -81
  206. data/spec/fixtures/vcr_cassettes/entry/search_link_to_entry_with_custom_query.yml +0 -115
  207. data/spec/fixtures/vcr_cassettes/entry/select_empty_array.yml +0 -111
  208. data/spec/fixtures/vcr_cassettes/entry/select_no_sys.yml +0 -102
  209. data/spec/fixtures/vcr_cassettes/entry/select_one_field.yml +0 -76
  210. data/spec/fixtures/vcr_cassettes/entry/select_one_field_proper.yml +0 -114
  211. data/spec/fixtures/vcr_cassettes/entry/select_only_sys.yml +0 -111
  212. data/spec/fixtures/vcr_cassettes/entry.yml +0 -102
  213. data/spec/fixtures/vcr_cassettes/entry_cache.yml +0 -288
  214. data/spec/fixtures/vcr_cassettes/entry_locales.yml +0 -104
  215. data/spec/fixtures/vcr_cassettes/field.yml +0 -147
  216. data/spec/fixtures/vcr_cassettes/human.yml +0 -118
  217. data/spec/fixtures/vcr_cassettes/linkField.yml +0 -83
  218. data/spec/fixtures/vcr_cassettes/locale.yml +0 -83
  219. data/spec/fixtures/vcr_cassettes/locale_from_environment.yml +0 -121
  220. data/spec/fixtures/vcr_cassettes/location.yml +0 -193
  221. data/spec/fixtures/vcr_cassettes/multi_locale_array_reference.yml +0 -196
  222. data/spec/fixtures/vcr_cassettes/multi_locale_reference.yml +0 -214
  223. data/spec/fixtures/vcr_cassettes/not_found.yml +0 -76
  224. data/spec/fixtures/vcr_cassettes/nyancat.yml +0 -102
  225. data/spec/fixtures/vcr_cassettes/ratelimit.yml +0 -64
  226. data/spec/fixtures/vcr_cassettes/ratelimit_retry.yml +0 -294
  227. data/spec/fixtures/vcr_cassettes/reloaded_entry.yml +0 -102
  228. data/spec/fixtures/vcr_cassettes/space.yml +0 -83
  229. data/spec/fixtures/vcr_cassettes/sync_deleted_asset.yml +0 -174
  230. data/spec/fixtures/vcr_cassettes/sync_deleted_entry.yml +0 -89
  231. data/spec/fixtures/vcr_cassettes/sync_deletion.yml +0 -191
  232. data/spec/fixtures/vcr_cassettes/sync_environment.yml +0 -81
  233. data/spec/fixtures/vcr_cassettes/sync_page.yml +0 -637
  234. data/spec/fixtures/vcr_cassettes/sync_page_2.yml +0 -71
  235. data/spec/fixtures/vcr_cassettes/sync_page_short.yml +0 -106
  236. data/spec/fixtures/vcr_cassettes/unauthorized.yml +0 -64
  237. data/spec/fixtures/vcr_cassettes/unavailable.yml +0 -76
  238. data/spec/link_spec.rb +0 -50
  239. data/spec/locale_spec.rb +0 -37
  240. data/spec/location_spec.rb +0 -25
  241. data/spec/request_spec.rb +0 -57
  242. data/spec/resource_building_spec.rb +0 -31
  243. data/spec/response_spec.rb +0 -62
  244. data/spec/space_spec.rb +0 -31
  245. data/spec/spec_helper.rb +0 -14
  246. data/spec/support/client.rb +0 -6
  247. data/spec/support/json_responses.rb +0 -18
  248. data/spec/support/vcr.rb +0 -16
  249. data/spec/sync_page_spec.rb +0 -103
  250. data/spec/sync_spec.rb +0 -180
@@ -1,653 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://cdn.contentful.com/spaces/jd7yc4wnatx3/environments/master/content_types?limit=1000
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- X-Contentful-User-Agent:
11
- - sdk contentful.rb/2.9.4; platform ruby/2.5.1; os macOS/16;
12
- Authorization:
13
- - Bearer 6256b8ef7d66805ca41f2728271daf27e8fa6055873b802a813941a0fe696248
14
- Content-Type:
15
- - application/vnd.contentful.delivery.v1+json
16
- Connection:
17
- - close
18
- Host:
19
- - cdn.contentful.com
20
- User-Agent:
21
- - http.rb/2.2.2
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,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature
29
- Access-Control-Allow-Methods:
30
- - GET,HEAD,OPTIONS
31
- Access-Control-Allow-Origin:
32
- - "*"
33
- Access-Control-Expose-Headers:
34
- - Etag
35
- Access-Control-Max-Age:
36
- - '86400'
37
- Cache-Control:
38
- - max-age=0
39
- Content-Type:
40
- - application/vnd.contentful.delivery.v1+json
41
- Contentful-Api:
42
- - cda_cached
43
- Etag:
44
- - W/"0ecb92174772cc7a40d4a981e109aaab"
45
- Server:
46
- - Contentful
47
- X-Content-Type-Options:
48
- - nosniff
49
- X-Contentful-Region:
50
- - us-east-1
51
- X-Contentful-Request-Id:
52
- - ecb2c84c8bdbaa892430f580b6d322ff
53
- Content-Length:
54
- - '2018'
55
- Accept-Ranges:
56
- - bytes
57
- Date:
58
- - Mon, 15 Oct 2018 11:15:04 GMT
59
- Via:
60
- - 1.1 varnish
61
- Age:
62
- - '1'
63
- Connection:
64
- - close
65
- X-Served-By:
66
- - cache-ams4430-AMS
67
- X-Cache:
68
- - HIT
69
- X-Cache-Hits:
70
- - '1'
71
- X-Timer:
72
- - S1539602105.504195,VS0,VE0
73
- Vary:
74
- - Accept-Encoding
75
- body:
76
- encoding: ASCII-8BIT
77
- string: |
78
- {
79
- "sys": {
80
- "type": "Array"
81
- },
82
- "total": 2,
83
- "skip": 0,
84
- "limit": 1000,
85
- "items": [
86
- {
87
- "sys": {
88
- "space": {
89
- "sys": {
90
- "type": "Link",
91
- "linkType": "Space",
92
- "id": "jd7yc4wnatx3"
93
- }
94
- },
95
- "id": "embedded",
96
- "type": "ContentType",
97
- "createdAt": "2018-08-22T10:44:07.886Z",
98
- "updatedAt": "2018-08-22T10:44:07.886Z",
99
- "environment": {
100
- "sys": {
101
- "id": "master",
102
- "type": "Link",
103
- "linkType": "Environment"
104
- }
105
- },
106
- "revision": 1
107
- },
108
- "displayField": "body",
109
- "name": "Embedded",
110
- "description": "",
111
- "fields": [
112
- {
113
- "id": "body",
114
- "name": "Body",
115
- "type": "Symbol",
116
- "localized": false,
117
- "required": false,
118
- "disabled": false,
119
- "omitted": false
120
- }
121
- ]
122
- },
123
- {
124
- "sys": {
125
- "space": {
126
- "sys": {
127
- "type": "Link",
128
- "linkType": "Space",
129
- "id": "jd7yc4wnatx3"
130
- }
131
- },
132
- "id": "stTest",
133
- "type": "ContentType",
134
- "createdAt": "2018-08-22T10:43:50.802Z",
135
- "updatedAt": "2018-08-22T10:43:50.802Z",
136
- "environment": {
137
- "sys": {
138
- "id": "master",
139
- "type": "Link",
140
- "linkType": "Environment"
141
- }
142
- },
143
- "revision": 1
144
- },
145
- "displayField": "name",
146
- "name": "StTest",
147
- "description": "",
148
- "fields": [
149
- {
150
- "id": "name",
151
- "name": "Name",
152
- "type": "Symbol",
153
- "localized": false,
154
- "required": false,
155
- "disabled": false,
156
- "omitted": false
157
- },
158
- {
159
- "id": "body",
160
- "name": "Body",
161
- "type": "RichText",
162
- "localized": false,
163
- "required": false,
164
- "disabled": false,
165
- "omitted": false
166
- }
167
- ]
168
- }
169
- ]
170
- }
171
- http_version:
172
- recorded_at: Mon, 15 Oct 2018 11:15:04 GMT
173
- - request:
174
- method: get
175
- uri: https://cdn.contentful.com/spaces/jd7yc4wnatx3/environments/master/entries?sys.id=6NGLswCREsGA28kGouScyY
176
- body:
177
- encoding: US-ASCII
178
- string: ''
179
- headers:
180
- X-Contentful-User-Agent:
181
- - sdk contentful.rb/2.9.4; platform ruby/2.5.1; os macOS/16;
182
- Authorization:
183
- - Bearer 6256b8ef7d66805ca41f2728271daf27e8fa6055873b802a813941a0fe696248
184
- Content-Type:
185
- - application/vnd.contentful.delivery.v1+json
186
- Connection:
187
- - close
188
- Host:
189
- - cdn.contentful.com
190
- User-Agent:
191
- - http.rb/2.2.2
192
- response:
193
- status:
194
- code: 200
195
- message: OK
196
- headers:
197
- Access-Control-Allow-Headers:
198
- - 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,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature
199
- Access-Control-Allow-Methods:
200
- - GET,HEAD,OPTIONS
201
- Access-Control-Allow-Origin:
202
- - "*"
203
- Access-Control-Expose-Headers:
204
- - Etag
205
- Access-Control-Max-Age:
206
- - '86400'
207
- Cache-Control:
208
- - max-age=0
209
- Content-Type:
210
- - application/vnd.contentful.delivery.v1+json
211
- Contentful-Api:
212
- - cda_cached
213
- Etag:
214
- - W/"ad6896d8b4604d1307178a506ce1b102"
215
- Server:
216
- - Contentful
217
- X-Content-Type-Options:
218
- - nosniff
219
- X-Contentful-Region:
220
- - us-east-1
221
- X-Contentful-Request-Id:
222
- - 11cf690b6ba279d7e5f5c640982b3f4d
223
- Content-Length:
224
- - '11591'
225
- Accept-Ranges:
226
- - bytes
227
- Date:
228
- - Mon, 15 Oct 2018 11:15:04 GMT
229
- Via:
230
- - 1.1 varnish
231
- Age:
232
- - '0'
233
- Connection:
234
- - close
235
- X-Served-By:
236
- - cache-ams4436-AMS
237
- X-Cache:
238
- - MISS
239
- X-Cache-Hits:
240
- - '0'
241
- X-Timer:
242
- - S1539602105.596816,VS0,VE198
243
- Vary:
244
- - Accept-Encoding
245
- body:
246
- encoding: ASCII-8BIT
247
- string: |
248
- {
249
- "sys": {
250
- "type": "Array"
251
- },
252
- "total": 1,
253
- "skip": 0,
254
- "limit": 100,
255
- "items": [
256
- {
257
- "sys": {
258
- "space": {
259
- "sys": {
260
- "type": "Link",
261
- "linkType": "Space",
262
- "id": "jd7yc4wnatx3"
263
- }
264
- },
265
- "id": "6NGLswCREsGA28kGouScyY",
266
- "type": "Entry",
267
- "createdAt": "2018-09-11T09:40:41.531Z",
268
- "updatedAt": "2018-09-12T10:04:16.991Z",
269
- "environment": {
270
- "sys": {
271
- "id": "master",
272
- "type": "Link",
273
- "linkType": "Environment"
274
- }
275
- },
276
- "revision": 2,
277
- "contentType": {
278
- "sys": {
279
- "type": "Link",
280
- "linkType": "ContentType",
281
- "id": "stTest"
282
- }
283
- },
284
- "locale": "en-US"
285
- },
286
- "fields": {
287
- "name": "Test Inline Stuff and Links",
288
- "body": {
289
- "content": [
290
- {
291
- "data": {},
292
- "content": [
293
- {
294
- "marks": [],
295
- "value": "A link to ",
296
- "nodeType": "text",
297
- "nodeClass": "text"
298
- },
299
- {
300
- "data": {
301
- "uri": "https://google.com"
302
- },
303
- "content": [
304
- {
305
- "marks": [],
306
- "value": "google",
307
- "nodeType": "text",
308
- "nodeClass": "text"
309
- }
310
- ],
311
- "nodeType": "hyperlink",
312
- "nodeClass": "inline"
313
- },
314
- {
315
- "marks": [],
316
- "value": "",
317
- "nodeType": "text",
318
- "nodeClass": "text"
319
- }
320
- ],
321
- "nodeType": "paragraph",
322
- "nodeClass": "block"
323
- },
324
- {
325
- "data": {},
326
- "content": [
327
- {
328
- "data": {},
329
- "content": [
330
- {
331
- "marks": [],
332
- "value": "Some quoted text",
333
- "nodeType": "text",
334
- "nodeClass": "text"
335
- }
336
- ],
337
- "nodeType": "paragraph",
338
- "nodeClass": "block"
339
- }
340
- ],
341
- "nodeType": "blockquote",
342
- "nodeClass": "block"
343
- },
344
- {
345
- "data": {},
346
- "content": [
347
- {
348
- "marks": [],
349
- "value": "",
350
- "nodeType": "text",
351
- "nodeClass": "text"
352
- }
353
- ],
354
- "nodeType": "hr",
355
- "nodeClass": "block"
356
- },
357
- {
358
- "data": {},
359
- "content": [
360
- {
361
- "data": {},
362
- "content": [
363
- {
364
- "data": {},
365
- "content": [
366
- {
367
- "marks": [],
368
- "value": "unordered item",
369
- "nodeType": "text",
370
- "nodeClass": "text"
371
- }
372
- ],
373
- "nodeType": "paragraph",
374
- "nodeClass": "block"
375
- }
376
- ],
377
- "nodeType": "list-item",
378
- "nodeClass": "block"
379
- },
380
- {
381
- "data": {},
382
- "content": [
383
- {
384
- "data": {},
385
- "content": [
386
- {
387
- "marks": [],
388
- "value": "another unordered item",
389
- "nodeType": "text",
390
- "nodeClass": "text"
391
- }
392
- ],
393
- "nodeType": "paragraph",
394
- "nodeClass": "block"
395
- }
396
- ],
397
- "nodeType": "list-item",
398
- "nodeClass": "block"
399
- },
400
- {
401
- "data": {},
402
- "content": [
403
- {
404
- "data": {
405
- "target": {
406
- "sys": {
407
- "id": "49rofLvvxCOiIMIi6mk8ai",
408
- "type": "Link",
409
- "linkType": "Entry"
410
- }
411
- }
412
- },
413
- "content": [
414
- {
415
- "marks": [],
416
- "value": "",
417
- "nodeType": "text",
418
- "nodeClass": "text"
419
- }
420
- ],
421
- "nodeType": "embedded-entry-block",
422
- "nodeClass": "block"
423
- },
424
- {
425
- "data": {},
426
- "content": [
427
- {
428
- "marks": [],
429
- "value": "",
430
- "nodeType": "text",
431
- "nodeClass": "text"
432
- }
433
- ],
434
- "nodeType": "paragraph",
435
- "nodeClass": "block"
436
- }
437
- ],
438
- "nodeType": "list-item",
439
- "nodeClass": "block"
440
- }
441
- ],
442
- "nodeType": "unordered-list",
443
- "nodeClass": "block"
444
- },
445
- {
446
- "data": {},
447
- "content": [
448
- {
449
- "data": {},
450
- "content": [
451
- {
452
- "data": {},
453
- "content": [
454
- {
455
- "marks": [],
456
- "value": "first item",
457
- "nodeType": "text",
458
- "nodeClass": "text"
459
- }
460
- ],
461
- "nodeType": "paragraph",
462
- "nodeClass": "block"
463
- }
464
- ],
465
- "nodeType": "list-item",
466
- "nodeClass": "block"
467
- },
468
- {
469
- "data": {},
470
- "content": [
471
- {
472
- "data": {},
473
- "content": [
474
- {
475
- "marks": [],
476
- "value": "second item",
477
- "nodeType": "text",
478
- "nodeClass": "text"
479
- }
480
- ],
481
- "nodeType": "paragraph",
482
- "nodeClass": "block"
483
- }
484
- ],
485
- "nodeType": "list-item",
486
- "nodeClass": "block"
487
- },
488
- {
489
- "data": {},
490
- "content": [
491
- {
492
- "data": {
493
- "target": {
494
- "sys": {
495
- "id": "5ZF9Q4K6iWSYIU2OUs0UaQ",
496
- "type": "Link",
497
- "linkType": "Entry"
498
- }
499
- }
500
- },
501
- "content": [
502
- {
503
- "marks": [],
504
- "value": "",
505
- "nodeType": "text",
506
- "nodeClass": "text"
507
- }
508
- ],
509
- "nodeType": "embedded-entry-block",
510
- "nodeClass": "block"
511
- },
512
- {
513
- "data": {},
514
- "content": [
515
- {
516
- "marks": [],
517
- "value": "",
518
- "nodeType": "text",
519
- "nodeClass": "text"
520
- }
521
- ],
522
- "nodeType": "paragraph",
523
- "nodeClass": "block"
524
- }
525
- ],
526
- "nodeType": "list-item",
527
- "nodeClass": "block"
528
- }
529
- ],
530
- "nodeType": "ordered-list",
531
- "nodeClass": "block"
532
- },
533
- {
534
- "data": {},
535
- "content": [
536
- {
537
- "marks": [],
538
- "value": "",
539
- "nodeType": "text",
540
- "nodeClass": "text"
541
- }
542
- ],
543
- "nodeType": "hr",
544
- "nodeClass": "block"
545
- },
546
- {
547
- "data": {},
548
- "content": [
549
- {
550
- "marks": [],
551
- "value": "Some ",
552
- "nodeType": "text",
553
- "nodeClass": "text"
554
- },
555
- {
556
- "marks": [
557
- {
558
- "data": {},
559
- "type": "code",
560
- "object": "mark"
561
- }
562
- ],
563
- "value": "inline code",
564
- "nodeType": "text",
565
- "nodeClass": "text"
566
- }
567
- ],
568
- "nodeType": "paragraph",
569
- "nodeClass": "block"
570
- }
571
- ],
572
- "nodeType": "document",
573
- "nodeClass": "document"
574
- }
575
- }
576
- }
577
- ],
578
- "includes": {
579
- "Entry": [
580
- {
581
- "sys": {
582
- "space": {
583
- "sys": {
584
- "type": "Link",
585
- "linkType": "Space",
586
- "id": "jd7yc4wnatx3"
587
- }
588
- },
589
- "id": "49rofLvvxCOiIMIi6mk8ai",
590
- "type": "Entry",
591
- "createdAt": "2018-08-22T10:45:20.685Z",
592
- "updatedAt": "2018-08-22T10:45:20.686Z",
593
- "environment": {
594
- "sys": {
595
- "id": "master",
596
- "type": "Link",
597
- "linkType": "Environment"
598
- }
599
- },
600
- "revision": 1,
601
- "contentType": {
602
- "sys": {
603
- "type": "Link",
604
- "linkType": "ContentType",
605
- "id": "embedded"
606
- }
607
- },
608
- "locale": "en-US"
609
- },
610
- "fields": {
611
- "body": "Embedded 1"
612
- }
613
- },
614
- {
615
- "sys": {
616
- "space": {
617
- "sys": {
618
- "type": "Link",
619
- "linkType": "Space",
620
- "id": "jd7yc4wnatx3"
621
- }
622
- },
623
- "id": "5ZF9Q4K6iWSYIU2OUs0UaQ",
624
- "type": "Entry",
625
- "createdAt": "2018-08-22T10:45:29.715Z",
626
- "updatedAt": "2018-08-22T10:45:29.715Z",
627
- "environment": {
628
- "sys": {
629
- "id": "master",
630
- "type": "Link",
631
- "linkType": "Environment"
632
- }
633
- },
634
- "revision": 1,
635
- "contentType": {
636
- "sys": {
637
- "type": "Link",
638
- "linkType": "ContentType",
639
- "id": "embedded"
640
- }
641
- },
642
- "locale": "en-US"
643
- },
644
- "fields": {
645
- "body": "Embedded 2"
646
- }
647
- }
648
- ]
649
- }
650
- }
651
- http_version:
652
- recorded_at: Mon, 15 Oct 2018 11:15:04 GMT
653
- recorded_with: VCR 4.0.0