contentful-management 1.10.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (303) hide show
  1. checksums.yaml +5 -5
  2. data/.rubocop.yml +3 -0
  3. data/CHANGELOG.md +48 -0
  4. data/README.md +92 -50
  5. data/lib/contentful/management/api_key.rb +25 -2
  6. data/lib/contentful/management/array.rb +3 -3
  7. data/lib/contentful/management/asset.rb +13 -8
  8. data/lib/contentful/management/client.rb +73 -60
  9. data/lib/contentful/management/client_api_key_methods_factory.rb +8 -0
  10. data/lib/contentful/management/client_asset_methods_factory.rb +0 -2
  11. data/lib/contentful/management/client_association_all_published_method_factory.rb +2 -3
  12. data/lib/contentful/management/client_association_methods_factory.rb +9 -9
  13. data/lib/contentful/management/client_content_type_methods_factory.rb +8 -2
  14. data/lib/contentful/management/client_editor_interface_methods_factory.rb +12 -6
  15. data/lib/contentful/management/client_entry_methods_factory.rb +1 -3
  16. data/lib/contentful/management/client_environment_methods_factory.rb +59 -0
  17. data/lib/contentful/management/client_organization_methods_factory.rb +1 -1
  18. data/lib/contentful/management/client_personal_access_tokens_methods_factory.rb +3 -3
  19. data/lib/contentful/management/client_role_methods_factory.rb +8 -0
  20. data/lib/contentful/management/client_snapshot_methods_factory.rb +8 -6
  21. data/lib/contentful/management/client_space_methods_factory.rb +2 -6
  22. data/lib/contentful/management/client_upload_methods_factory.rb +8 -0
  23. data/lib/contentful/management/client_user_methods_factory.rb +1 -1
  24. data/lib/contentful/management/client_webhook_call_methods_factory.rb +11 -6
  25. data/lib/contentful/management/client_webhook_health_methods_factory.rb +2 -2
  26. data/lib/contentful/management/client_webhook_methods_factory.rb +8 -0
  27. data/lib/contentful/management/content_type.rb +9 -7
  28. data/lib/contentful/management/content_type_editor_interface_methods_factory.rb +7 -3
  29. data/lib/contentful/management/content_type_entry_methods_factory.rb +2 -2
  30. data/lib/contentful/management/content_type_snapshot_methods_factory.rb +16 -2
  31. data/lib/contentful/management/dynamic_entry.rb +1 -1
  32. data/lib/contentful/management/editor_interface.rb +14 -6
  33. data/lib/contentful/management/entry.rb +12 -10
  34. data/lib/contentful/management/entry_association_methods_factory.rb +2 -2
  35. data/lib/contentful/management/environment.rb +138 -0
  36. data/lib/contentful/management/environment_asset_methods_factory.rb +11 -0
  37. data/lib/contentful/management/environment_association_methods_factory.rb +42 -0
  38. data/lib/contentful/management/environment_content_type_methods_factory.rb +11 -0
  39. data/lib/contentful/management/environment_editor_interface_methods_factory.rb +15 -0
  40. data/lib/contentful/management/environment_entry_methods_factory.rb +11 -0
  41. data/lib/contentful/management/environment_locale_methods_factory.rb +11 -0
  42. data/lib/contentful/management/environment_ui_extension_methods_factory.rb +11 -0
  43. data/lib/contentful/management/field.rb +3 -3
  44. data/lib/contentful/management/file.rb +2 -2
  45. data/lib/contentful/management/link.rb +21 -7
  46. data/lib/contentful/management/locale.rb +4 -2
  47. data/lib/contentful/management/organization.rb +1 -1
  48. data/lib/contentful/management/personal_access_token.rb +2 -2
  49. data/lib/contentful/management/resource.rb +34 -13
  50. data/lib/contentful/management/resource/all_published.rb +2 -2
  51. data/lib/contentful/management/resource/archiver.rb +12 -2
  52. data/lib/contentful/management/resource/environment_aware.rb +13 -0
  53. data/lib/contentful/management/resource/publisher.rb +12 -2
  54. data/lib/contentful/management/resource/refresher.rb +1 -1
  55. data/lib/contentful/management/resource_builder.rb +16 -14
  56. data/lib/contentful/management/response.rb +1 -1
  57. data/lib/contentful/management/role.rb +29 -2
  58. data/lib/contentful/management/snapshot.rb +13 -7
  59. data/lib/contentful/management/space.rb +14 -93
  60. data/lib/contentful/management/space_association_methods_factory.rb +1 -1
  61. data/lib/contentful/management/{space_locale_methods_factory.rb → space_environment_methods_factory.rb} +2 -6
  62. data/lib/contentful/management/space_membership.rb +3 -3
  63. data/lib/contentful/management/ui_extension.rb +4 -2
  64. data/lib/contentful/management/upload.rb +24 -1
  65. data/lib/contentful/management/user.rb +4 -4
  66. data/lib/contentful/management/validation.rb +5 -5
  67. data/lib/contentful/management/version.rb +1 -1
  68. data/lib/contentful/management/webhook.rb +26 -3
  69. data/lib/contentful/management/webhook_call.rb +8 -8
  70. data/lib/contentful/management/webhook_health.rb +2 -2
  71. data/spec/fixtures/vcr_cassettes/asset/143_assets_next_page.yml +2 -2
  72. data/spec/fixtures/vcr_cassettes/asset/all.yml +1 -1
  73. data/spec/fixtures/vcr_cassettes/asset/archive.yml +2 -2
  74. data/spec/fixtures/vcr_cassettes/asset/archive_published.yml +2 -2
  75. data/spec/fixtures/vcr_cassettes/asset/archived_false.yml +2 -2
  76. data/spec/fixtures/vcr_cassettes/asset/archived_true.yml +2 -2
  77. data/spec/fixtures/vcr_cassettes/asset/create.yml +2 -2
  78. data/spec/fixtures/vcr_cassettes/asset/create_with_already_used_id.yml +1 -1
  79. data/spec/fixtures/vcr_cassettes/asset/create_with_custom_id.yml +2 -2
  80. data/spec/fixtures/vcr_cassettes/asset/create_with_locale.yml +2 -2
  81. data/spec/fixtures/vcr_cassettes/asset/destroy.yml +2 -2
  82. data/spec/fixtures/vcr_cassettes/asset/destroy_published.yml +2 -2
  83. data/spec/fixtures/vcr_cassettes/asset/find.yml +1 -1
  84. data/spec/fixtures/vcr_cassettes/asset/find_not_found.yml +1 -1
  85. data/spec/fixtures/vcr_cassettes/asset/limited_assets_next_page.yml +2 -2
  86. data/spec/fixtures/vcr_cassettes/asset/locale.yml +1 -1
  87. data/spec/fixtures/vcr_cassettes/asset/process.yml +2 -2
  88. data/spec/fixtures/vcr_cassettes/asset/publish.yml +2 -2
  89. data/spec/fixtures/vcr_cassettes/asset/publish_after_create.yml +3 -3
  90. data/spec/fixtures/vcr_cassettes/asset/publish_already_published.yml +2 -2
  91. data/spec/fixtures/vcr_cassettes/asset/published_false.yml +2 -2
  92. data/spec/fixtures/vcr_cassettes/asset/published_true.yml +2 -2
  93. data/spec/fixtures/vcr_cassettes/asset/reload.yml +4 -4
  94. data/spec/fixtures/vcr_cassettes/asset/reload_with_fields.yml +2 -2
  95. data/spec/fixtures/vcr_cassettes/asset/save_update.yml +2 -2
  96. data/spec/fixtures/vcr_cassettes/asset/select_operator.yml +1 -1
  97. data/spec/fixtures/vcr_cassettes/asset/set_locale.yml +1 -1
  98. data/spec/fixtures/vcr_cassettes/asset/unarchive.yml +2 -2
  99. data/spec/fixtures/vcr_cassettes/asset/unarchive_already_unarchive.yml +2 -2
  100. data/spec/fixtures/vcr_cassettes/asset/unarchive_already_unarchived.yml +2 -2
  101. data/spec/fixtures/vcr_cassettes/asset/unpublish.yml +2 -2
  102. data/spec/fixtures/vcr_cassettes/asset/unpublish_already_unpublished.yml +2 -2
  103. data/spec/fixtures/vcr_cassettes/asset/update_file.yml +2 -2
  104. data/spec/fixtures/vcr_cassettes/asset/update_to_specified_locale.yml +2 -2
  105. data/spec/fixtures/vcr_cassettes/asset/update_with_default_locale_without_file.yml +2 -2
  106. data/spec/fixtures/vcr_cassettes/content_type/activate.yml +2 -2
  107. data/spec/fixtures/vcr_cassettes/content_type/activate_with_invalid_version.yml +2 -2
  108. data/spec/fixtures/vcr_cassettes/content_type/activated_false.yml +2 -2
  109. data/spec/fixtures/vcr_cassettes/content_type/activated_true.yml +2 -2
  110. data/spec/fixtures/vcr_cassettes/content_type/all.yml +1 -1
  111. data/spec/fixtures/vcr_cassettes/content_type/all_public.yml +1 -1
  112. data/spec/fixtures/vcr_cassettes/content_type/create.yml +1 -1
  113. data/spec/fixtures/vcr_cassettes/content_type/create_content_type_with_id.yml +1 -1
  114. data/spec/fixtures/vcr_cassettes/content_type/create_with_Array_field.yml +1 -1
  115. data/spec/fixtures/vcr_cassettes/content_type/create_with_Boolean_field.yml +1 -1
  116. data/spec/fixtures/vcr_cassettes/content_type/create_with_Date_field.yml +1 -1
  117. data/spec/fixtures/vcr_cassettes/content_type/create_with_Integer_field.yml +1 -1
  118. data/spec/fixtures/vcr_cassettes/content_type/create_with_Link_field.yml +1 -1
  119. data/spec/fixtures/vcr_cassettes/content_type/create_with_Location_field.yml +1 -1
  120. data/spec/fixtures/vcr_cassettes/content_type/create_with_Number_field.yml +1 -1
  121. data/spec/fixtures/vcr_cassettes/content_type/create_with_Object_field.yml +1 -1
  122. data/spec/fixtures/vcr_cassettes/content_type/create_with_Symbol_field.yml +1 -1
  123. data/spec/fixtures/vcr_cassettes/content_type/create_with_Text_field.yml +1 -1
  124. data/spec/fixtures/vcr_cassettes/content_type/deactivate.yml +2 -2
  125. data/spec/fixtures/vcr_cassettes/content_type/deactivate_already_deactivated.yml +2 -2
  126. data/spec/fixtures/vcr_cassettes/content_type/deactivate_with_entries.yml +2 -2
  127. data/spec/fixtures/vcr_cassettes/content_type/deactivate_with_version_change.yml +2 -2
  128. data/spec/fixtures/vcr_cassettes/content_type/destroy.yml +2 -2
  129. data/spec/fixtures/vcr_cassettes/content_type/destroy_activated.yml +2 -2
  130. data/spec/fixtures/vcr_cassettes/content_type/entry/all.yml +4 -4
  131. data/spec/fixtures/vcr_cassettes/content_type/entry/create.yml +4 -4
  132. data/spec/fixtures/vcr_cassettes/content_type/entry/create_only_with_localized_fields.yml +2 -2
  133. data/spec/fixtures/vcr_cassettes/content_type/entry/create_to_single_locale_only_with_localized_fields.yml +2 -2
  134. data/spec/fixtures/vcr_cassettes/content_type/entry/create_with_camel_case_id_to_multiple_locales.yml +2 -2
  135. data/spec/fixtures/vcr_cassettes/content_type/entry/create_with_entries.yml +3 -3
  136. data/spec/fixtures/vcr_cassettes/content_type/entry/create_with_entries_for_multiple_locales.yml +9 -9
  137. data/spec/fixtures/vcr_cassettes/content_type/entry/create_with_multiple_locales.yml +2 -2
  138. data/spec/fixtures/vcr_cassettes/content_type/entry/update_only_with_localized_fields.yml +3 -3
  139. data/spec/fixtures/vcr_cassettes/content_type/fields/add.yml +2 -2
  140. data/spec/fixtures/vcr_cassettes/content_type/fields/create.yml +2 -2
  141. data/spec/fixtures/vcr_cassettes/content_type/fields/create_array_types.yml +3 -3
  142. data/spec/fixtures/vcr_cassettes/content_type/fields/create_array_with_params.yml +2 -2
  143. data/spec/fixtures/vcr_cassettes/content_type/fields/create_with_params.yml +2 -2
  144. data/spec/fixtures/vcr_cassettes/content_type/fields/destroy.yml +2 -2
  145. data/spec/fixtures/vcr_cassettes/content_type/fields/update_field.yml +2 -2
  146. data/spec/fixtures/vcr_cassettes/content_type/find.yml +1 -1
  147. data/spec/fixtures/vcr_cassettes/content_type/find_not_found.yml +1 -1
  148. data/spec/fixtures/vcr_cassettes/content_type/issue_79.yml +3 -3
  149. data/spec/fixtures/vcr_cassettes/content_type/omitted_field.yml +4 -4
  150. data/spec/fixtures/vcr_cassettes/content_type/reload.yml +4 -4
  151. data/spec/fixtures/vcr_cassettes/content_type/save_new.yml +3 -3
  152. data/spec/fixtures/vcr_cassettes/content_type/save_updated.yml +2 -2
  153. data/spec/fixtures/vcr_cassettes/content_type/save_with_added_field.yml +2 -2
  154. data/spec/fixtures/vcr_cassettes/content_type/update.yml +2 -2
  155. data/spec/fixtures/vcr_cassettes/content_type/update_change_field_name.yml +2 -2
  156. data/spec/fixtures/vcr_cassettes/content_type/update_remove_field.yml +2 -2
  157. data/spec/fixtures/vcr_cassettes/content_type/update_with_fields.yml +2 -2
  158. data/spec/fixtures/vcr_cassettes/content_type/update_with_one_new_field.yml +2 -2
  159. data/spec/fixtures/vcr_cassettes/content_type/validation/in.yml +3 -3
  160. data/spec/fixtures/vcr_cassettes/content_type/validation/in_add.yml +3 -3
  161. data/spec/fixtures/vcr_cassettes/content_type/validation/in_update.yml +3 -3
  162. data/spec/fixtures/vcr_cassettes/content_type/validation/link_content_type.yml +3 -3
  163. data/spec/fixtures/vcr_cassettes/content_type/validation/link_field.yml +3 -3
  164. data/spec/fixtures/vcr_cassettes/content_type/validation/link_mimetype_group.yml +3 -3
  165. data/spec/fixtures/vcr_cassettes/content_type/validation/multiple_add.yml +3 -3
  166. data/spec/fixtures/vcr_cassettes/content_type/validation/present.yml +3 -3
  167. data/spec/fixtures/vcr_cassettes/content_type/validation/range.yml +3 -3
  168. data/spec/fixtures/vcr_cassettes/content_type/validation/range_update.yml +3 -3
  169. data/spec/fixtures/vcr_cassettes/content_type/validation/regexp.yml +3 -3
  170. data/spec/fixtures/vcr_cassettes/content_type/validation/size.yml +3 -3
  171. data/spec/fixtures/vcr_cassettes/content_type/validation/unique.yml +3 -3
  172. data/spec/fixtures/vcr_cassettes/editor_interfaces/default_for_space.yml +1 -1
  173. data/spec/fixtures/vcr_cassettes/editor_interfaces/update.yml +3 -3
  174. data/spec/fixtures/vcr_cassettes/entry/all.yml +1 -1
  175. data/spec/fixtures/vcr_cassettes/entry/archive.yml +2 -2
  176. data/spec/fixtures/vcr_cassettes/entry/archive_published.yml +2 -2
  177. data/spec/fixtures/vcr_cassettes/entry/archived_false.yml +2 -2
  178. data/spec/fixtures/vcr_cassettes/entry/archived_true.yml +2 -2
  179. data/spec/fixtures/vcr_cassettes/entry/content_type_entires.yml +1 -1
  180. data/spec/fixtures/vcr_cassettes/entry/create.yml +4 -4
  181. data/spec/fixtures/vcr_cassettes/entry/create_with_asset.yml +3 -3
  182. data/spec/fixtures/vcr_cassettes/entry/create_with_assets.yml +3 -3
  183. data/spec/fixtures/vcr_cassettes/entry/create_with_custom_id.yml +2 -2
  184. data/spec/fixtures/vcr_cassettes/entry/create_with_entries.yml +3 -3
  185. data/spec/fixtures/vcr_cassettes/entry/create_with_entry.yml +3 -3
  186. data/spec/fixtures/vcr_cassettes/entry/create_with_just_id.yml +4 -4
  187. data/spec/fixtures/vcr_cassettes/entry/create_with_location.yml +2 -2
  188. data/spec/fixtures/vcr_cassettes/entry/create_with_specified_locale.yml +3 -3
  189. data/spec/fixtures/vcr_cassettes/entry/create_with_symbols.yml +2 -2
  190. data/spec/fixtures/vcr_cassettes/entry/destory_published.yml +2 -2
  191. data/spec/fixtures/vcr_cassettes/entry/destroy.yml +2 -2
  192. data/spec/fixtures/vcr_cassettes/entry/fallback_undefined.yml +3 -3
  193. data/spec/fixtures/vcr_cassettes/entry/find-with-null-symbols.yml +2 -2
  194. data/spec/fixtures/vcr_cassettes/entry/find.yml +1 -1
  195. data/spec/fixtures/vcr_cassettes/entry/find_not_found.yml +1 -1
  196. data/spec/fixtures/vcr_cassettes/entry/issue_61_1.yml +6 -6
  197. data/spec/fixtures/vcr_cassettes/entry/issue_61_2.yml +6 -6
  198. data/spec/fixtures/vcr_cassettes/entry/issue_61_3.yml +6 -6
  199. data/spec/fixtures/vcr_cassettes/entry/issue_61_4.yml +6 -6
  200. data/spec/fixtures/vcr_cassettes/entry/issue_61_5.yml +305 -198
  201. data/spec/fixtures/vcr_cassettes/entry/issue_61_6.yml +5 -5
  202. data/spec/fixtures/vcr_cassettes/entry/issue_61_7.yml +6 -6
  203. data/spec/fixtures/vcr_cassettes/entry/issue_61_8.yml +6 -6
  204. data/spec/fixtures/vcr_cassettes/entry/issue_61_spaces.yml +143 -188
  205. data/spec/fixtures/vcr_cassettes/entry/issue_70.yml +3 -3
  206. data/spec/fixtures/vcr_cassettes/entry/issue_73.yml +4 -4
  207. data/spec/fixtures/vcr_cassettes/entry/issue_91.yml +2 -2
  208. data/spec/fixtures/vcr_cassettes/entry/limited_entries.yml +2 -2
  209. data/spec/fixtures/vcr_cassettes/entry/locales/fallback_to_default_locale.yml +2 -2
  210. data/spec/fixtures/vcr_cassettes/entry/locales/retrieve_localized.yml +2 -2
  211. data/spec/fixtures/vcr_cassettes/entry/locales/simple_assignments_use_default_locale.yml +2 -2
  212. data/spec/fixtures/vcr_cassettes/entry/locales/simple_assignments_use_specified_locale.yml +2 -2
  213. data/spec/fixtures/vcr_cassettes/entry/publish.yml +2 -2
  214. data/spec/fixtures/vcr_cassettes/entry/publish_already_published.yml +2 -2
  215. data/spec/fixtures/vcr_cassettes/entry/published_false.yml +2 -2
  216. data/spec/fixtures/vcr_cassettes/entry/published_true.yml +2 -2
  217. data/spec/fixtures/vcr_cassettes/entry/reload.yml +6 -6
  218. data/spec/fixtures/vcr_cassettes/entry/save_update.yml +2 -2
  219. data/spec/fixtures/vcr_cassettes/entry/search_filter/equality_operator.yml +2 -2
  220. data/spec/fixtures/vcr_cassettes/entry/search_filter/exclusion_operator.yml +2 -2
  221. data/spec/fixtures/vcr_cassettes/entry/search_filter/full_search.yml +2 -2
  222. data/spec/fixtures/vcr_cassettes/entry/search_filter/full_search_match_operator.yml +2 -2
  223. data/spec/fixtures/vcr_cassettes/entry/search_filter/including_linked_entries.yml +2 -2
  224. data/spec/fixtures/vcr_cassettes/entry/search_filter/inclusion_operator.yml +2 -2
  225. data/spec/fixtures/vcr_cassettes/entry/search_filter/inequality_operator.yml +2 -2
  226. data/spec/fixtures/vcr_cassettes/entry/search_filter/location_search_near_operator.yml +2 -2
  227. data/spec/fixtures/vcr_cassettes/entry/search_filter/location_search_within_operator.yml +2 -2
  228. data/spec/fixtures/vcr_cassettes/entry/search_filter/matching_array_fields.yml +2 -2
  229. data/spec/fixtures/vcr_cassettes/entry/search_filter/order_sys_createdAt.yml +2 -2
  230. data/spec/fixtures/vcr_cassettes/entry/search_filter/order_sys_updatedAt.yml +2 -2
  231. data/spec/fixtures/vcr_cassettes/entry/search_filter/range_operators_greater_than_or_equal.yml +2 -2
  232. data/spec/fixtures/vcr_cassettes/entry/search_filter/range_operators_less.yml +2 -2
  233. data/spec/fixtures/vcr_cassettes/entry/search_filter/reverse_order_sys_updatedAt.yml +2 -2
  234. data/spec/fixtures/vcr_cassettes/entry/select_operator.yml +1 -1
  235. data/spec/fixtures/vcr_cassettes/entry/service_unavailable.yml +1 -1
  236. data/spec/fixtures/vcr_cassettes/entry/too_many_requests.yml +5 -5
  237. data/spec/fixtures/vcr_cassettes/entry/too_many_requests_retry.yml +6 -6
  238. data/spec/fixtures/vcr_cassettes/entry/unarchive.yml +2 -2
  239. data/spec/fixtures/vcr_cassettes/entry/unarchive_already_unarchived.yml +2 -2
  240. data/spec/fixtures/vcr_cassettes/entry/unpublish.yml +2 -2
  241. data/spec/fixtures/vcr_cassettes/entry/unpublish_already_unpublished.yml +2 -2
  242. data/spec/fixtures/vcr_cassettes/entry/update.yml +4 -4
  243. data/spec/fixtures/vcr_cassettes/entry/update_bool_field.yml +4 -4
  244. data/spec/fixtures/vcr_cassettes/entry/update_unlocalized_field.yml +3 -3
  245. data/spec/fixtures/vcr_cassettes/entry/update_with_custom_locale.yml +3 -3
  246. data/spec/fixtures/vcr_cassettes/environment/all.yml +226 -0
  247. data/spec/fixtures/vcr_cassettes/environment/create.yml +155 -0
  248. data/spec/fixtures/vcr_cassettes/environment/destroy.yml +89 -0
  249. data/spec/fixtures/vcr_cassettes/environment/find.yml +155 -0
  250. data/spec/fixtures/vcr_cassettes/environment/find_2.yml +155 -0
  251. data/spec/fixtures/vcr_cassettes/environment/not_found.yml +98 -0
  252. data/spec/fixtures/vcr_cassettes/locale/all_for_space.yml +1 -1
  253. data/spec/fixtures/vcr_cassettes/locale/create_for_space.yml +2 -2
  254. data/spec/fixtures/vcr_cassettes/locale/destroy.yml +5 -5
  255. data/spec/fixtures/vcr_cassettes/locale/fallback_code.yml +3 -3
  256. data/spec/fixtures/vcr_cassettes/locale/find.yml +1 -1
  257. data/spec/fixtures/vcr_cassettes/locale/find_default.yml +1 -1
  258. data/spec/fixtures/vcr_cassettes/locale/find_for_space_not_found.yml +1 -1
  259. data/spec/fixtures/vcr_cassettes/locale/find_not_default.yml +1 -1
  260. data/spec/fixtures/vcr_cassettes/locale/find_not_optional.yml +1 -1
  261. data/spec/fixtures/vcr_cassettes/locale/find_optional.yml +1 -1
  262. data/spec/fixtures/vcr_cassettes/locale/reload.yml +3 -3
  263. data/spec/fixtures/vcr_cassettes/locale/update_both.yml +3 -3
  264. data/spec/fixtures/vcr_cassettes/locale/update_code.yml +3 -3
  265. data/spec/fixtures/vcr_cassettes/locale/update_name.yml +3 -3
  266. data/spec/fixtures/vcr_cassettes/snapshot/all.yml +1 -1
  267. data/spec/fixtures/vcr_cassettes/snapshot/ct_all.yml +1 -1
  268. data/spec/fixtures/vcr_cassettes/snapshot/ct_find.yml +1 -1
  269. data/spec/fixtures/vcr_cassettes/snapshot/ct_find_not_found.yml +1 -1
  270. data/spec/fixtures/vcr_cassettes/snapshot/find.yml +1 -1
  271. data/spec/fixtures/vcr_cassettes/snapshot/find_not_found.yml +1 -1
  272. data/spec/fixtures/vcr_cassettes/snapshot/properties.yml +2 -2
  273. data/spec/fixtures/vcr_cassettes/ui_extension/all.yml +1 -1
  274. data/spec/fixtures/vcr_cassettes/ui_extension/create.yml +1 -1
  275. data/spec/fixtures/vcr_cassettes/ui_extension/delete.yml +3 -3
  276. data/spec/fixtures/vcr_cassettes/ui_extension/find.yml +1 -1
  277. data/spec/fixtures/vcr_cassettes/upload/associate_with_asset.yml +3 -3
  278. data/spec/lib/contentful/management/api_key_spec.rb +7 -7
  279. data/spec/lib/contentful/management/asset_spec.rb +38 -57
  280. data/spec/lib/contentful/management/client_spec.rb +1 -1
  281. data/spec/lib/contentful/management/content_type_spec.rb +78 -78
  282. data/spec/lib/contentful/management/editor_interface_spec.rb +4 -4
  283. data/spec/lib/contentful/management/entry_spec.rb +104 -114
  284. data/spec/lib/contentful/management/environment_spec.rb +87 -0
  285. data/spec/lib/contentful/management/locale_spec.rb +22 -22
  286. data/spec/lib/contentful/management/role_spec.rb +11 -11
  287. data/spec/lib/contentful/management/snapshot_spec.rb +27 -27
  288. data/spec/lib/contentful/management/space_membership_spec.rb +6 -7
  289. data/spec/lib/contentful/management/space_spec.rb +0 -282
  290. data/spec/lib/contentful/management/ui_extension_spec.rb +8 -8
  291. data/spec/lib/contentful/management/upload_spec.rb +9 -9
  292. data/spec/lib/contentful/management/webhook_calls_spec.rb +6 -6
  293. data/spec/lib/contentful/management/webhook_health_spec.rb +3 -3
  294. data/spec/lib/contentful/management/webhook_spec.rb +14 -12
  295. metadata +28 -14
  296. data/lib/contentful/management/space_asset_methods_factory.rb +0 -13
  297. data/lib/contentful/management/space_association_all_published_method_factory.rb +0 -12
  298. data/lib/contentful/management/space_content_type_methods_factory.rb +0 -13
  299. data/lib/contentful/management/space_editor_interface_methods_factory.rb +0 -21
  300. data/lib/contentful/management/space_entry_methods_factory.rb +0 -21
  301. data/lib/contentful/management/space_ui_extension_methods_factory.rb +0 -15
  302. data/spec/fixtures/vcr_cassettes/asset/all_public.yml +0 -112
  303. data/spec/fixtures/vcr_cassettes/entry/all_public.yml +0 -102
@@ -0,0 +1,98 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.contentful.com/spaces/facgnwwgj5fe/environments/delete_me
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-Contentful-User-Agent:
11
+ - sdk contentful-management.rb/1.10.1; platform ruby/2.4.1; os macOS/16;
12
+ Authorization:
13
+ - Bearer <ACCESS_TOKEN>
14
+ Content-Type:
15
+ - application/vnd.contentful.management.v1+json
16
+ Connection:
17
+ - close
18
+ Host:
19
+ - api.contentful.com
20
+ User-Agent:
21
+ - http.rb/2.2.2
22
+ response:
23
+ status:
24
+ code: 404
25
+ message: Not Found
26
+ headers:
27
+ Accept-Ranges:
28
+ - bytes
29
+ Access-Control-Allow-Headers:
30
+ - 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
31
+ Access-Control-Allow-Methods:
32
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
33
+ Access-Control-Allow-Origin:
34
+ - "*"
35
+ Access-Control-Expose-Headers:
36
+ - Etag
37
+ Access-Control-Max-Age:
38
+ - '1728000'
39
+ Cache-Control:
40
+ - max-age=0
41
+ Content-Type:
42
+ - application/vnd.contentful.management.v1+json
43
+ Date:
44
+ - Fri, 16 Mar 2018 12:30:01 GMT
45
+ Server:
46
+ - Contentful
47
+ Set-Cookie:
48
+ - _auth_new_session=584c5bdc71022d91299df753d017c16b; path=/; expires=Fri, 30
49
+ Mar 2018 12:30:01 -0000; secure; HttpOnly
50
+ - incap_ses_476_673446=yxhpfZqdiR1JBuZBuRebBsm4q1oAAAAAncaITjTO8Q5yyt/3ZgixCA==;
51
+ path=/; Domain=.contentful.com
52
+ - nlbi_673446=SJaLUkjkZTexmteN6lKYhQAAAAC5MTiPmz2HWWS8ObbnfJE4; path=/; Domain=.contentful.com
53
+ - visid_incap_673446=5QSYfeuITsyVdF12luaP88m4q1oAAAAAQUIPAAAAAADZmT6S93CBe4OJJ4IK2Jqh;
54
+ expires=Sat, 16 Mar 2019 10:06:37 GMT; path=/; Domain=.contentful.com
55
+ Strict-Transport-Security:
56
+ - max-age=15768000
57
+ X-Content-Type-Options:
58
+ - nosniff
59
+ X-Contentful-Ratelimit-Hour-Limit:
60
+ - '36000'
61
+ X-Contentful-Ratelimit-Hour-Remaining:
62
+ - '35994'
63
+ X-Contentful-Ratelimit-Reset:
64
+ - '0'
65
+ X-Contentful-Ratelimit-Second-Limit:
66
+ - '10'
67
+ X-Contentful-Ratelimit-Second-Remaining:
68
+ - '9'
69
+ X-Contentful-Request-Id:
70
+ - 6bb658f6723c1eecea56720678910ac1
71
+ X-Frame-Options:
72
+ - ALLOWALL
73
+ X-Xss-Protection:
74
+ - 1; mode=block
75
+ Content-Length:
76
+ - '157'
77
+ Connection:
78
+ - Close
79
+ X-Iinfo:
80
+ - 7-14668382-14668385 NNNN CT(108 108 0) RT(1521203400863 67) q(0 0 2 -1) r(5
81
+ 5) U5
82
+ X-Cdn:
83
+ - Incapsula
84
+ body:
85
+ encoding: ASCII-8BIT
86
+ string: |+
87
+ {
88
+ "requestId":"6bb658f6723c1eecea56720678910ac1",
89
+ "message":"The resource could not be found.",
90
+ "sys":{
91
+ "type":"Error",
92
+ "id":"NotFound"
93
+ }
94
+ }
95
+
96
+ http_version:
97
+ recorded_at: Fri, 16 Mar 2018 12:30:00 GMT
98
+ recorded_with: VCR 4.0.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.contentful.com/spaces/n6spjc167pc2/locales
5
+ uri: https://api.contentful.com/spaces/n6spjc167pc2/environments/master/locales
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://api.contentful.com/spaces/n6spjc167pc2/locales
5
+ uri: https://api.contentful.com/spaces/n6spjc167pc2/environments/master/locales
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: '{"name":"testLocalCreate","code":"bg"}'
@@ -35,7 +35,7 @@ http_interactions:
35
35
  X-Contentful-Request-Id:
36
36
  - 85f-1209864457
37
37
  Location:
38
- - https://api.contentful.com/spaces/n6spjc167pc2/locales/3Gg9sXSSADt1aXzdDt4MD4
38
+ - https://api.contentful.com/spaces/n6spjc167pc2/environments/master/locales/3Gg9sXSSADt1aXzdDt4MD4
39
39
  Etag:
40
40
  - '"4449fa1febea2acf910f6b29e6ea1e4e"'
41
41
  Accept-Ranges:
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://api.contentful.com/spaces/bjwq7b86vgmm/locales
5
+ uri: https://api.contentful.com/spaces/bjwq7b86vgmm/environments/master/locales
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: '{"name":"Spanish (Argentina)","code":"es-AR"}'
@@ -43,7 +43,7 @@ http_interactions:
43
43
  Etag:
44
44
  - '"fe56836a0221dc7e68461e69db4b98c1"'
45
45
  Location:
46
- - https://api.contentful.com/spaces/bjwq7b86vgmm/locales/2XSmmRfiRP04ucgYfxZUxu
46
+ - https://api.contentful.com/spaces/bjwq7b86vgmm/environments/master/locales/2XSmmRfiRP04ucgYfxZUxu
47
47
  Server:
48
48
  - nginx
49
49
  Status:
@@ -103,7 +103,7 @@ http_interactions:
103
103
  recorded_at: Mon, 25 Jan 2016 18:35:49 GMT
104
104
  - request:
105
105
  method: get
106
- uri: https://api.contentful.com/spaces/bjwq7b86vgmm/locales/2XSmmRfiRP04ucgYfxZUxu
106
+ uri: https://api.contentful.com/spaces/bjwq7b86vgmm/environments/master/locales/2XSmmRfiRP04ucgYfxZUxu
107
107
  body:
108
108
  encoding: US-ASCII
109
109
  string: ''
@@ -204,7 +204,7 @@ http_interactions:
204
204
  recorded_at: Mon, 25 Jan 2016 18:35:50 GMT
205
205
  - request:
206
206
  method: delete
207
- uri: https://api.contentful.com/spaces/bjwq7b86vgmm/locales/2XSmmRfiRP04ucgYfxZUxu
207
+ uri: https://api.contentful.com/spaces/bjwq7b86vgmm/environments/master/locales/2XSmmRfiRP04ucgYfxZUxu
208
208
  body:
209
209
  encoding: US-ASCII
210
210
  string: ''
@@ -261,7 +261,7 @@ http_interactions:
261
261
  recorded_at: Mon, 25 Jan 2016 18:35:51 GMT
262
262
  - request:
263
263
  method: get
264
- uri: https://api.contentful.com/spaces/bjwq7b86vgmm/locales/2XSmmRfiRP04ucgYfxZUxu
264
+ uri: https://api.contentful.com/spaces/bjwq7b86vgmm/environments/master/locales/2XSmmRfiRP04ucgYfxZUxu
265
265
  body:
266
266
  encoding: US-ASCII
267
267
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://api.contentful.com/spaces/facgnwwgj5fe/locales
5
+ uri: https://api.contentful.com/spaces/facgnwwgj5fe/environments/master/locales
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: '{"name":"Foo (BarBaz)","code":"foo-BB","optional":false,"fallbackCode":"en-US"}'
@@ -49,7 +49,7 @@ http_interactions:
49
49
  Etag:
50
50
  - W/"4d26ee0011d05dbd542384382c26de1a"
51
51
  Location:
52
- - https://api.contentful.com/spaces/facgnwwgj5fe/locales/4YnLeSNLymCAZ6eYwJmhzu
52
+ - https://api.contentful.com/spaces/facgnwwgj5fe/environments/master/locales/4YnLeSNLymCAZ6eYwJmhzu
53
53
  Server:
54
54
  - Contentful
55
55
  Strict-Transport-Security:
@@ -133,7 +133,7 @@ http_interactions:
133
133
  recorded_at: Fri, 16 Feb 2018 13:31:37 GMT
134
134
  - request:
135
135
  method: get
136
- uri: https://api.contentful.com/spaces/facgnwwgj5fe/locales/4YnLeSNLymCAZ6eYwJmhzu
136
+ uri: https://api.contentful.com/spaces/facgnwwgj5fe/environments/master/locales/4YnLeSNLymCAZ6eYwJmhzu
137
137
  body:
138
138
  encoding: US-ASCII
139
139
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.contentful.com/spaces/n6spjc167pc2/locales/0X5xcjckv6RMrd9Trae81p
5
+ uri: https://api.contentful.com/spaces/n6spjc167pc2/environments/master/locales/0X5xcjckv6RMrd9Trae81p
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.contentful.com/spaces/n6spjc167pc2/locales/0X5xcjckv6RMrd9Trae81p
5
+ uri: https://api.contentful.com/spaces/n6spjc167pc2/environments/master/locales/0X5xcjckv6RMrd9Trae81p
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.contentful.com/spaces/n6spjc167pc2/locales/not_exist
5
+ uri: https://api.contentful.com/spaces/n6spjc167pc2/environments/master/locales/not_exist
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.contentful.com/spaces/n6spjc167pc2/locales/0X5xcjckv6RMrd9Trae81p
5
+ uri: https://api.contentful.com/spaces/n6spjc167pc2/environments/master/locales/0X5xcjckv6RMrd9Trae81p
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.contentful.com/spaces/n5kqlvx9cnp1/locales/56eOu5hJwVNb4XfqsnQV97
5
+ uri: https://api.contentful.com/spaces/n5kqlvx9cnp1/environments/master/locales/56eOu5hJwVNb4XfqsnQV97
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.contentful.com/spaces/n5kqlvx9cnp1/locales/7IHOkHoMY1PpFp1VSVlCpH
5
+ uri: https://api.contentful.com/spaces/n5kqlvx9cnp1/environments/master/locales/7IHOkHoMY1PpFp1VSVlCpH
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.contentful.com/spaces/bfsvtul0c41g/locales/0ywTmGkjR0YhmbYaSmV1CS
5
+ uri: https://api.contentful.com/spaces/bfsvtul0c41g/environments/master/locales/0ywTmGkjR0YhmbYaSmV1CS
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -94,7 +94,7 @@ http_interactions:
94
94
  recorded_at: Tue, 19 Aug 2014 13:10:10 GMT
95
95
  - request:
96
96
  method: get
97
- uri: https://api.contentful.com/spaces/bfsvtul0c41g/locales/0ywTmGkjR0YhmbYaSmV1CS
97
+ uri: https://api.contentful.com/spaces/bfsvtul0c41g/environments/master/locales/0ywTmGkjR0YhmbYaSmV1CS
98
98
  body:
99
99
  encoding: US-ASCII
100
100
  string: ''
@@ -186,7 +186,7 @@ http_interactions:
186
186
  recorded_at: Tue, 19 Aug 2014 13:10:11 GMT
187
187
  - request:
188
188
  method: put
189
- uri: https://api.contentful.com/spaces/bfsvtul0c41g/locales/0ywTmGkjR0YhmbYaSmV1CS
189
+ uri: https://api.contentful.com/spaces/bfsvtul0c41g/environments/master/locales/0ywTmGkjR0YhmbYaSmV1CS
190
190
  body:
191
191
  encoding: UTF-8
192
192
  string: '{"name":"Polish PL"}'
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.contentful.com/spaces/bjwq7b86vgmm/locales/63274yOrU0s4XiJlAp1ZMQ
5
+ uri: https://api.contentful.com/spaces/bjwq7b86vgmm/environments/master/locales/63274yOrU0s4XiJlAp1ZMQ
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -103,7 +103,7 @@ http_interactions:
103
103
  recorded_at: Mon, 25 Jan 2016 18:22:48 GMT
104
104
  - request:
105
105
  method: put
106
- uri: https://api.contentful.com/spaces/bjwq7b86vgmm/locales/63274yOrU0s4XiJlAp1ZMQ
106
+ uri: https://api.contentful.com/spaces/bjwq7b86vgmm/environments/master/locales/63274yOrU0s4XiJlAp1ZMQ
107
107
  body:
108
108
  encoding: UTF-8
109
109
  string: '{"name":"Spanish","code":"es"}'
@@ -204,7 +204,7 @@ http_interactions:
204
204
  recorded_at: Mon, 25 Jan 2016 18:22:49 GMT
205
205
  - request:
206
206
  method: get
207
- uri: https://api.contentful.com/spaces/bjwq7b86vgmm/locales/63274yOrU0s4XiJlAp1ZMQ
207
+ uri: https://api.contentful.com/spaces/bjwq7b86vgmm/environments/master/locales/63274yOrU0s4XiJlAp1ZMQ
208
208
  body:
209
209
  encoding: US-ASCII
210
210
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.contentful.com/spaces/bjwq7b86vgmm/locales/63274yOrU0s4XiJlAp1ZMQ
5
+ uri: https://api.contentful.com/spaces/bjwq7b86vgmm/environments/master/locales/63274yOrU0s4XiJlAp1ZMQ
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -103,7 +103,7 @@ http_interactions:
103
103
  recorded_at: Mon, 25 Jan 2016 18:22:34 GMT
104
104
  - request:
105
105
  method: put
106
- uri: https://api.contentful.com/spaces/bjwq7b86vgmm/locales/63274yOrU0s4XiJlAp1ZMQ
106
+ uri: https://api.contentful.com/spaces/bjwq7b86vgmm/environments/master/locales/63274yOrU0s4XiJlAp1ZMQ
107
107
  body:
108
108
  encoding: UTF-8
109
109
  string: '{"code":"es"}'
@@ -204,7 +204,7 @@ http_interactions:
204
204
  recorded_at: Mon, 25 Jan 2016 18:22:35 GMT
205
205
  - request:
206
206
  method: get
207
- uri: https://api.contentful.com/spaces/bjwq7b86vgmm/locales/63274yOrU0s4XiJlAp1ZMQ
207
+ uri: https://api.contentful.com/spaces/bjwq7b86vgmm/environments/master/locales/63274yOrU0s4XiJlAp1ZMQ
208
208
  body:
209
209
  encoding: US-ASCII
210
210
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.contentful.com/spaces/bjwq7b86vgmm/locales/63274yOrU0s4XiJlAp1ZMQ
5
+ uri: https://api.contentful.com/spaces/bjwq7b86vgmm/environments/master/locales/63274yOrU0s4XiJlAp1ZMQ
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -103,7 +103,7 @@ http_interactions:
103
103
  recorded_at: Mon, 25 Jan 2016 18:18:32 GMT
104
104
  - request:
105
105
  method: put
106
- uri: https://api.contentful.com/spaces/bjwq7b86vgmm/locales/63274yOrU0s4XiJlAp1ZMQ
106
+ uri: https://api.contentful.com/spaces/bjwq7b86vgmm/environments/master/locales/63274yOrU0s4XiJlAp1ZMQ
107
107
  body:
108
108
  encoding: UTF-8
109
109
  string: '{"name":"Something"}'
@@ -204,7 +204,7 @@ http_interactions:
204
204
  recorded_at: Mon, 25 Jan 2016 18:18:34 GMT
205
205
  - request:
206
206
  method: get
207
- uri: https://api.contentful.com/spaces/bjwq7b86vgmm/locales/63274yOrU0s4XiJlAp1ZMQ
207
+ uri: https://api.contentful.com/spaces/bjwq7b86vgmm/environments/master/locales/63274yOrU0s4XiJlAp1ZMQ
208
208
  body:
209
209
  encoding: US-ASCII
210
210
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.contentful.com/spaces/facgnwwgj5fe/entries/5gQdVmPHKwIk2MumquYwOu/snapshots
5
+ uri: https://api.contentful.com/spaces/facgnwwgj5fe/environments/master/entries/5gQdVmPHKwIk2MumquYwOu/snapshots
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.contentful.com/spaces/facgnwwgj5fe/content_types/cat/snapshots
5
+ uri: https://api.contentful.com/spaces/facgnwwgj5fe/environments/master/content_types/cat/snapshots
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.contentful.com/spaces/facgnwwgj5fe/content_types/cat/snapshots/5bfy52PVk8HwBfXURLOsWJ
5
+ uri: https://api.contentful.com/spaces/facgnwwgj5fe/environments/master/content_types/cat/snapshots/5bfy52PVk8HwBfXURLOsWJ
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.contentful.com/spaces/facgnwwgj5fe/content_types/cat/snapshots/not_exist
5
+ uri: https://api.contentful.com/spaces/facgnwwgj5fe/environments/master/content_types/cat/snapshots/not_exist
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.contentful.com/spaces/facgnwwgj5fe/entries/5gQdVmPHKwIk2MumquYwOu/snapshots/6DglRQMMHWUnzi2F3RjFFo
5
+ uri: https://api.contentful.com/spaces/facgnwwgj5fe/environments/master/entries/5gQdVmPHKwIk2MumquYwOu/snapshots/6DglRQMMHWUnzi2F3RjFFo
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.contentful.com/spaces/facgnwwgj5fe/entries/5gQdVmPHKwIk2MumquYwOu/snapshots/not_exist
5
+ uri: https://api.contentful.com/spaces/facgnwwgj5fe/environments/master/entries/5gQdVmPHKwIk2MumquYwOu/snapshots/not_exist
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.contentful.com/spaces/facgnwwgj5fe/entries/5gQdVmPHKwIk2MumquYwOu/snapshots/6DglRQMMHWUnzi2F3RjFFo
5
+ uri: https://api.contentful.com/spaces/facgnwwgj5fe/environments/master/entries/5gQdVmPHKwIk2MumquYwOu/snapshots/6DglRQMMHWUnzi2F3RjFFo
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -164,7 +164,7 @@ http_interactions:
164
164
  recorded_at: Wed, 15 Mar 2017 14:15:11 GMT
165
165
  - request:
166
166
  method: get
167
- uri: https://api.contentful.com/spaces/facgnwwgj5fe/content_types/test
167
+ uri: https://api.contentful.com/spaces/facgnwwgj5fe/environments/master/content_types/test
168
168
  body:
169
169
  encoding: US-ASCII
170
170
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.contentful.com/spaces/arqlnkt58eul/extensions
5
+ uri: https://api.contentful.com/spaces/arqlnkt58eul/environments/master/extensions
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''