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
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.contentful.com/spaces/yr5m0jky5hsh/entries/4Rouux8SoUCKwkyCq2I0E0
5
+ uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/entries/4Rouux8SoUCKwkyCq2I0E0
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -119,7 +119,7 @@ http_interactions:
119
119
  recorded_at: Wed, 30 Jul 2014 12:58:08 GMT
120
120
  - request:
121
121
  method: put
122
- uri: https://api.contentful.com/spaces/yr5m0jky5hsh/entries/4Rouux8SoUCKwkyCq2I0E0/archived
122
+ uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/entries/4Rouux8SoUCKwkyCq2I0E0/archived
123
123
  body:
124
124
  encoding: US-ASCII
125
125
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.contentful.com/spaces/bfsvtul0c41g/entries?content_type=category_content_type
5
+ uri: https://api.contentful.com/spaces/bfsvtul0c41g/environments/master/entries?content_type=category_content_type
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/ene4qtp2sh7u/content_types/5BHZB1vi4ooq4wKcmA8e2c
5
+ uri: https://api.contentful.com/spaces/ene4qtp2sh7u/environments/master/content_types/5BHZB1vi4ooq4wKcmA8e2c
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -188,7 +188,7 @@ http_interactions:
188
188
  recorded_at: Mon, 15 Sep 2014 09:10:54 GMT
189
189
  - request:
190
190
  method: get
191
- uri: https://api.contentful.com/spaces/ene4qtp2sh7u/assets/2oNoT3vSAs82SOIQmKe0KG
191
+ uri: https://api.contentful.com/spaces/ene4qtp2sh7u/environments/master/assets/2oNoT3vSAs82SOIQmKe0KG
192
192
  body:
193
193
  encoding: US-ASCII
194
194
  string: ''
@@ -290,7 +290,7 @@ http_interactions:
290
290
  recorded_at: Mon, 15 Sep 2014 09:10:54 GMT
291
291
  - request:
292
292
  method: get
293
- uri: https://api.contentful.com/spaces/ene4qtp2sh7u/entries/60zYC7nY9GcKGiCYwAs4wm
293
+ uri: https://api.contentful.com/spaces/ene4qtp2sh7u/environments/master/entries/60zYC7nY9GcKGiCYwAs4wm
294
294
  body:
295
295
  encoding: US-ASCII
296
296
  string: ''
@@ -396,7 +396,7 @@ http_interactions:
396
396
  recorded_at: Mon, 15 Sep 2014 09:10:55 GMT
397
397
  - request:
398
398
  method: post
399
- uri: https://api.contentful.com/spaces/ene4qtp2sh7u/entries
399
+ uri: https://api.contentful.com/spaces/ene4qtp2sh7u/environments/master/entries
400
400
  body:
401
401
  encoding: UTF-8
402
402
  string: '{"fields":{"name":{"en-US":"Test name"},"number":{"en-US":30},"float1":{"en-US":1.1},"boolean":{"en-US":true},"date":{"en-US":"2000-07-12T11:11:00+02:00"},"time":{"en-US":"2000-07-12T11:11:00+02:00"},"location":{"en-US":{"lat":22.44,"lon":33.33}},"file":{"en-US":{"sys":{"type":"Link","linkType":"Asset","id":"2oNoT3vSAs82SOIQmKe0KG"}}},"image":{"en-US":{"sys":{"type":"Link","linkType":"Asset","id":"2oNoT3vSAs82SOIQmKe0KG"}}},"array":{"en-US":["PL","USD","XX"]},"entry":{"en-US":{"sys":{"type":"Link","linkType":"Entry","id":"60zYC7nY9GcKGiCYwAs4wm"}}},"entries":{"en-US":[{"sys":{"type":"Link","linkType":"Entry","id":"60zYC7nY9GcKGiCYwAs4wm"}},{"sys":{"type":"Link","linkType":"Entry","id":"60zYC7nY9GcKGiCYwAs4wm"}}]},"object_json":{"en-US":{"test":{"@type":"Codequest"}}}}}'
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.contentful.com/spaces/yr5m0jky5hsh/assets/codequest_id_test_custom
5
+ uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/assets/codequest_id_test_custom
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -109,7 +109,7 @@ http_interactions:
109
109
  recorded_at: Thu, 31 Jul 2014 13:48:31 GMT
110
110
  - request:
111
111
  method: get
112
- uri: https://api.contentful.com/spaces/yr5m0jky5hsh/content_types/5DSpuKrl04eMAGQoQckeIq
112
+ uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/content_types/5DSpuKrl04eMAGQoQckeIq
113
113
  body:
114
114
  encoding: US-ASCII
115
115
  string: ''
@@ -298,7 +298,7 @@ http_interactions:
298
298
  recorded_at: Thu, 31 Jul 2014 13:48:32 GMT
299
299
  - request:
300
300
  method: post
301
- uri: https://api.contentful.com/spaces/yr5m0jky5hsh/entries
301
+ uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/entries
302
302
  body:
303
303
  encoding: UTF-8
304
304
  string: '{"fields":{"name":{"en-US":"OneAsset"},"asset":{"en-US":{"sys":{"type":"Link","linkType":"Asset","id":"codequest_id_test_custom"}}}}}'
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.contentful.com/spaces/yr5m0jky5hsh/assets/codequest_id_test_custom
5
+ uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/assets/codequest_id_test_custom
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -109,7 +109,7 @@ http_interactions:
109
109
  recorded_at: Fri, 01 Aug 2014 08:55:42 GMT
110
110
  - request:
111
111
  method: get
112
- uri: https://api.contentful.com/spaces/yr5m0jky5hsh/content_types/5DSpuKrl04eMAGQoQckeIq
112
+ uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/content_types/5DSpuKrl04eMAGQoQckeIq
113
113
  body:
114
114
  encoding: US-ASCII
115
115
  string: ''
@@ -298,7 +298,7 @@ http_interactions:
298
298
  recorded_at: Fri, 01 Aug 2014 08:55:42 GMT
299
299
  - request:
300
300
  method: post
301
- uri: https://api.contentful.com/spaces/yr5m0jky5hsh/entries
301
+ uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/entries
302
302
  body:
303
303
  encoding: UTF-8
304
304
  string: '{"fields":{"name":{"en-US":"multiAssets"},"assets":{"en-US":[{"sys":{"type":"Link","linkType":"Asset","id":"codequest_id_test_custom"}},{"sys":{"type":"Link","linkType":"Asset","id":"codequest_id_test_custom"}},{"sys":{"type":"Link","linkType":"Asset","id":"codequest_id_test_custom"}}]}}}'
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.contentful.com/spaces/yr5m0jky5hsh/content_types/5DSpuKrl04eMAGQoQckeIq
5
+ uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/content_types/5DSpuKrl04eMAGQoQckeIq
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -191,7 +191,7 @@ http_interactions:
191
191
  recorded_at: Wed, 06 Aug 2014 13:13:40 GMT
192
192
  - request:
193
193
  method: put
194
- uri: https://api.contentful.com/spaces/yr5m0jky5hsh/entries/custom_id
194
+ uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/entries/custom_id
195
195
  body:
196
196
  encoding: UTF-8
197
197
  string: '{"fields":{"name":{"en-US":"Custom Id"}}}'
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.contentful.com/spaces/yr5m0jky5hsh/entries/1d1QDYzeiyWmgqQYysae8u
5
+ uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/entries/1d1QDYzeiyWmgqQYysae8u
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -117,7 +117,7 @@ http_interactions:
117
117
  recorded_at: Thu, 31 Jul 2014 06:39:11 GMT
118
118
  - request:
119
119
  method: get
120
- uri: https://api.contentful.com/spaces/yr5m0jky5hsh/content_types/5DSpuKrl04eMAGQoQckeIq
120
+ uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/content_types/5DSpuKrl04eMAGQoQckeIq
121
121
  body:
122
122
  encoding: US-ASCII
123
123
  string: ''
@@ -294,7 +294,7 @@ http_interactions:
294
294
  recorded_at: Thu, 31 Jul 2014 06:39:11 GMT
295
295
  - request:
296
296
  method: post
297
- uri: https://api.contentful.com/spaces/yr5m0jky5hsh/entries
297
+ uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/entries
298
298
  body:
299
299
  encoding: UTF-8
300
300
  string: '{"fields":{"name":{"en-US":"EntryWithEntries"},"age":{"en-US":20},"entries":{"en-US":[{"sys":{"type":"Link","linkType":"Entry","id":"1d1QDYzeiyWmgqQYysae8u"}},{"sys":{"type":"Link","linkType":"Entry","id":"1d1QDYzeiyWmgqQYysae8u"}},{"sys":{"type":"Link","linkType":"Entry","id":"1d1QDYzeiyWmgqQYysae8u"}}]}}}'
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.contentful.com/spaces/yr5m0jky5hsh/entries/4o6ghKSmSko4i828YCYaEo
5
+ uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/entries/4o6ghKSmSko4i828YCYaEo
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -208,7 +208,7 @@ http_interactions:
208
208
  recorded_at: Thu, 31 Jul 2014 06:36:07 GMT
209
209
  - request:
210
210
  method: get
211
- uri: https://api.contentful.com/spaces/yr5m0jky5hsh/content_types/5DSpuKrl04eMAGQoQckeIq
211
+ uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/content_types/5DSpuKrl04eMAGQoQckeIq
212
212
  body:
213
213
  encoding: US-ASCII
214
214
  string: ''
@@ -385,7 +385,7 @@ http_interactions:
385
385
  recorded_at: Thu, 31 Jul 2014 06:36:07 GMT
386
386
  - request:
387
387
  method: post
388
- uri: https://api.contentful.com/spaces/yr5m0jky5hsh/entries
388
+ uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/entries
389
389
  body:
390
390
  encoding: UTF-8
391
391
  string: '{"fields":{"name":{"en-US":"EntryWithEntry"},"age":{"en-US":20},"entry":{"en-US":{"sys":{"type":"Link","linkType":"Entry","id":"4o6ghKSmSko4i828YCYaEo"}}}}}'
@@ -90,7 +90,7 @@ http_interactions:
90
90
  recorded_at: Thu, 19 Nov 2015 14:13:45 GMT
91
91
  - request:
92
92
  method: get
93
- uri: https://api.contentful.com/spaces/bbukbffokvih/content_types
93
+ uri: https://api.contentful.com/spaces/bbukbffokvih/environments/master/content_types
94
94
  body:
95
95
  encoding: US-ASCII
96
96
  string: ''
@@ -221,7 +221,7 @@ http_interactions:
221
221
  recorded_at: Thu, 19 Nov 2015 14:13:46 GMT
222
222
  - request:
223
223
  method: get
224
- uri: https://api.contentful.com/spaces/bbukbffokvih/content_types
224
+ uri: https://api.contentful.com/spaces/bbukbffokvih/environments/master/content_types
225
225
  body:
226
226
  encoding: US-ASCII
227
227
  string: ''
@@ -352,7 +352,7 @@ http_interactions:
352
352
  recorded_at: Thu, 19 Nov 2015 14:13:47 GMT
353
353
  - request:
354
354
  method: post
355
- uri: https://api.contentful.com/spaces/bbukbffokvih/entries
355
+ uri: https://api.contentful.com/spaces/bbukbffokvih/environments/master/entries
356
356
  body:
357
357
  encoding: UTF-8
358
358
  string: '{"fields":{}}'
@@ -451,7 +451,7 @@ http_interactions:
451
451
  recorded_at: Thu, 19 Nov 2015 14:13:48 GMT
452
452
  - request:
453
453
  method: put
454
- uri: https://api.contentful.com/spaces/bbukbffokvih/entries/VeLgaBp6M0kqSww4Wkg2
454
+ uri: https://api.contentful.com/spaces/bbukbffokvih/environments/master/entries/VeLgaBp6M0kqSww4Wkg2
455
455
  body:
456
456
  encoding: UTF-8
457
457
  string: '{"fields":{}}'
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.contentful.com/spaces/yr5m0jky5hsh/content_types/5DSpuKrl04eMAGQoQckeIq
5
+ uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/content_types/5DSpuKrl04eMAGQoQckeIq
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -154,7 +154,7 @@ http_interactions:
154
154
  recorded_at: Wed, 30 Jul 2014 13:18:00 GMT
155
155
  - request:
156
156
  method: post
157
- uri: https://api.contentful.com/spaces/yr5m0jky5hsh/entries
157
+ uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/entries
158
158
  body:
159
159
  encoding: UTF-8
160
160
  string: '{"fields":{"name":{"en-US":"Tom Handy"},"age":{"en-US":30},"city":{"en-US":{"lat":22.44,"lon":33.33}}}}'
@@ -82,7 +82,7 @@ http_interactions:
82
82
  recorded_at: Sun, 17 Aug 2014 13:17:13 GMT
83
83
  - request:
84
84
  method: get
85
- uri: https://api.contentful.com/spaces/s37a4pe35l1x/content_types
85
+ uri: https://api.contentful.com/spaces/s37a4pe35l1x/environments/master/content_types
86
86
  body:
87
87
  encoding: US-ASCII
88
88
  string: ''
@@ -296,7 +296,7 @@ http_interactions:
296
296
  recorded_at: Sun, 17 Aug 2014 13:17:14 GMT
297
297
  - request:
298
298
  method: get
299
- uri: https://api.contentful.com/spaces/s37a4pe35l1x/content_types/category_content_type
299
+ uri: https://api.contentful.com/spaces/s37a4pe35l1x/environments/master/content_types/category_content_type
300
300
  body:
301
301
  encoding: US-ASCII
302
302
  string: ''
@@ -409,7 +409,7 @@ http_interactions:
409
409
  recorded_at: Sun, 17 Aug 2014 13:17:14 GMT
410
410
  - request:
411
411
  method: post
412
- uri: https://api.contentful.com/spaces/s37a4pe35l1x/entries
412
+ uri: https://api.contentful.com/spaces/s37a4pe35l1x/environments/master/entries
413
413
  body:
414
414
  encoding: UTF-8
415
415
  string: '{"fields":{"name":{"pl-PL":"Create test"},"description":{"pl-PL":"Test
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.contentful.com/spaces/yr5m0jky5hsh/content_types/5DSpuKrl04eMAGQoQckeIq
5
+ uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/content_types/5DSpuKrl04eMAGQoQckeIq
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -169,7 +169,7 @@ http_interactions:
169
169
  recorded_at: Wed, 30 Jul 2014 13:34:25 GMT
170
170
  - request:
171
171
  method: post
172
- uri: https://api.contentful.com/spaces/yr5m0jky5hsh/entries
172
+ uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/entries
173
173
  body:
174
174
  encoding: UTF-8
175
175
  string: '{"fields":{"name":{"en-US":"SymbolTest"},"symbols":{"en-US":["USD","PL","XX"]}}}'
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.contentful.com/spaces/yr5m0jky5hsh/entries/3U7JqGuVzOWIimU40mKeem
5
+ uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/entries/3U7JqGuVzOWIimU40mKeem
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -115,7 +115,7 @@ http_interactions:
115
115
  recorded_at: Thu, 31 Jul 2014 06:34:29 GMT
116
116
  - request:
117
117
  method: delete
118
- uri: https://api.contentful.com/spaces/yr5m0jky5hsh/entries/3U7JqGuVzOWIimU40mKeem
118
+ uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/entries/3U7JqGuVzOWIimU40mKeem
119
119
  body:
120
120
  encoding: US-ASCII
121
121
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.contentful.com/spaces/yr5m0jky5hsh/entries/3U7JqGuVzOWIimU40mKeem
5
+ uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/entries/3U7JqGuVzOWIimU40mKeem
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -106,7 +106,7 @@ http_interactions:
106
106
  recorded_at: Thu, 31 Jul 2014 06:34:38 GMT
107
107
  - request:
108
108
  method: delete
109
- uri: https://api.contentful.com/spaces/yr5m0jky5hsh/entries/3U7JqGuVzOWIimU40mKeem
109
+ uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/entries/3U7JqGuVzOWIimU40mKeem
110
110
  body:
111
111
  encoding: US-ASCII
112
112
  string: ''
@@ -111,7 +111,7 @@ http_interactions:
111
111
  recorded_at: Fri, 14 Oct 2016 12:12:24 GMT
112
112
  - request:
113
113
  method: get
114
- uri: https://api.contentful.com/spaces/wqjq16zu9s8b/content_types
114
+ uri: https://api.contentful.com/spaces/wqjq16zu9s8b/environments/master/content_types
115
115
  body:
116
116
  encoding: US-ASCII
117
117
  string: ''
@@ -257,7 +257,7 @@ http_interactions:
257
257
  recorded_at: Fri, 14 Oct 2016 12:12:27 GMT
258
258
  - request:
259
259
  method: get
260
- uri: https://api.contentful.com/spaces/wqjq16zu9s8b/entries/6HSlhD1o3eqkyEWWuMQYyU
260
+ uri: https://api.contentful.com/spaces/wqjq16zu9s8b/environments/master/entries/6HSlhD1o3eqkyEWWuMQYyU
261
261
  body:
262
262
  encoding: US-ASCII
263
263
  string: ''
@@ -392,7 +392,7 @@ http_interactions:
392
392
  recorded_at: Fri, 14 Oct 2016 12:12:28 GMT
393
393
  - request:
394
394
  method: put
395
- uri: https://api.contentful.com/spaces/wqjq16zu9s8b/entries/6HSlhD1o3eqkyEWWuMQYyU
395
+ uri: https://api.contentful.com/spaces/wqjq16zu9s8b/environments/master/entries/6HSlhD1o3eqkyEWWuMQYyU
396
396
  body:
397
397
  encoding: UTF-8
398
398
  string: '{"fields":{"name":{"en-US":"Foo","es":"Bar"}}}'
@@ -88,7 +88,7 @@ http_interactions:
88
88
  recorded_at: Thu, 11 Jun 2015 13:20:35 GMT
89
89
  - request:
90
90
  method: get
91
- uri: https://api.contentful.com/spaces/yr5m0jky5hsh/content_types
91
+ uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/content_types
92
92
  body:
93
93
  encoding: US-ASCII
94
94
  string: ''
@@ -213,7 +213,7 @@ http_interactions:
213
213
  recorded_at: Thu, 11 Jun 2015 13:20:39 GMT
214
214
  - request:
215
215
  method: get
216
- uri: https://api.contentful.com/spaces/yr5m0jky5hsh/entries/4Rouux8SoUCKwkyCq2I0E0
216
+ uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/entries/4Rouux8SoUCKwkyCq2I0E0
217
217
  body:
218
218
  encoding: US-ASCII
219
219
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.contentful.com/spaces/yr5m0jky5hsh/entries/4Rouux8SoUCKwkyCq2I0E0
5
+ uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/entries/4Rouux8SoUCKwkyCq2I0E0
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/yr5m0jky5hsh/entries/not_exist
5
+ uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/entries/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/u2viwgfeal0o/content_types/someType
5
+ uri: https://api.contentful.com/spaces/u2viwgfeal0o/environments/master/content_types/someType
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -121,7 +121,7 @@ http_interactions:
121
121
  recorded_at: Tue, 19 Jan 2016 13:48:47 GMT
122
122
  - request:
123
123
  method: put
124
- uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/issue61_1
124
+ uri: https://api.contentful.com/spaces/u2viwgfeal0o/environments/master/entries/issue61_1
125
125
  body:
126
126
  encoding: UTF-8
127
127
  string: '{"fields":{"value":{"en-GB":"hello"}}}'
@@ -224,7 +224,7 @@ http_interactions:
224
224
  recorded_at: Tue, 19 Jan 2016 13:48:48 GMT
225
225
  - request:
226
226
  method: put
227
- uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/issue61_1
227
+ uri: https://api.contentful.com/spaces/u2viwgfeal0o/environments/master/entries/issue61_1
228
228
  body:
229
229
  encoding: UTF-8
230
230
  string: '{"fields":{"value":{"en-GB":"goodbye"}}}'
@@ -327,7 +327,7 @@ http_interactions:
327
327
  recorded_at: Tue, 19 Jan 2016 13:48:49 GMT
328
328
  - request:
329
329
  method: put
330
- uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/issue61_1/published
330
+ uri: https://api.contentful.com/spaces/u2viwgfeal0o/environments/master/entries/issue61_1/published
331
331
  body:
332
332
  encoding: US-ASCII
333
333
  string: ''
@@ -443,7 +443,7 @@ http_interactions:
443
443
  recorded_at: Tue, 19 Jan 2016 13:48:50 GMT
444
444
  - request:
445
445
  method: get
446
- uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/issue61_1
446
+ uri: https://api.contentful.com/spaces/u2viwgfeal0o/environments/master/entries/issue61_1
447
447
  body:
448
448
  encoding: US-ASCII
449
449
  string: ''
@@ -557,7 +557,7 @@ http_interactions:
557
557
  recorded_at: Tue, 19 Jan 2016 13:48:50 GMT
558
558
  - request:
559
559
  method: delete
560
- uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/issue61_1
560
+ uri: https://api.contentful.com/spaces/u2viwgfeal0o/environments/master/entries/issue61_1
561
561
  body:
562
562
  encoding: US-ASCII
563
563
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.contentful.com/spaces/u2viwgfeal0o/content_types/someType
5
+ uri: https://api.contentful.com/spaces/u2viwgfeal0o/environments/master/content_types/someType
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -121,7 +121,7 @@ http_interactions:
121
121
  recorded_at: Tue, 19 Jan 2016 13:48:52 GMT
122
122
  - request:
123
123
  method: put
124
- uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/issue61_2
124
+ uri: https://api.contentful.com/spaces/u2viwgfeal0o/environments/master/entries/issue61_2
125
125
  body:
126
126
  encoding: UTF-8
127
127
  string: '{"fields":{}}'
@@ -220,7 +220,7 @@ http_interactions:
220
220
  recorded_at: Tue, 19 Jan 2016 13:48:53 GMT
221
221
  - request:
222
222
  method: put
223
- uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/issue61_2
223
+ uri: https://api.contentful.com/spaces/u2viwgfeal0o/environments/master/entries/issue61_2
224
224
  body:
225
225
  encoding: UTF-8
226
226
  string: '{"fields":{"value":{"en-GB":"goodbye"}}}'
@@ -323,7 +323,7 @@ http_interactions:
323
323
  recorded_at: Tue, 19 Jan 2016 13:48:54 GMT
324
324
  - request:
325
325
  method: put
326
- uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/issue61_2/published
326
+ uri: https://api.contentful.com/spaces/u2viwgfeal0o/environments/master/entries/issue61_2/published
327
327
  body:
328
328
  encoding: US-ASCII
329
329
  string: ''
@@ -439,7 +439,7 @@ http_interactions:
439
439
  recorded_at: Tue, 19 Jan 2016 13:48:55 GMT
440
440
  - request:
441
441
  method: get
442
- uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/issue61_2
442
+ uri: https://api.contentful.com/spaces/u2viwgfeal0o/environments/master/entries/issue61_2
443
443
  body:
444
444
  encoding: US-ASCII
445
445
  string: ''
@@ -553,7 +553,7 @@ http_interactions:
553
553
  recorded_at: Tue, 19 Jan 2016 13:48:55 GMT
554
554
  - request:
555
555
  method: delete
556
- uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/issue61_2
556
+ uri: https://api.contentful.com/spaces/u2viwgfeal0o/environments/master/entries/issue61_2
557
557
  body:
558
558
  encoding: US-ASCII
559
559
  string: ''