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.
- checksums.yaml +5 -5
- data/.rubocop.yml +3 -0
- data/CHANGELOG.md +48 -0
- data/README.md +92 -50
- data/lib/contentful/management/api_key.rb +25 -2
- data/lib/contentful/management/array.rb +3 -3
- data/lib/contentful/management/asset.rb +13 -8
- data/lib/contentful/management/client.rb +73 -60
- data/lib/contentful/management/client_api_key_methods_factory.rb +8 -0
- data/lib/contentful/management/client_asset_methods_factory.rb +0 -2
- data/lib/contentful/management/client_association_all_published_method_factory.rb +2 -3
- data/lib/contentful/management/client_association_methods_factory.rb +9 -9
- data/lib/contentful/management/client_content_type_methods_factory.rb +8 -2
- data/lib/contentful/management/client_editor_interface_methods_factory.rb +12 -6
- data/lib/contentful/management/client_entry_methods_factory.rb +1 -3
- data/lib/contentful/management/client_environment_methods_factory.rb +59 -0
- data/lib/contentful/management/client_organization_methods_factory.rb +1 -1
- data/lib/contentful/management/client_personal_access_tokens_methods_factory.rb +3 -3
- data/lib/contentful/management/client_role_methods_factory.rb +8 -0
- data/lib/contentful/management/client_snapshot_methods_factory.rb +8 -6
- data/lib/contentful/management/client_space_methods_factory.rb +2 -6
- data/lib/contentful/management/client_upload_methods_factory.rb +8 -0
- data/lib/contentful/management/client_user_methods_factory.rb +1 -1
- data/lib/contentful/management/client_webhook_call_methods_factory.rb +11 -6
- data/lib/contentful/management/client_webhook_health_methods_factory.rb +2 -2
- data/lib/contentful/management/client_webhook_methods_factory.rb +8 -0
- data/lib/contentful/management/content_type.rb +9 -7
- data/lib/contentful/management/content_type_editor_interface_methods_factory.rb +7 -3
- data/lib/contentful/management/content_type_entry_methods_factory.rb +2 -2
- data/lib/contentful/management/content_type_snapshot_methods_factory.rb +16 -2
- data/lib/contentful/management/dynamic_entry.rb +1 -1
- data/lib/contentful/management/editor_interface.rb +14 -6
- data/lib/contentful/management/entry.rb +12 -10
- data/lib/contentful/management/entry_association_methods_factory.rb +2 -2
- data/lib/contentful/management/environment.rb +138 -0
- data/lib/contentful/management/environment_asset_methods_factory.rb +11 -0
- data/lib/contentful/management/environment_association_methods_factory.rb +42 -0
- data/lib/contentful/management/environment_content_type_methods_factory.rb +11 -0
- data/lib/contentful/management/environment_editor_interface_methods_factory.rb +15 -0
- data/lib/contentful/management/environment_entry_methods_factory.rb +11 -0
- data/lib/contentful/management/environment_locale_methods_factory.rb +11 -0
- data/lib/contentful/management/environment_ui_extension_methods_factory.rb +11 -0
- data/lib/contentful/management/field.rb +3 -3
- data/lib/contentful/management/file.rb +2 -2
- data/lib/contentful/management/link.rb +21 -7
- data/lib/contentful/management/locale.rb +4 -2
- data/lib/contentful/management/organization.rb +1 -1
- data/lib/contentful/management/personal_access_token.rb +2 -2
- data/lib/contentful/management/resource.rb +34 -13
- data/lib/contentful/management/resource/all_published.rb +2 -2
- data/lib/contentful/management/resource/archiver.rb +12 -2
- data/lib/contentful/management/resource/environment_aware.rb +13 -0
- data/lib/contentful/management/resource/publisher.rb +12 -2
- data/lib/contentful/management/resource/refresher.rb +1 -1
- data/lib/contentful/management/resource_builder.rb +16 -14
- data/lib/contentful/management/response.rb +1 -1
- data/lib/contentful/management/role.rb +29 -2
- data/lib/contentful/management/snapshot.rb +13 -7
- data/lib/contentful/management/space.rb +14 -93
- data/lib/contentful/management/space_association_methods_factory.rb +1 -1
- data/lib/contentful/management/{space_locale_methods_factory.rb → space_environment_methods_factory.rb} +2 -6
- data/lib/contentful/management/space_membership.rb +3 -3
- data/lib/contentful/management/ui_extension.rb +4 -2
- data/lib/contentful/management/upload.rb +24 -1
- data/lib/contentful/management/user.rb +4 -4
- data/lib/contentful/management/validation.rb +5 -5
- data/lib/contentful/management/version.rb +1 -1
- data/lib/contentful/management/webhook.rb +26 -3
- data/lib/contentful/management/webhook_call.rb +8 -8
- data/lib/contentful/management/webhook_health.rb +2 -2
- data/spec/fixtures/vcr_cassettes/asset/143_assets_next_page.yml +2 -2
- data/spec/fixtures/vcr_cassettes/asset/all.yml +1 -1
- data/spec/fixtures/vcr_cassettes/asset/archive.yml +2 -2
- data/spec/fixtures/vcr_cassettes/asset/archive_published.yml +2 -2
- data/spec/fixtures/vcr_cassettes/asset/archived_false.yml +2 -2
- data/spec/fixtures/vcr_cassettes/asset/archived_true.yml +2 -2
- data/spec/fixtures/vcr_cassettes/asset/create.yml +2 -2
- data/spec/fixtures/vcr_cassettes/asset/create_with_already_used_id.yml +1 -1
- data/spec/fixtures/vcr_cassettes/asset/create_with_custom_id.yml +2 -2
- data/spec/fixtures/vcr_cassettes/asset/create_with_locale.yml +2 -2
- data/spec/fixtures/vcr_cassettes/asset/destroy.yml +2 -2
- data/spec/fixtures/vcr_cassettes/asset/destroy_published.yml +2 -2
- data/spec/fixtures/vcr_cassettes/asset/find.yml +1 -1
- data/spec/fixtures/vcr_cassettes/asset/find_not_found.yml +1 -1
- data/spec/fixtures/vcr_cassettes/asset/limited_assets_next_page.yml +2 -2
- data/spec/fixtures/vcr_cassettes/asset/locale.yml +1 -1
- data/spec/fixtures/vcr_cassettes/asset/process.yml +2 -2
- data/spec/fixtures/vcr_cassettes/asset/publish.yml +2 -2
- data/spec/fixtures/vcr_cassettes/asset/publish_after_create.yml +3 -3
- data/spec/fixtures/vcr_cassettes/asset/publish_already_published.yml +2 -2
- data/spec/fixtures/vcr_cassettes/asset/published_false.yml +2 -2
- data/spec/fixtures/vcr_cassettes/asset/published_true.yml +2 -2
- data/spec/fixtures/vcr_cassettes/asset/reload.yml +4 -4
- data/spec/fixtures/vcr_cassettes/asset/reload_with_fields.yml +2 -2
- data/spec/fixtures/vcr_cassettes/asset/save_update.yml +2 -2
- data/spec/fixtures/vcr_cassettes/asset/select_operator.yml +1 -1
- data/spec/fixtures/vcr_cassettes/asset/set_locale.yml +1 -1
- data/spec/fixtures/vcr_cassettes/asset/unarchive.yml +2 -2
- data/spec/fixtures/vcr_cassettes/asset/unarchive_already_unarchive.yml +2 -2
- data/spec/fixtures/vcr_cassettes/asset/unarchive_already_unarchived.yml +2 -2
- data/spec/fixtures/vcr_cassettes/asset/unpublish.yml +2 -2
- data/spec/fixtures/vcr_cassettes/asset/unpublish_already_unpublished.yml +2 -2
- data/spec/fixtures/vcr_cassettes/asset/update_file.yml +2 -2
- data/spec/fixtures/vcr_cassettes/asset/update_to_specified_locale.yml +2 -2
- data/spec/fixtures/vcr_cassettes/asset/update_with_default_locale_without_file.yml +2 -2
- data/spec/fixtures/vcr_cassettes/content_type/activate.yml +2 -2
- data/spec/fixtures/vcr_cassettes/content_type/activate_with_invalid_version.yml +2 -2
- data/spec/fixtures/vcr_cassettes/content_type/activated_false.yml +2 -2
- data/spec/fixtures/vcr_cassettes/content_type/activated_true.yml +2 -2
- data/spec/fixtures/vcr_cassettes/content_type/all.yml +1 -1
- data/spec/fixtures/vcr_cassettes/content_type/all_public.yml +1 -1
- data/spec/fixtures/vcr_cassettes/content_type/create.yml +1 -1
- data/spec/fixtures/vcr_cassettes/content_type/create_content_type_with_id.yml +1 -1
- data/spec/fixtures/vcr_cassettes/content_type/create_with_Array_field.yml +1 -1
- data/spec/fixtures/vcr_cassettes/content_type/create_with_Boolean_field.yml +1 -1
- data/spec/fixtures/vcr_cassettes/content_type/create_with_Date_field.yml +1 -1
- data/spec/fixtures/vcr_cassettes/content_type/create_with_Integer_field.yml +1 -1
- data/spec/fixtures/vcr_cassettes/content_type/create_with_Link_field.yml +1 -1
- data/spec/fixtures/vcr_cassettes/content_type/create_with_Location_field.yml +1 -1
- data/spec/fixtures/vcr_cassettes/content_type/create_with_Number_field.yml +1 -1
- data/spec/fixtures/vcr_cassettes/content_type/create_with_Object_field.yml +1 -1
- data/spec/fixtures/vcr_cassettes/content_type/create_with_Symbol_field.yml +1 -1
- data/spec/fixtures/vcr_cassettes/content_type/create_with_Text_field.yml +1 -1
- data/spec/fixtures/vcr_cassettes/content_type/deactivate.yml +2 -2
- data/spec/fixtures/vcr_cassettes/content_type/deactivate_already_deactivated.yml +2 -2
- data/spec/fixtures/vcr_cassettes/content_type/deactivate_with_entries.yml +2 -2
- data/spec/fixtures/vcr_cassettes/content_type/deactivate_with_version_change.yml +2 -2
- data/spec/fixtures/vcr_cassettes/content_type/destroy.yml +2 -2
- data/spec/fixtures/vcr_cassettes/content_type/destroy_activated.yml +2 -2
- data/spec/fixtures/vcr_cassettes/content_type/entry/all.yml +4 -4
- data/spec/fixtures/vcr_cassettes/content_type/entry/create.yml +4 -4
- data/spec/fixtures/vcr_cassettes/content_type/entry/create_only_with_localized_fields.yml +2 -2
- data/spec/fixtures/vcr_cassettes/content_type/entry/create_to_single_locale_only_with_localized_fields.yml +2 -2
- data/spec/fixtures/vcr_cassettes/content_type/entry/create_with_camel_case_id_to_multiple_locales.yml +2 -2
- data/spec/fixtures/vcr_cassettes/content_type/entry/create_with_entries.yml +3 -3
- data/spec/fixtures/vcr_cassettes/content_type/entry/create_with_entries_for_multiple_locales.yml +9 -9
- data/spec/fixtures/vcr_cassettes/content_type/entry/create_with_multiple_locales.yml +2 -2
- data/spec/fixtures/vcr_cassettes/content_type/entry/update_only_with_localized_fields.yml +3 -3
- data/spec/fixtures/vcr_cassettes/content_type/fields/add.yml +2 -2
- data/spec/fixtures/vcr_cassettes/content_type/fields/create.yml +2 -2
- data/spec/fixtures/vcr_cassettes/content_type/fields/create_array_types.yml +3 -3
- data/spec/fixtures/vcr_cassettes/content_type/fields/create_array_with_params.yml +2 -2
- data/spec/fixtures/vcr_cassettes/content_type/fields/create_with_params.yml +2 -2
- data/spec/fixtures/vcr_cassettes/content_type/fields/destroy.yml +2 -2
- data/spec/fixtures/vcr_cassettes/content_type/fields/update_field.yml +2 -2
- data/spec/fixtures/vcr_cassettes/content_type/find.yml +1 -1
- data/spec/fixtures/vcr_cassettes/content_type/find_not_found.yml +1 -1
- data/spec/fixtures/vcr_cassettes/content_type/issue_79.yml +3 -3
- data/spec/fixtures/vcr_cassettes/content_type/omitted_field.yml +4 -4
- data/spec/fixtures/vcr_cassettes/content_type/reload.yml +4 -4
- data/spec/fixtures/vcr_cassettes/content_type/save_new.yml +3 -3
- data/spec/fixtures/vcr_cassettes/content_type/save_updated.yml +2 -2
- data/spec/fixtures/vcr_cassettes/content_type/save_with_added_field.yml +2 -2
- data/spec/fixtures/vcr_cassettes/content_type/update.yml +2 -2
- data/spec/fixtures/vcr_cassettes/content_type/update_change_field_name.yml +2 -2
- data/spec/fixtures/vcr_cassettes/content_type/update_remove_field.yml +2 -2
- data/spec/fixtures/vcr_cassettes/content_type/update_with_fields.yml +2 -2
- data/spec/fixtures/vcr_cassettes/content_type/update_with_one_new_field.yml +2 -2
- data/spec/fixtures/vcr_cassettes/content_type/validation/in.yml +3 -3
- data/spec/fixtures/vcr_cassettes/content_type/validation/in_add.yml +3 -3
- data/spec/fixtures/vcr_cassettes/content_type/validation/in_update.yml +3 -3
- data/spec/fixtures/vcr_cassettes/content_type/validation/link_content_type.yml +3 -3
- data/spec/fixtures/vcr_cassettes/content_type/validation/link_field.yml +3 -3
- data/spec/fixtures/vcr_cassettes/content_type/validation/link_mimetype_group.yml +3 -3
- data/spec/fixtures/vcr_cassettes/content_type/validation/multiple_add.yml +3 -3
- data/spec/fixtures/vcr_cassettes/content_type/validation/present.yml +3 -3
- data/spec/fixtures/vcr_cassettes/content_type/validation/range.yml +3 -3
- data/spec/fixtures/vcr_cassettes/content_type/validation/range_update.yml +3 -3
- data/spec/fixtures/vcr_cassettes/content_type/validation/regexp.yml +3 -3
- data/spec/fixtures/vcr_cassettes/content_type/validation/size.yml +3 -3
- data/spec/fixtures/vcr_cassettes/content_type/validation/unique.yml +3 -3
- data/spec/fixtures/vcr_cassettes/editor_interfaces/default_for_space.yml +1 -1
- data/spec/fixtures/vcr_cassettes/editor_interfaces/update.yml +3 -3
- data/spec/fixtures/vcr_cassettes/entry/all.yml +1 -1
- data/spec/fixtures/vcr_cassettes/entry/archive.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/archive_published.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/archived_false.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/archived_true.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/content_type_entires.yml +1 -1
- data/spec/fixtures/vcr_cassettes/entry/create.yml +4 -4
- data/spec/fixtures/vcr_cassettes/entry/create_with_asset.yml +3 -3
- data/spec/fixtures/vcr_cassettes/entry/create_with_assets.yml +3 -3
- data/spec/fixtures/vcr_cassettes/entry/create_with_custom_id.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/create_with_entries.yml +3 -3
- data/spec/fixtures/vcr_cassettes/entry/create_with_entry.yml +3 -3
- data/spec/fixtures/vcr_cassettes/entry/create_with_just_id.yml +4 -4
- data/spec/fixtures/vcr_cassettes/entry/create_with_location.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/create_with_specified_locale.yml +3 -3
- data/spec/fixtures/vcr_cassettes/entry/create_with_symbols.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/destory_published.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/destroy.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/fallback_undefined.yml +3 -3
- data/spec/fixtures/vcr_cassettes/entry/find-with-null-symbols.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/find.yml +1 -1
- data/spec/fixtures/vcr_cassettes/entry/find_not_found.yml +1 -1
- data/spec/fixtures/vcr_cassettes/entry/issue_61_1.yml +6 -6
- data/spec/fixtures/vcr_cassettes/entry/issue_61_2.yml +6 -6
- data/spec/fixtures/vcr_cassettes/entry/issue_61_3.yml +6 -6
- data/spec/fixtures/vcr_cassettes/entry/issue_61_4.yml +6 -6
- data/spec/fixtures/vcr_cassettes/entry/issue_61_5.yml +305 -198
- data/spec/fixtures/vcr_cassettes/entry/issue_61_6.yml +5 -5
- data/spec/fixtures/vcr_cassettes/entry/issue_61_7.yml +6 -6
- data/spec/fixtures/vcr_cassettes/entry/issue_61_8.yml +6 -6
- data/spec/fixtures/vcr_cassettes/entry/issue_61_spaces.yml +143 -188
- data/spec/fixtures/vcr_cassettes/entry/issue_70.yml +3 -3
- data/spec/fixtures/vcr_cassettes/entry/issue_73.yml +4 -4
- data/spec/fixtures/vcr_cassettes/entry/issue_91.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/limited_entries.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/locales/fallback_to_default_locale.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/locales/retrieve_localized.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/locales/simple_assignments_use_default_locale.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/locales/simple_assignments_use_specified_locale.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/publish.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/publish_already_published.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/published_false.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/published_true.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/reload.yml +6 -6
- data/spec/fixtures/vcr_cassettes/entry/save_update.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/search_filter/equality_operator.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/search_filter/exclusion_operator.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/search_filter/full_search.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/search_filter/full_search_match_operator.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/search_filter/including_linked_entries.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/search_filter/inclusion_operator.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/search_filter/inequality_operator.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/search_filter/location_search_near_operator.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/search_filter/location_search_within_operator.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/search_filter/matching_array_fields.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/search_filter/order_sys_createdAt.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/search_filter/order_sys_updatedAt.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/search_filter/range_operators_greater_than_or_equal.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/search_filter/range_operators_less.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/search_filter/reverse_order_sys_updatedAt.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/select_operator.yml +1 -1
- data/spec/fixtures/vcr_cassettes/entry/service_unavailable.yml +1 -1
- data/spec/fixtures/vcr_cassettes/entry/too_many_requests.yml +5 -5
- data/spec/fixtures/vcr_cassettes/entry/too_many_requests_retry.yml +6 -6
- data/spec/fixtures/vcr_cassettes/entry/unarchive.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/unarchive_already_unarchived.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/unpublish.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/unpublish_already_unpublished.yml +2 -2
- data/spec/fixtures/vcr_cassettes/entry/update.yml +4 -4
- data/spec/fixtures/vcr_cassettes/entry/update_bool_field.yml +4 -4
- data/spec/fixtures/vcr_cassettes/entry/update_unlocalized_field.yml +3 -3
- data/spec/fixtures/vcr_cassettes/entry/update_with_custom_locale.yml +3 -3
- data/spec/fixtures/vcr_cassettes/environment/all.yml +226 -0
- data/spec/fixtures/vcr_cassettes/environment/create.yml +155 -0
- data/spec/fixtures/vcr_cassettes/environment/destroy.yml +89 -0
- data/spec/fixtures/vcr_cassettes/environment/find.yml +155 -0
- data/spec/fixtures/vcr_cassettes/environment/find_2.yml +155 -0
- data/spec/fixtures/vcr_cassettes/environment/not_found.yml +98 -0
- data/spec/fixtures/vcr_cassettes/locale/all_for_space.yml +1 -1
- data/spec/fixtures/vcr_cassettes/locale/create_for_space.yml +2 -2
- data/spec/fixtures/vcr_cassettes/locale/destroy.yml +5 -5
- data/spec/fixtures/vcr_cassettes/locale/fallback_code.yml +3 -3
- data/spec/fixtures/vcr_cassettes/locale/find.yml +1 -1
- data/spec/fixtures/vcr_cassettes/locale/find_default.yml +1 -1
- data/spec/fixtures/vcr_cassettes/locale/find_for_space_not_found.yml +1 -1
- data/spec/fixtures/vcr_cassettes/locale/find_not_default.yml +1 -1
- data/spec/fixtures/vcr_cassettes/locale/find_not_optional.yml +1 -1
- data/spec/fixtures/vcr_cassettes/locale/find_optional.yml +1 -1
- data/spec/fixtures/vcr_cassettes/locale/reload.yml +3 -3
- data/spec/fixtures/vcr_cassettes/locale/update_both.yml +3 -3
- data/spec/fixtures/vcr_cassettes/locale/update_code.yml +3 -3
- data/spec/fixtures/vcr_cassettes/locale/update_name.yml +3 -3
- data/spec/fixtures/vcr_cassettes/snapshot/all.yml +1 -1
- data/spec/fixtures/vcr_cassettes/snapshot/ct_all.yml +1 -1
- data/spec/fixtures/vcr_cassettes/snapshot/ct_find.yml +1 -1
- data/spec/fixtures/vcr_cassettes/snapshot/ct_find_not_found.yml +1 -1
- data/spec/fixtures/vcr_cassettes/snapshot/find.yml +1 -1
- data/spec/fixtures/vcr_cassettes/snapshot/find_not_found.yml +1 -1
- data/spec/fixtures/vcr_cassettes/snapshot/properties.yml +2 -2
- data/spec/fixtures/vcr_cassettes/ui_extension/all.yml +1 -1
- data/spec/fixtures/vcr_cassettes/ui_extension/create.yml +1 -1
- data/spec/fixtures/vcr_cassettes/ui_extension/delete.yml +3 -3
- data/spec/fixtures/vcr_cassettes/ui_extension/find.yml +1 -1
- data/spec/fixtures/vcr_cassettes/upload/associate_with_asset.yml +3 -3
- data/spec/lib/contentful/management/api_key_spec.rb +7 -7
- data/spec/lib/contentful/management/asset_spec.rb +38 -57
- data/spec/lib/contentful/management/client_spec.rb +1 -1
- data/spec/lib/contentful/management/content_type_spec.rb +78 -78
- data/spec/lib/contentful/management/editor_interface_spec.rb +4 -4
- data/spec/lib/contentful/management/entry_spec.rb +104 -114
- data/spec/lib/contentful/management/environment_spec.rb +87 -0
- data/spec/lib/contentful/management/locale_spec.rb +22 -22
- data/spec/lib/contentful/management/role_spec.rb +11 -11
- data/spec/lib/contentful/management/snapshot_spec.rb +27 -27
- data/spec/lib/contentful/management/space_membership_spec.rb +6 -7
- data/spec/lib/contentful/management/space_spec.rb +0 -282
- data/spec/lib/contentful/management/ui_extension_spec.rb +8 -8
- data/spec/lib/contentful/management/upload_spec.rb +9 -9
- data/spec/lib/contentful/management/webhook_calls_spec.rb +6 -6
- data/spec/lib/contentful/management/webhook_health_spec.rb +3 -3
- data/spec/lib/contentful/management/webhook_spec.rb +14 -12
- metadata +28 -14
- data/lib/contentful/management/space_asset_methods_factory.rb +0 -13
- data/lib/contentful/management/space_association_all_published_method_factory.rb +0 -12
- data/lib/contentful/management/space_content_type_methods_factory.rb +0 -13
- data/lib/contentful/management/space_editor_interface_methods_factory.rb +0 -21
- data/lib/contentful/management/space_entry_methods_factory.rb +0 -21
- data/lib/contentful/management/space_ui_extension_methods_factory.rb +0 -15
- data/spec/fixtures/vcr_cassettes/asset/all_public.yml +0 -112
- data/spec/fixtures/vcr_cassettes/entry/all_public.yml +0 -102
@@ -82,7 +82,7 @@ http_interactions:
|
|
82
82
|
recorded_at: Wed, 20 Aug 2014 10:57:39 GMT
|
83
83
|
- request:
|
84
84
|
method: get
|
85
|
-
uri: https://api.contentful.com/spaces/bfsvtul0c41g/content_types
|
85
|
+
uri: https://api.contentful.com/spaces/bfsvtul0c41g/environments/master/content_types
|
86
86
|
body:
|
87
87
|
encoding: US-ASCII
|
88
88
|
string: ''
|
@@ -403,7 +403,7 @@ http_interactions:
|
|
403
403
|
recorded_at: Wed, 20 Aug 2014 10:57:40 GMT
|
404
404
|
- request:
|
405
405
|
method: get
|
406
|
-
uri: https://api.contentful.com/spaces/bfsvtul0c41g/entries?content_type=37TpyB8DcQkq0wkY8c4g2g&fields.location%5Bwithin%5D=52,23,300
|
406
|
+
uri: https://api.contentful.com/spaces/bfsvtul0c41g/environments/master/entries?content_type=37TpyB8DcQkq0wkY8c4g2g&fields.location%5Bwithin%5D=52,23,300
|
407
407
|
body:
|
408
408
|
encoding: US-ASCII
|
409
409
|
string: ''
|
@@ -82,7 +82,7 @@ http_interactions:
|
|
82
82
|
recorded_at: Wed, 20 Aug 2014 09:39:11 GMT
|
83
83
|
- request:
|
84
84
|
method: get
|
85
|
-
uri: https://api.contentful.com/spaces/bfsvtul0c41g/content_types
|
85
|
+
uri: https://api.contentful.com/spaces/bfsvtul0c41g/environments/master/content_types
|
86
86
|
body:
|
87
87
|
encoding: US-ASCII
|
88
88
|
string: ''
|
@@ -346,7 +346,7 @@ http_interactions:
|
|
346
346
|
recorded_at: Wed, 20 Aug 2014 09:39:12 GMT
|
347
347
|
- request:
|
348
348
|
method: get
|
349
|
-
uri: https://api.contentful.com/spaces/bfsvtul0c41g/entries?content_type=category_content_type&fields.number=33
|
349
|
+
uri: https://api.contentful.com/spaces/bfsvtul0c41g/environments/master/entries?content_type=category_content_type&fields.number=33
|
350
350
|
body:
|
351
351
|
encoding: US-ASCII
|
352
352
|
string: ''
|
@@ -82,7 +82,7 @@ http_interactions:
|
|
82
82
|
recorded_at: Wed, 20 Aug 2014 08:35:12 GMT
|
83
83
|
- request:
|
84
84
|
method: get
|
85
|
-
uri: https://api.contentful.com/spaces/bfsvtul0c41g/content_types
|
85
|
+
uri: https://api.contentful.com/spaces/bfsvtul0c41g/environments/master/content_types
|
86
86
|
body:
|
87
87
|
encoding: US-ASCII
|
88
88
|
string: ''
|
@@ -339,7 +339,7 @@ http_interactions:
|
|
339
339
|
recorded_at: Wed, 20 Aug 2014 08:35:12 GMT
|
340
340
|
- request:
|
341
341
|
method: get
|
342
|
-
uri: https://api.contentful.com/spaces/bfsvtul0c41g/entries?order=sys.createdAt
|
342
|
+
uri: https://api.contentful.com/spaces/bfsvtul0c41g/environments/master/entries?order=sys.createdAt
|
343
343
|
body:
|
344
344
|
encoding: US-ASCII
|
345
345
|
string: ''
|
@@ -82,7 +82,7 @@ http_interactions:
|
|
82
82
|
recorded_at: Wed, 20 Aug 2014 08:35:09 GMT
|
83
83
|
- request:
|
84
84
|
method: get
|
85
|
-
uri: https://api.contentful.com/spaces/bfsvtul0c41g/content_types
|
85
|
+
uri: https://api.contentful.com/spaces/bfsvtul0c41g/environments/master/content_types
|
86
86
|
body:
|
87
87
|
encoding: US-ASCII
|
88
88
|
string: ''
|
@@ -339,7 +339,7 @@ http_interactions:
|
|
339
339
|
recorded_at: Wed, 20 Aug 2014 08:35:10 GMT
|
340
340
|
- request:
|
341
341
|
method: get
|
342
|
-
uri: https://api.contentful.com/spaces/bfsvtul0c41g/entries?order=sys.updatedAt
|
342
|
+
uri: https://api.contentful.com/spaces/bfsvtul0c41g/environments/master/entries?order=sys.updatedAt
|
343
343
|
body:
|
344
344
|
encoding: US-ASCII
|
345
345
|
string: ''
|
data/spec/fixtures/vcr_cassettes/entry/search_filter/range_operators_greater_than_or_equal.yml
CHANGED
@@ -82,7 +82,7 @@ http_interactions:
|
|
82
82
|
recorded_at: Wed, 20 Aug 2014 11:12:13 GMT
|
83
83
|
- request:
|
84
84
|
method: get
|
85
|
-
uri: https://api.contentful.com/spaces/bfsvtul0c41g/content_types
|
85
|
+
uri: https://api.contentful.com/spaces/bfsvtul0c41g/environments/master/content_types
|
86
86
|
body:
|
87
87
|
encoding: US-ASCII
|
88
88
|
string: ''
|
@@ -403,7 +403,7 @@ http_interactions:
|
|
403
403
|
recorded_at: Wed, 20 Aug 2014 11:12:15 GMT
|
404
404
|
- request:
|
405
405
|
method: get
|
406
|
-
uri: https://api.contentful.com/spaces/bfsvtul0c41g/entries?sys.updatedAt%5Bgte%5D=2014-08-19T00:00:00Z
|
406
|
+
uri: https://api.contentful.com/spaces/bfsvtul0c41g/environments/master/entries?sys.updatedAt%5Bgte%5D=2014-08-19T00:00:00Z
|
407
407
|
body:
|
408
408
|
encoding: US-ASCII
|
409
409
|
string: ''
|
@@ -82,7 +82,7 @@ http_interactions:
|
|
82
82
|
recorded_at: Wed, 20 Aug 2014 11:07:06 GMT
|
83
83
|
- request:
|
84
84
|
method: get
|
85
|
-
uri: https://api.contentful.com/spaces/bfsvtul0c41g/content_types
|
85
|
+
uri: https://api.contentful.com/spaces/bfsvtul0c41g/environments/master/content_types
|
86
86
|
body:
|
87
87
|
encoding: US-ASCII
|
88
88
|
string: ''
|
@@ -403,7 +403,7 @@ http_interactions:
|
|
403
403
|
recorded_at: Wed, 20 Aug 2014 11:07:08 GMT
|
404
404
|
- request:
|
405
405
|
method: get
|
406
|
-
uri: https://api.contentful.com/spaces/bfsvtul0c41g/entries?content_type=category_content_type&fields.number%5Blte%5D=20
|
406
|
+
uri: https://api.contentful.com/spaces/bfsvtul0c41g/environments/master/entries?content_type=category_content_type&fields.number%5Blte%5D=20
|
407
407
|
body:
|
408
408
|
encoding: US-ASCII
|
409
409
|
string: ''
|
@@ -82,7 +82,7 @@ http_interactions:
|
|
82
82
|
recorded_at: Wed, 20 Aug 2014 08:40:48 GMT
|
83
83
|
- request:
|
84
84
|
method: get
|
85
|
-
uri: https://api.contentful.com/spaces/bfsvtul0c41g/content_types
|
85
|
+
uri: https://api.contentful.com/spaces/bfsvtul0c41g/environments/master/content_types
|
86
86
|
body:
|
87
87
|
encoding: US-ASCII
|
88
88
|
string: ''
|
@@ -339,7 +339,7 @@ http_interactions:
|
|
339
339
|
recorded_at: Wed, 20 Aug 2014 08:40:49 GMT
|
340
340
|
- request:
|
341
341
|
method: get
|
342
|
-
uri: https://api.contentful.com/spaces/bfsvtul0c41g/entries?order=-sys.updatedAt
|
342
|
+
uri: https://api.contentful.com/spaces/bfsvtul0c41g/environments/master/entries?order=-sys.updatedAt
|
343
343
|
body:
|
344
344
|
encoding: US-ASCII
|
345
345
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.contentful.com/spaces/cfexampleapi/entries?content_type=cat&select=fields.lives,sys&sys.id=nyancat
|
5
|
+
uri: https://api.contentful.com/spaces/cfexampleapi/environments/master/entries?content_type=cat&select=fields.lives,sys&sys.id=nyancat
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -82,7 +82,7 @@ http_interactions:
|
|
82
82
|
recorded_at: Thu, 18 Dec 2014 12:21:23 GMT
|
83
83
|
- request:
|
84
84
|
method: get
|
85
|
-
uri: https://api.contentful.com/spaces/286arvy86ry9/content_types
|
85
|
+
uri: https://api.contentful.com/spaces/286arvy86ry9/environments/master/content_types
|
86
86
|
body:
|
87
87
|
encoding: US-ASCII
|
88
88
|
string: ''
|
@@ -334,7 +334,7 @@ http_interactions:
|
|
334
334
|
recorded_at: Thu, 18 Dec 2014 12:21:23 GMT
|
335
335
|
- request:
|
336
336
|
method: get
|
337
|
-
uri: https://api.contentful.com/spaces/286arvy86ry9/entries/1YNepnMpXGiMWikaKC4GG0
|
337
|
+
uri: https://api.contentful.com/spaces/286arvy86ry9/environments/master/entries/1YNepnMpXGiMWikaKC4GG0
|
338
338
|
body:
|
339
339
|
encoding: US-ASCII
|
340
340
|
string: ''
|
@@ -440,7 +440,7 @@ http_interactions:
|
|
440
440
|
recorded_at: Thu, 18 Dec 2014 12:21:24 GMT
|
441
441
|
- request:
|
442
442
|
method: get
|
443
|
-
uri: https://api.contentful.com/spaces/286arvy86ry9/content_types/5lIEiXrCIoKoIKaSW2C8aa
|
443
|
+
uri: https://api.contentful.com/spaces/286arvy86ry9/environments/master/content_types/5lIEiXrCIoKoIKaSW2C8aa
|
444
444
|
body:
|
445
445
|
encoding: US-ASCII
|
446
446
|
string: ''
|
@@ -562,7 +562,7 @@ http_interactions:
|
|
562
562
|
recorded_at: Thu, 18 Dec 2014 12:21:25 GMT
|
563
563
|
- request:
|
564
564
|
method: post
|
565
|
-
uri: https://api.contentful.com/spaces/286arvy86ry9/entries
|
565
|
+
uri: https://api.contentful.com/spaces/286arvy86ry9/environments/master/entries
|
566
566
|
body:
|
567
567
|
encoding: UTF-8
|
568
568
|
string: '{"fields":{"name":{"en-US":"Create test"},"entry":{"en-US":{"sys":{"type":"Link","linkType":"Entry","id":"1YNepnMpXGiMWikaKC4GG0"}}}}}'
|
@@ -666,7 +666,7 @@ http_interactions:
|
|
666
666
|
recorded_at: Thu, 18 Dec 2014 12:21:26 GMT
|
667
667
|
- request:
|
668
668
|
method: put
|
669
|
-
uri: https://api.contentful.com/spaces/286arvy86ry9/entries/7cMVEy1toAWaMKUYsSAmC4/published
|
669
|
+
uri: https://api.contentful.com/spaces/286arvy86ry9/environments/master/entries/7cMVEy1toAWaMKUYsSAmC4/published
|
670
670
|
body:
|
671
671
|
encoding: US-ASCII
|
672
672
|
string: ''
|
@@ -82,7 +82,7 @@ http_interactions:
|
|
82
82
|
recorded_at: Thu, 18 Dec 2014 12:21:23 GMT
|
83
83
|
- request:
|
84
84
|
method: get
|
85
|
-
uri: https://api.contentful.com/spaces/286arvy86ry9/content_types
|
85
|
+
uri: https://api.contentful.com/spaces/286arvy86ry9/environments/master/content_types
|
86
86
|
body:
|
87
87
|
encoding: US-ASCII
|
88
88
|
string: ''
|
@@ -334,7 +334,7 @@ http_interactions:
|
|
334
334
|
recorded_at: Thu, 18 Dec 2014 12:21:23 GMT
|
335
335
|
- request:
|
336
336
|
method: get
|
337
|
-
uri: https://api.contentful.com/spaces/286arvy86ry9/entries/1YNepnMpXGiMWikaKC4GG0
|
337
|
+
uri: https://api.contentful.com/spaces/286arvy86ry9/environments/master/entries/1YNepnMpXGiMWikaKC4GG0
|
338
338
|
body:
|
339
339
|
encoding: US-ASCII
|
340
340
|
string: ''
|
@@ -440,7 +440,7 @@ http_interactions:
|
|
440
440
|
recorded_at: Thu, 18 Dec 2014 12:21:24 GMT
|
441
441
|
- request:
|
442
442
|
method: get
|
443
|
-
uri: https://api.contentful.com/spaces/286arvy86ry9/content_types/5lIEiXrCIoKoIKaSW2C8aa
|
443
|
+
uri: https://api.contentful.com/spaces/286arvy86ry9/environments/master/content_types/5lIEiXrCIoKoIKaSW2C8aa
|
444
444
|
body:
|
445
445
|
encoding: US-ASCII
|
446
446
|
string: ''
|
@@ -562,7 +562,7 @@ http_interactions:
|
|
562
562
|
recorded_at: Thu, 18 Dec 2014 12:21:25 GMT
|
563
563
|
- request:
|
564
564
|
method: post
|
565
|
-
uri: https://api.contentful.com/spaces/286arvy86ry9/entries
|
565
|
+
uri: https://api.contentful.com/spaces/286arvy86ry9/environments/master/entries
|
566
566
|
body:
|
567
567
|
encoding: UTF-8
|
568
568
|
string: '{"fields":{"name":{"en-US":"Create test"},"entry":{"en-US":{"sys":{"type":"Link","linkType":"Entry","id":"1YNepnMpXGiMWikaKC4GG0"}}}}}'
|
@@ -666,7 +666,7 @@ http_interactions:
|
|
666
666
|
recorded_at: Thu, 18 Dec 2014 12:21:26 GMT
|
667
667
|
- request:
|
668
668
|
method: put
|
669
|
-
uri: https://api.contentful.com/spaces/286arvy86ry9/entries/7cMVEy1toAWaMKUYsSAmC4/published
|
669
|
+
uri: https://api.contentful.com/spaces/286arvy86ry9/environments/master/entries/7cMVEy1toAWaMKUYsSAmC4/published
|
670
670
|
body:
|
671
671
|
encoding: US-ASCII
|
672
672
|
string: ''
|
@@ -731,7 +731,7 @@ http_interactions:
|
|
731
731
|
recorded_at: Thu, 18 Dec 2014 12:21:27 GMT
|
732
732
|
- request:
|
733
733
|
method: put
|
734
|
-
uri: https://api.contentful.com/spaces/286arvy86ry9/entries/7cMVEy1toAWaMKUYsSAmC4/published
|
734
|
+
uri: https://api.contentful.com/spaces/286arvy86ry9/environments/master/entries/7cMVEy1toAWaMKUYsSAmC4/published
|
735
735
|
body:
|
736
736
|
encoding: US-ASCII
|
737
737
|
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: ''
|
@@ -128,7 +128,7 @@ http_interactions:
|
|
128
128
|
recorded_at: Wed, 30 Jul 2014 12:52:59 GMT
|
129
129
|
- request:
|
130
130
|
method: delete
|
131
|
-
uri: https://api.contentful.com/spaces/yr5m0jky5hsh/entries/4Rouux8SoUCKwkyCq2I0E0/archived
|
131
|
+
uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/entries/4Rouux8SoUCKwkyCq2I0E0/archived
|
132
132
|
body:
|
133
133
|
encoding: US-ASCII
|
134
134
|
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: ''
|
@@ -119,7 +119,7 @@ http_interactions:
|
|
119
119
|
recorded_at: Wed, 30 Jul 2014 12:52:01 GMT
|
120
120
|
- request:
|
121
121
|
method: delete
|
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/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: ''
|
@@ -128,7 +128,7 @@ http_interactions:
|
|
128
128
|
recorded_at: Wed, 30 Jul 2014 12:46:57 GMT
|
129
129
|
- request:
|
130
130
|
method: delete
|
131
|
-
uri: https://api.contentful.com/spaces/yr5m0jky5hsh/entries/4Rouux8SoUCKwkyCq2I0E0/published
|
131
|
+
uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/entries/4Rouux8SoUCKwkyCq2I0E0/published
|
132
132
|
body:
|
133
133
|
encoding: US-ASCII
|
134
134
|
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: ''
|
@@ -119,7 +119,7 @@ http_interactions:
|
|
119
119
|
recorded_at: Wed, 30 Jul 2014 12:48:40 GMT
|
120
120
|
- request:
|
121
121
|
method: delete
|
122
|
-
uri: https://api.contentful.com/spaces/yr5m0jky5hsh/entries/4Rouux8SoUCKwkyCq2I0E0/published
|
122
|
+
uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/entries/4Rouux8SoUCKwkyCq2I0E0/published
|
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/yr5m0jky5hsh/assets/codequest_id_test_custom_id
|
5
|
+
uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/assets/codequest_id_test_custom_id
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -107,7 +107,7 @@ http_interactions:
|
|
107
107
|
recorded_at: Wed, 30 Jul 2014 14:11:06 GMT
|
108
108
|
- request:
|
109
109
|
method: get
|
110
|
-
uri: https://api.contentful.com/spaces/yr5m0jky5hsh/entries/1d1QDYzeiyWmgqQYysae8u
|
110
|
+
uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/entries/1d1QDYzeiyWmgqQYysae8u
|
111
111
|
body:
|
112
112
|
encoding: US-ASCII
|
113
113
|
string: ''
|
@@ -222,7 +222,7 @@ http_interactions:
|
|
222
222
|
recorded_at: Wed, 30 Jul 2014 14:11:07 GMT
|
223
223
|
- request:
|
224
224
|
method: get
|
225
|
-
uri: https://api.contentful.com/spaces/yr5m0jky5hsh/entries/4o6ghKSmSko4i828YCYaEo
|
225
|
+
uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/entries/4o6ghKSmSko4i828YCYaEo
|
226
226
|
body:
|
227
227
|
encoding: US-ASCII
|
228
228
|
string: ''
|
@@ -419,7 +419,7 @@ http_interactions:
|
|
419
419
|
recorded_at: Wed, 30 Jul 2014 14:11:07 GMT
|
420
420
|
- request:
|
421
421
|
method: put
|
422
|
-
uri: https://api.contentful.com/spaces/yr5m0jky5hsh/entries/4o6ghKSmSko4i828YCYaEo
|
422
|
+
uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/entries/4o6ghKSmSko4i828YCYaEo
|
423
423
|
body:
|
424
424
|
encoding: UTF-8
|
425
425
|
string: '{"fields":{"name":{"en-US":"Tom Handy","pl":"testName"},"age":{"en-US":20,"pl":null},"bool":{"en-US":false,"pl":null},"birthday":{"en-US":"2000-07-12T11:11:00+02:00","pl":null},"city":{"en-US":{"lat":22.44,"lon":33.33,"lat":22.44,"lon":33.33},"pl":null},"asset":{"en-US":{"sys":{"type":"Link","linkType":"Asset","id":"codequest_id_test_custom_id"},"sys":{"type":"Link","linkType":"Asset","id":"codequest_id_test_custom_id"}},"pl":null},"assets":{"en-US":[{"sys":{"type":"Link","linkType":"Asset","id":"codequest_id_test_custom_id"}},{"sys":{"type":"Link","linkType":"Asset","id":"codequest_id_test_custom_id"}},{"sys":{"type":"Link","linkType":"Asset","id":"codequest_id_test_custom_id"}}],"pl":null},"entry":{"en-US":{"sys":{"type":"Link","linkType":"Entry","id":"1d1QDYzeiyWmgqQYysae8u"},"sys":{"type":"Link","linkType":"Entry","id":"1d1QDYzeiyWmgqQYysae8u"}},"pl":null},"entries":{"en-US":[{"sys":{"type":"Link","linkType":"Entry","id":"1d1QDYzeiyWmgqQYysae8u"}},{"sys":{"type":"Link","linkType":"Entry","id":"1d1QDYzeiyWmgqQYysae8u"}},{"sys":{"type":"Link","linkType":"Entry","id":"1d1QDYzeiyWmgqQYysae8u"}}],"pl":null},"symbols":{"en-US":["PL","USD","XX"],"pl":null}}}'
|
@@ -86,7 +86,7 @@ http_interactions:
|
|
86
86
|
recorded_at: Wed, 03 Jun 2015 09:48:41 GMT
|
87
87
|
- request:
|
88
88
|
method: get
|
89
|
-
uri: https://api.contentful.com/spaces/fujuvqn6zcl1/content_types
|
89
|
+
uri: https://api.contentful.com/spaces/fujuvqn6zcl1/environments/master/content_types
|
90
90
|
body:
|
91
91
|
encoding: US-ASCII
|
92
92
|
string: ''
|
@@ -364,7 +364,7 @@ http_interactions:
|
|
364
364
|
recorded_at: Wed, 03 Jun 2015 09:48:41 GMT
|
365
365
|
- request:
|
366
366
|
method: get
|
367
|
-
uri: https://api.contentful.com/spaces/fujuvqn6zcl1/content_types/1kUEViTN4EmGiEaaeC6ouY
|
367
|
+
uri: https://api.contentful.com/spaces/fujuvqn6zcl1/environments/master/content_types/1kUEViTN4EmGiEaaeC6ouY
|
368
368
|
body:
|
369
369
|
encoding: US-ASCII
|
370
370
|
string: ''
|
@@ -523,7 +523,7 @@ http_interactions:
|
|
523
523
|
recorded_at: Wed, 03 Jun 2015 09:48:42 GMT
|
524
524
|
- request:
|
525
525
|
method: post
|
526
|
-
uri: https://api.contentful.com/spaces/fujuvqn6zcl1/entries
|
526
|
+
uri: https://api.contentful.com/spaces/fujuvqn6zcl1/environments/master/entries
|
527
527
|
body:
|
528
528
|
encoding: UTF-8
|
529
529
|
string: '{"fields":{"name":{"en-US":"Hello World"},"yolo":{"en-US":false}}}'
|
@@ -625,7 +625,7 @@ http_interactions:
|
|
625
625
|
recorded_at: Wed, 03 Jun 2015 09:48:43 GMT
|
626
626
|
- request:
|
627
627
|
method: get
|
628
|
-
uri: https://api.contentful.com/spaces/fujuvqn6zcl1/entries/6sLfyXNLtm0UgSicMcqy8A
|
628
|
+
uri: https://api.contentful.com/spaces/fujuvqn6zcl1/environments/master/entries/6sLfyXNLtm0UgSicMcqy8A
|
629
629
|
body:
|
630
630
|
encoding: US-ASCII
|
631
631
|
string: ''
|
@@ -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_id
|
5
|
+
uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/assets/codequest_id_test_custom_id
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -107,7 +107,7 @@ http_interactions:
|
|
107
107
|
recorded_at: Wed, 30 Jul 2014 15:01:00 GMT
|
108
108
|
- request:
|
109
109
|
method: get
|
110
|
-
uri: https://api.contentful.com/spaces/yr5m0jky5hsh/entries/3U7JqGuVzOWIimU40mKeem
|
110
|
+
uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/entries/3U7JqGuVzOWIimU40mKeem
|
111
111
|
body:
|
112
112
|
encoding: US-ASCII
|
113
113
|
string: ''
|
@@ -220,7 +220,7 @@ http_interactions:
|
|
220
220
|
recorded_at: Wed, 30 Jul 2014 15:01:01 GMT
|
221
221
|
- request:
|
222
222
|
method: put
|
223
|
-
uri: https://api.contentful.com/spaces/yr5m0jky5hsh/entries/3U7JqGuVzOWIimU40mKeem
|
223
|
+
uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/entries/3U7JqGuVzOWIimU40mKeem
|
224
224
|
body:
|
225
225
|
encoding: UTF-8
|
226
226
|
string: '{"fields":{"name":{"pl":"DoestMatter","en-US":"xus","pl-PL":"xpl"},"bool":{"pl":false,"en-US":null,"pl-PL":null},"city":{"pl":{"lat":22.44,"lon":33.33}},"asset":{"pl":{"sys":{"type":"Link","linkType":"Asset","id":"codequest_id_test_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/assets/codequest_id_test_custom_id
|
5
|
+
uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/assets/codequest_id_test_custom_id
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -107,7 +107,7 @@ http_interactions:
|
|
107
107
|
recorded_at: Wed, 30 Jul 2014 14:58:11 GMT
|
108
108
|
- request:
|
109
109
|
method: get
|
110
|
-
uri: https://api.contentful.com/spaces/yr5m0jky5hsh/entries/3U7JqGuVzOWIimU40mKeem
|
110
|
+
uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/entries/3U7JqGuVzOWIimU40mKeem
|
111
111
|
body:
|
112
112
|
encoding: US-ASCII
|
113
113
|
string: ''
|
@@ -218,7 +218,7 @@ http_interactions:
|
|
218
218
|
recorded_at: Wed, 30 Jul 2014 14:58:12 GMT
|
219
219
|
- request:
|
220
220
|
method: put
|
221
|
-
uri: https://api.contentful.com/spaces/yr5m0jky5hsh/entries/3U7JqGuVzOWIimU40mKeem
|
221
|
+
uri: https://api.contentful.com/spaces/yr5m0jky5hsh/environments/master/entries/3U7JqGuVzOWIimU40mKeem
|
222
222
|
body:
|
223
223
|
encoding: UTF-8
|
224
224
|
string: '{"fields":{"name":{"pl":"testName","en-US":"xus","pl-PL":"xpl"},"bool":{"pl":true,"en-US":null,"pl-PL":null}}}'
|
@@ -0,0 +1,226 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.contentful.com/spaces/facgnwwgj5fe/environments
|
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: 200
|
25
|
+
message: OK
|
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
|
+
Cf-Organization-Id:
|
42
|
+
- 4SsuxQCaMaemfIms52Jr8s
|
43
|
+
Cf-Space-Id:
|
44
|
+
- facgnwwgj5fe
|
45
|
+
Content-Type:
|
46
|
+
- application/vnd.contentful.management.v1+json
|
47
|
+
Date:
|
48
|
+
- Fri, 16 Mar 2018 12:20:03 GMT
|
49
|
+
Etag:
|
50
|
+
- W/"7da63b2b660c177823e607458a3be599"
|
51
|
+
Server:
|
52
|
+
- Contentful
|
53
|
+
Strict-Transport-Security:
|
54
|
+
- max-age=15768000
|
55
|
+
X-Content-Type-Options:
|
56
|
+
- nosniff
|
57
|
+
X-Contentful-Ratelimit-Hour-Limit:
|
58
|
+
- '36000'
|
59
|
+
X-Contentful-Ratelimit-Hour-Remaining:
|
60
|
+
- '35999'
|
61
|
+
X-Contentful-Ratelimit-Reset:
|
62
|
+
- '0'
|
63
|
+
X-Contentful-Ratelimit-Second-Limit:
|
64
|
+
- '10'
|
65
|
+
X-Contentful-Ratelimit-Second-Remaining:
|
66
|
+
- '9'
|
67
|
+
X-Contentful-Request-Id:
|
68
|
+
- 2c3c41dc0643f21a9d381198ce34b0e1
|
69
|
+
X-Frame-Options:
|
70
|
+
- ALLOWALL
|
71
|
+
X-Xss-Protection:
|
72
|
+
- 1; mode=block
|
73
|
+
Content-Length:
|
74
|
+
- '2837'
|
75
|
+
Connection:
|
76
|
+
- Close
|
77
|
+
Set-Cookie:
|
78
|
+
- incap_ses_476_673446=IQMoKo5wMRsuVuJBuRebBnO2q1oAAAAAom2FotJBvWxV+vuat8Q+Xw==;
|
79
|
+
path=/; Domain=.contentful.com
|
80
|
+
- nlbi_673446=qhquLQEx9ypLa0Q36lKYhQAAAABuhv8vq2pq54CtAYxRY8gu; path=/; Domain=.contentful.com
|
81
|
+
- visid_incap_673446=IRuNPktkQgO8M9WGwM9cVXO2q1oAAAAAQUIPAAAAAADUDqsgk+J14DtH09vCJz52;
|
82
|
+
expires=Sat, 16 Mar 2019 10:06:37 GMT; path=/; Domain=.contentful.com
|
83
|
+
X-Iinfo:
|
84
|
+
- 4-14002328-14002335 NNNN CT(109 110 0) RT(1521202803400 68) q(0 0 2 0) r(5
|
85
|
+
5) U5
|
86
|
+
X-Cdn:
|
87
|
+
- Incapsula
|
88
|
+
body:
|
89
|
+
encoding: ASCII-8BIT
|
90
|
+
string: |+
|
91
|
+
{
|
92
|
+
"total":2,
|
93
|
+
"limit":25,
|
94
|
+
"skip":0,
|
95
|
+
"sys":{
|
96
|
+
"type":"Array"
|
97
|
+
},
|
98
|
+
"items":[
|
99
|
+
{
|
100
|
+
"name":"master",
|
101
|
+
"sys":{
|
102
|
+
"type":"Environment",
|
103
|
+
"id":"master",
|
104
|
+
"version":1,
|
105
|
+
"space":{
|
106
|
+
"sys":{
|
107
|
+
"type":"Link",
|
108
|
+
"linkType":"Space",
|
109
|
+
"id":"facgnwwgj5fe"
|
110
|
+
}
|
111
|
+
},
|
112
|
+
"status":{
|
113
|
+
"sys":{
|
114
|
+
"type":"Link",
|
115
|
+
"linkType":"Status",
|
116
|
+
"id":"ready"
|
117
|
+
}
|
118
|
+
},
|
119
|
+
"locales":[
|
120
|
+
{
|
121
|
+
"sys":{
|
122
|
+
"type":"Link",
|
123
|
+
"linkType":"Locale",
|
124
|
+
"id":"1NkEdf220AtNFVgJO9fFQ2"
|
125
|
+
}
|
126
|
+
},
|
127
|
+
{
|
128
|
+
"sys":{
|
129
|
+
"type":"Link",
|
130
|
+
"linkType":"Locale",
|
131
|
+
"id":"2QKRtwD3DKOkYKXJJsYdHk"
|
132
|
+
}
|
133
|
+
},
|
134
|
+
{
|
135
|
+
"sys":{
|
136
|
+
"type":"Link",
|
137
|
+
"linkType":"Locale",
|
138
|
+
"id":"4YnLeSNLymCAZ6eYwJmhzu"
|
139
|
+
}
|
140
|
+
}
|
141
|
+
],
|
142
|
+
"createdBy":{
|
143
|
+
"sys":{
|
144
|
+
"type":"Link",
|
145
|
+
"linkType":"User",
|
146
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
147
|
+
}
|
148
|
+
},
|
149
|
+
"createdAt":"2017-12-07T10:54:10Z",
|
150
|
+
"updatedBy":{
|
151
|
+
"sys":{
|
152
|
+
"type":"Link",
|
153
|
+
"linkType":"User",
|
154
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
155
|
+
}
|
156
|
+
},
|
157
|
+
"updatedAt":"2017-12-07T10:54:10Z"
|
158
|
+
}
|
159
|
+
},
|
160
|
+
{
|
161
|
+
"name":"testing",
|
162
|
+
"sys":{
|
163
|
+
"type":"Environment",
|
164
|
+
"id":"testing",
|
165
|
+
"version":6,
|
166
|
+
"space":{
|
167
|
+
"sys":{
|
168
|
+
"type":"Link",
|
169
|
+
"linkType":"Space",
|
170
|
+
"id":"facgnwwgj5fe"
|
171
|
+
}
|
172
|
+
},
|
173
|
+
"status":{
|
174
|
+
"sys":{
|
175
|
+
"type":"Link",
|
176
|
+
"linkType":"Status",
|
177
|
+
"id":"ready"
|
178
|
+
}
|
179
|
+
},
|
180
|
+
"locales":[
|
181
|
+
{
|
182
|
+
"sys":{
|
183
|
+
"type":"Link",
|
184
|
+
"linkType":"Locale",
|
185
|
+
"id":"1NkEdf220AtNFVgJO9fFQ2"
|
186
|
+
}
|
187
|
+
},
|
188
|
+
{
|
189
|
+
"sys":{
|
190
|
+
"type":"Link",
|
191
|
+
"linkType":"Locale",
|
192
|
+
"id":"2QKRtwD3DKOkYKXJJsYdHk"
|
193
|
+
}
|
194
|
+
},
|
195
|
+
{
|
196
|
+
"sys":{
|
197
|
+
"type":"Link",
|
198
|
+
"linkType":"Locale",
|
199
|
+
"id":"4YnLeSNLymCAZ6eYwJmhzu"
|
200
|
+
}
|
201
|
+
}
|
202
|
+
],
|
203
|
+
"createdBy":{
|
204
|
+
"sys":{
|
205
|
+
"type":"Link",
|
206
|
+
"linkType":"User",
|
207
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
208
|
+
}
|
209
|
+
},
|
210
|
+
"createdAt":"2018-02-27T10:19:01Z",
|
211
|
+
"updatedBy":{
|
212
|
+
"sys":{
|
213
|
+
"type":"Link",
|
214
|
+
"linkType":"User",
|
215
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
216
|
+
}
|
217
|
+
},
|
218
|
+
"updatedAt":"2018-02-27T10:19:04Z"
|
219
|
+
}
|
220
|
+
}
|
221
|
+
]
|
222
|
+
}
|
223
|
+
|
224
|
+
http_version:
|
225
|
+
recorded_at: Fri, 16 Mar 2018 12:20:02 GMT
|
226
|
+
recorded_with: VCR 4.0.0
|