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
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/2GmtCwDBcIu4giMgQGIIcq
|
5
|
+
uri: https://api.contentful.com/spaces/u2viwgfeal0o/environments/master/entries/2GmtCwDBcIu4giMgQGIIcq
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -116,7 +116,7 @@ http_interactions:
|
|
116
116
|
recorded_at: Tue, 19 Jan 2016 14:21:23 GMT
|
117
117
|
- request:
|
118
118
|
method: put
|
119
|
-
uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/2GmtCwDBcIu4giMgQGIIcq
|
119
|
+
uri: https://api.contentful.com/spaces/u2viwgfeal0o/environments/master/entries/2GmtCwDBcIu4giMgQGIIcq
|
120
120
|
body:
|
121
121
|
encoding: UTF-8
|
122
122
|
string: '{"fields":{"name":{"en-GB":"Test With Previously Empty Field"},"value":{"en-GB":"goodbye"}}}'
|
@@ -233,7 +233,7 @@ http_interactions:
|
|
233
233
|
recorded_at: Tue, 19 Jan 2016 14:21:24 GMT
|
234
234
|
- request:
|
235
235
|
method: put
|
236
|
-
uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/2GmtCwDBcIu4giMgQGIIcq/published
|
236
|
+
uri: https://api.contentful.com/spaces/u2viwgfeal0o/environments/master/entries/2GmtCwDBcIu4giMgQGIIcq/published
|
237
237
|
body:
|
238
238
|
encoding: US-ASCII
|
239
239
|
string: ''
|
@@ -352,7 +352,7 @@ http_interactions:
|
|
352
352
|
recorded_at: Tue, 19 Jan 2016 14:21:25 GMT
|
353
353
|
- request:
|
354
354
|
method: put
|
355
|
-
uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/2GmtCwDBcIu4giMgQGIIcq
|
355
|
+
uri: https://api.contentful.com/spaces/u2viwgfeal0o/environments/master/entries/2GmtCwDBcIu4giMgQGIIcq
|
356
356
|
body:
|
357
357
|
encoding: UTF-8
|
358
358
|
string: '{"fields":{"name":{"en-GB":"Test With Previously Empty Field"},"value":{"en-GB":null}}}'
|
@@ -469,7 +469,7 @@ http_interactions:
|
|
469
469
|
recorded_at: Tue, 19 Jan 2016 14:21:26 GMT
|
470
470
|
- request:
|
471
471
|
method: put
|
472
|
-
uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/2GmtCwDBcIu4giMgQGIIcq/published
|
472
|
+
uri: https://api.contentful.com/spaces/u2viwgfeal0o/environments/master/entries/2GmtCwDBcIu4giMgQGIIcq/published
|
473
473
|
body:
|
474
474
|
encoding: US-ASCII
|
475
475
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/fIpsfQSOd22IsqMQCiG0K
|
5
|
+
uri: https://api.contentful.com/spaces/u2viwgfeal0o/environments/master/entries/fIpsfQSOd22IsqMQCiG0K
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -119,7 +119,7 @@ http_interactions:
|
|
119
119
|
recorded_at: Wed, 20 Jan 2016 13:08:50 GMT
|
120
120
|
- request:
|
121
121
|
method: get
|
122
|
-
uri: https://api.contentful.com/spaces/u2viwgfeal0o/content_types/someType
|
122
|
+
uri: https://api.contentful.com/spaces/u2viwgfeal0o/environments/master/content_types/someType
|
123
123
|
body:
|
124
124
|
encoding: US-ASCII
|
125
125
|
string: ''
|
@@ -238,7 +238,7 @@ http_interactions:
|
|
238
238
|
recorded_at: Wed, 20 Jan 2016 13:08:51 GMT
|
239
239
|
- request:
|
240
240
|
method: put
|
241
|
-
uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/fIpsfQSOd22IsqMQCiG0K
|
241
|
+
uri: https://api.contentful.com/spaces/u2viwgfeal0o/environments/master/entries/fIpsfQSOd22IsqMQCiG0K
|
242
242
|
body:
|
243
243
|
encoding: UTF-8
|
244
244
|
string: '{"fields":{"name":{"en-GB":"Test With Already Populated Field"},"value":{"en-GB":"goodbye"}}}'
|
@@ -355,7 +355,7 @@ http_interactions:
|
|
355
355
|
recorded_at: Wed, 20 Jan 2016 13:08:52 GMT
|
356
356
|
- request:
|
357
357
|
method: put
|
358
|
-
uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/fIpsfQSOd22IsqMQCiG0K/published
|
358
|
+
uri: https://api.contentful.com/spaces/u2viwgfeal0o/environments/master/entries/fIpsfQSOd22IsqMQCiG0K/published
|
359
359
|
body:
|
360
360
|
encoding: US-ASCII
|
361
361
|
string: ''
|
@@ -474,7 +474,7 @@ http_interactions:
|
|
474
474
|
recorded_at: Wed, 20 Jan 2016 13:08:53 GMT
|
475
475
|
- request:
|
476
476
|
method: put
|
477
|
-
uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/fIpsfQSOd22IsqMQCiG0K
|
477
|
+
uri: https://api.contentful.com/spaces/u2viwgfeal0o/environments/master/entries/fIpsfQSOd22IsqMQCiG0K
|
478
478
|
body:
|
479
479
|
encoding: UTF-8
|
480
480
|
string: '{"fields":{"name":{"en-GB":"Test With Already Populated Field"},"value":{"en-GB":"hello"}}}'
|
@@ -591,7 +591,7 @@ http_interactions:
|
|
591
591
|
recorded_at: Wed, 20 Jan 2016 13:08:54 GMT
|
592
592
|
- request:
|
593
593
|
method: put
|
594
|
-
uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/fIpsfQSOd22IsqMQCiG0K/published
|
594
|
+
uri: https://api.contentful.com/spaces/u2viwgfeal0o/environments/master/entries/fIpsfQSOd22IsqMQCiG0K/published
|
595
595
|
body:
|
596
596
|
encoding: US-ASCII
|
597
597
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/2GmtCwDBcIu4giMgQGIIcq
|
5
|
+
uri: https://api.contentful.com/spaces/u2viwgfeal0o/environments/master/entries/2GmtCwDBcIu4giMgQGIIcq
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -119,7 +119,7 @@ http_interactions:
|
|
119
119
|
recorded_at: Wed, 20 Jan 2016 13:08:44 GMT
|
120
120
|
- request:
|
121
121
|
method: get
|
122
|
-
uri: https://api.contentful.com/spaces/u2viwgfeal0o/content_types/someType
|
122
|
+
uri: https://api.contentful.com/spaces/u2viwgfeal0o/environments/master/content_types/someType
|
123
123
|
body:
|
124
124
|
encoding: US-ASCII
|
125
125
|
string: ''
|
@@ -238,7 +238,7 @@ http_interactions:
|
|
238
238
|
recorded_at: Wed, 20 Jan 2016 13:08:46 GMT
|
239
239
|
- request:
|
240
240
|
method: put
|
241
|
-
uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/2GmtCwDBcIu4giMgQGIIcq
|
241
|
+
uri: https://api.contentful.com/spaces/u2viwgfeal0o/environments/master/entries/2GmtCwDBcIu4giMgQGIIcq
|
242
242
|
body:
|
243
243
|
encoding: UTF-8
|
244
244
|
string: '{"fields":{"name":{"en-GB":"Test With Previously Empty Field"},"value":{"en-GB":"goodbye"}}}'
|
@@ -355,7 +355,7 @@ http_interactions:
|
|
355
355
|
recorded_at: Wed, 20 Jan 2016 13:08:47 GMT
|
356
356
|
- request:
|
357
357
|
method: put
|
358
|
-
uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/2GmtCwDBcIu4giMgQGIIcq/published
|
358
|
+
uri: https://api.contentful.com/spaces/u2viwgfeal0o/environments/master/entries/2GmtCwDBcIu4giMgQGIIcq/published
|
359
359
|
body:
|
360
360
|
encoding: US-ASCII
|
361
361
|
string: ''
|
@@ -474,7 +474,7 @@ http_interactions:
|
|
474
474
|
recorded_at: Wed, 20 Jan 2016 13:08:47 GMT
|
475
475
|
- request:
|
476
476
|
method: put
|
477
|
-
uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/2GmtCwDBcIu4giMgQGIIcq
|
477
|
+
uri: https://api.contentful.com/spaces/u2viwgfeal0o/environments/master/entries/2GmtCwDBcIu4giMgQGIIcq
|
478
478
|
body:
|
479
479
|
encoding: UTF-8
|
480
480
|
string: '{"fields":{"name":{"en-GB":"Test With Previously Empty Field"},"value":{"en-GB":null}}}'
|
@@ -591,7 +591,7 @@ http_interactions:
|
|
591
591
|
recorded_at: Wed, 20 Jan 2016 13:08:49 GMT
|
592
592
|
- request:
|
593
593
|
method: put
|
594
|
-
uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/2GmtCwDBcIu4giMgQGIIcq/published
|
594
|
+
uri: https://api.contentful.com/spaces/u2viwgfeal0o/environments/master/entries/2GmtCwDBcIu4giMgQGIIcq/published
|
595
595
|
body:
|
596
596
|
encoding: US-ASCII
|
597
597
|
string: ''
|
@@ -2,23 +2,23 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.contentful.com/spaces/u2viwgfeal0o
|
5
|
+
uri: https://api.contentful.com/spaces/u2viwgfeal0o/environments/master
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
|
-
User-Agent:
|
11
|
-
-
|
10
|
+
X-Contentful-User-Agent:
|
11
|
+
- sdk contentful-management.rb/1.10.1; platform ruby/2.4.1; os macOS/16;
|
12
12
|
Authorization:
|
13
13
|
- Bearer <ACCESS_TOKEN>
|
14
14
|
Content-Type:
|
15
15
|
- application/vnd.contentful.management.v1+json
|
16
|
-
Content-Length:
|
17
|
-
- '0'
|
18
16
|
Connection:
|
19
17
|
- close
|
20
18
|
Host:
|
21
19
|
- api.contentful.com
|
20
|
+
User-Agent:
|
21
|
+
- http.rb/2.2.2
|
22
22
|
response:
|
23
23
|
status:
|
24
24
|
code: 200
|
@@ -27,7 +27,7 @@ http_interactions:
|
|
27
27
|
Accept-Ranges:
|
28
28
|
- bytes
|
29
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
|
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
31
|
Access-Control-Allow-Methods:
|
32
32
|
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
33
33
|
Access-Control-Allow-Origin:
|
@@ -38,34 +38,92 @@ http_interactions:
|
|
38
38
|
- '1728000'
|
39
39
|
Cache-Control:
|
40
40
|
- max-age=0
|
41
|
+
Cf-Organization-Id:
|
42
|
+
- 4SsuxQCaMaemfIms52Jr8s
|
43
|
+
Cf-Space-Id:
|
44
|
+
- u2viwgfeal0o
|
41
45
|
Content-Type:
|
42
46
|
- application/vnd.contentful.management.v1+json
|
43
47
|
Date:
|
44
|
-
-
|
48
|
+
- Thu, 15 Mar 2018 14:45:37 GMT
|
45
49
|
Etag:
|
46
|
-
-
|
50
|
+
- W/"fae2ff46cdeec0da7d526ce2974707b0"
|
47
51
|
Server:
|
48
|
-
-
|
49
|
-
Status:
|
50
|
-
- 200 OK
|
52
|
+
- Contentful
|
51
53
|
Strict-Transport-Security:
|
52
54
|
- max-age=15768000
|
53
55
|
X-Content-Type-Options:
|
54
56
|
- nosniff
|
57
|
+
X-Contentful-Ratelimit-Hour-Limit:
|
58
|
+
- '36000'
|
59
|
+
X-Contentful-Ratelimit-Hour-Remaining:
|
60
|
+
- '35990'
|
61
|
+
X-Contentful-Ratelimit-Reset:
|
62
|
+
- '0'
|
63
|
+
X-Contentful-Ratelimit-Second-Limit:
|
64
|
+
- '10'
|
65
|
+
X-Contentful-Ratelimit-Second-Remaining:
|
66
|
+
- '9'
|
55
67
|
X-Contentful-Request-Id:
|
56
|
-
-
|
68
|
+
- b1b3ed2fa6c2934a8723be06effbfd4a
|
69
|
+
X-Frame-Options:
|
70
|
+
- ALLOWALL
|
71
|
+
X-Xss-Protection:
|
72
|
+
- 1; mode=block
|
57
73
|
Content-Length:
|
58
|
-
- '
|
74
|
+
- '988'
|
59
75
|
Connection:
|
60
76
|
- Close
|
77
|
+
Set-Cookie:
|
78
|
+
- incap_ses_765_673446=M+ZNMWqgrEJsxQhBv9OdChCHqloAAAAAkpiUch6j8nB46z5SrMnQOA==;
|
79
|
+
path=/; Domain=.contentful.com
|
80
|
+
- nlbi_673446=Px6YRJAV5kIaml0P6lKYhQAAAADKIRA4nJTE57x7k44+SBN+; path=/; Domain=.contentful.com
|
81
|
+
- visid_incap_673446=aFNmTc/IQCeKnSywTym1xBCHqloAAAAAQUIPAAAAAAAyr0xYXO66kZzP1O0hgVEm;
|
82
|
+
expires=Fri, 15 Mar 2019 07:37:19 GMT; path=/; Domain=.contentful.com
|
83
|
+
X-Iinfo:
|
84
|
+
- 10-38011850-38011859 NNNN CT(99 93 0) RT(1521125136104 45) q(0 0 2 -1) r(4
|
85
|
+
4) U5
|
86
|
+
X-Cdn:
|
87
|
+
- Incapsula
|
61
88
|
body:
|
62
|
-
encoding:
|
89
|
+
encoding: ASCII-8BIT
|
63
90
|
string: |+
|
64
91
|
{
|
92
|
+
"name":"master",
|
65
93
|
"sys":{
|
66
|
-
"type":"
|
67
|
-
"id":"
|
94
|
+
"type":"Environment",
|
95
|
+
"id":"master",
|
68
96
|
"version":1,
|
97
|
+
"space":{
|
98
|
+
"sys":{
|
99
|
+
"type":"Link",
|
100
|
+
"linkType":"Space",
|
101
|
+
"id":"u2viwgfeal0o"
|
102
|
+
}
|
103
|
+
},
|
104
|
+
"status":{
|
105
|
+
"sys":{
|
106
|
+
"type":"Link",
|
107
|
+
"linkType":"Status",
|
108
|
+
"id":"ready"
|
109
|
+
}
|
110
|
+
},
|
111
|
+
"locales":[
|
112
|
+
{
|
113
|
+
"sys":{
|
114
|
+
"type":"Link",
|
115
|
+
"linkType":"Locale",
|
116
|
+
"id":"3M5Nx1y4TT11eaniCvOYvO"
|
117
|
+
}
|
118
|
+
},
|
119
|
+
{
|
120
|
+
"sys":{
|
121
|
+
"type":"Link",
|
122
|
+
"linkType":"Locale",
|
123
|
+
"id":"5dljKVqMYPVxC2R4K8rakF"
|
124
|
+
}
|
125
|
+
}
|
126
|
+
],
|
69
127
|
"createdBy":{
|
70
128
|
"sys":{
|
71
129
|
"type":"Link",
|
@@ -73,7 +131,7 @@ http_interactions:
|
|
73
131
|
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
74
132
|
}
|
75
133
|
},
|
76
|
-
"createdAt":"
|
134
|
+
"createdAt":"2017-12-07T10:08:21Z",
|
77
135
|
"updatedBy":{
|
78
136
|
"sys":{
|
79
137
|
"type":"Link",
|
@@ -81,39 +139,38 @@ http_interactions:
|
|
81
139
|
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
82
140
|
}
|
83
141
|
},
|
84
|
-
"updatedAt":"
|
85
|
-
}
|
86
|
-
"name":"management.rb - #73"
|
142
|
+
"updatedAt":"2017-12-07T10:08:21Z"
|
143
|
+
}
|
87
144
|
}
|
88
145
|
|
89
146
|
http_version:
|
90
|
-
recorded_at:
|
147
|
+
recorded_at: Thu, 15 Mar 2018 14:45:36 GMT
|
91
148
|
- request:
|
92
149
|
method: get
|
93
|
-
uri: https://api.contentful.com/spaces/u2viwgfeal0o/content_types
|
150
|
+
uri: https://api.contentful.com/spaces/u2viwgfeal0o/environments/master/content_types
|
94
151
|
body:
|
95
152
|
encoding: US-ASCII
|
96
153
|
string: ''
|
97
154
|
headers:
|
98
|
-
User-Agent:
|
99
|
-
-
|
155
|
+
X-Contentful-User-Agent:
|
156
|
+
- sdk contentful-management.rb/1.10.1; platform ruby/2.4.1; os macOS/16;
|
100
157
|
Authorization:
|
101
158
|
- Bearer <ACCESS_TOKEN>
|
102
159
|
Content-Type:
|
103
160
|
- application/vnd.contentful.management.v1+json
|
104
|
-
Content-Length:
|
105
|
-
- '0'
|
106
161
|
Connection:
|
107
162
|
- close
|
108
163
|
Host:
|
109
164
|
- api.contentful.com
|
165
|
+
User-Agent:
|
166
|
+
- http.rb/2.2.2
|
110
167
|
response:
|
111
168
|
status:
|
112
169
|
code: 200
|
113
170
|
message: OK
|
114
171
|
headers:
|
115
172
|
Access-Control-Allow-Headers:
|
116
|
-
- 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
|
173
|
+
- 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
|
117
174
|
Access-Control-Allow-Methods:
|
118
175
|
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
119
176
|
Access-Control-Allow-Origin:
|
@@ -127,25 +184,44 @@ http_interactions:
|
|
127
184
|
Content-Type:
|
128
185
|
- application/vnd.contentful.management.v1+json
|
129
186
|
Date:
|
130
|
-
-
|
187
|
+
- Thu, 15 Mar 2018 14:45:38 GMT
|
131
188
|
Etag:
|
132
|
-
- '"
|
189
|
+
- '"15867315ca965430c4e3bd5698f93e69"'
|
133
190
|
Server:
|
134
|
-
-
|
191
|
+
- Contentful
|
135
192
|
Strict-Transport-Security:
|
136
193
|
- max-age=15768000
|
137
194
|
X-Content-Type-Options:
|
138
195
|
- nosniff
|
196
|
+
X-Contentful-Ratelimit-Hour-Limit:
|
197
|
+
- '36000'
|
198
|
+
X-Contentful-Ratelimit-Hour-Remaining:
|
199
|
+
- '35989'
|
200
|
+
X-Contentful-Ratelimit-Reset:
|
201
|
+
- '0'
|
202
|
+
X-Contentful-Ratelimit-Second-Limit:
|
203
|
+
- '10'
|
204
|
+
X-Contentful-Ratelimit-Second-Remaining:
|
205
|
+
- '8'
|
139
206
|
X-Contentful-Request-Id:
|
140
|
-
-
|
141
|
-
X-Powered-By:
|
142
|
-
- Express
|
207
|
+
- 72dd9fc57390a9bb314647955831916e
|
143
208
|
Content-Length:
|
144
|
-
- '
|
209
|
+
- '1735'
|
145
210
|
Connection:
|
146
211
|
- Close
|
212
|
+
Set-Cookie:
|
213
|
+
- incap_ses_765_673446=u32CZuraAUAKxwhBv9OdChGHqloAAAAAkFRPr+K7IpDx5hzkNZjfAw==;
|
214
|
+
path=/; Domain=.contentful.com
|
215
|
+
- nlbi_673446=ihdeE9sGhTWyNoDo6lKYhQAAAADelG5OA5MKWt9QieQDm/Cj; path=/; Domain=.contentful.com
|
216
|
+
- visid_incap_673446=XDixXgLIQSiWHVvsKonauBGHqloAAAAAQUIPAAAAAADH+5www8aayhNLNI/ssbI8;
|
217
|
+
expires=Fri, 15 Mar 2019 07:37:36 GMT; path=/; Domain=.contentful.com
|
218
|
+
X-Iinfo:
|
219
|
+
- 9-33287443-33287462 NNNN CT(87 90 0) RT(1521125136629 52) q(0 0 2 -1) r(9
|
220
|
+
9) U5
|
221
|
+
X-Cdn:
|
222
|
+
- Incapsula
|
147
223
|
body:
|
148
|
-
encoding:
|
224
|
+
encoding: ASCII-8BIT
|
149
225
|
string: |
|
150
226
|
{
|
151
227
|
"sys": {
|
@@ -156,27 +232,18 @@ http_interactions:
|
|
156
232
|
"limit": 100,
|
157
233
|
"items": [
|
158
234
|
{
|
159
|
-
"name": "SomeType",
|
160
|
-
"fields": [
|
161
|
-
{
|
162
|
-
"name": "name",
|
163
|
-
"id": "name",
|
164
|
-
"type": "Symbol"
|
165
|
-
},
|
166
|
-
{
|
167
|
-
"name": "value",
|
168
|
-
"id": "value",
|
169
|
-
"type": "Symbol",
|
170
|
-
"localized": true,
|
171
|
-
"validations": []
|
172
|
-
}
|
173
|
-
],
|
174
|
-
"description": "",
|
175
|
-
"displayField": "name",
|
176
235
|
"sys": {
|
236
|
+
"space": {
|
237
|
+
"sys": {
|
238
|
+
"type": "Link",
|
239
|
+
"linkType": "Space",
|
240
|
+
"id": "u2viwgfeal0o"
|
241
|
+
}
|
242
|
+
},
|
177
243
|
"id": "someType",
|
178
244
|
"type": "ContentType",
|
179
245
|
"createdAt": "2015-12-07T13:32:02.610Z",
|
246
|
+
"updatedAt": "2015-12-07T13:36:36.026Z",
|
180
247
|
"createdBy": {
|
181
248
|
"sys": {
|
182
249
|
"type": "Link",
|
@@ -184,16 +251,15 @@ http_interactions:
|
|
184
251
|
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
185
252
|
}
|
186
253
|
},
|
187
|
-
"
|
254
|
+
"updatedBy": {
|
188
255
|
"sys": {
|
189
256
|
"type": "Link",
|
190
|
-
"linkType": "
|
191
|
-
"id": "
|
257
|
+
"linkType": "User",
|
258
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
192
259
|
}
|
193
260
|
},
|
194
|
-
"firstPublishedAt": "2015-12-07T13:32:03.012Z",
|
195
261
|
"publishedCounter": 2,
|
196
|
-
"
|
262
|
+
"version": 5,
|
197
263
|
"publishedBy": {
|
198
264
|
"sys": {
|
199
265
|
"type": "Link",
|
@@ -202,148 +268,37 @@ http_interactions:
|
|
202
268
|
}
|
203
269
|
},
|
204
270
|
"publishedVersion": 4,
|
205
|
-
"
|
206
|
-
"
|
207
|
-
|
208
|
-
|
209
|
-
"type": "Link",
|
210
|
-
"linkType": "User",
|
211
|
-
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
212
|
-
}
|
213
|
-
}
|
214
|
-
}
|
215
|
-
}
|
216
|
-
]
|
217
|
-
}
|
218
|
-
http_version:
|
219
|
-
recorded_at: Tue, 19 Jan 2016 14:18:04 GMT
|
220
|
-
- request:
|
221
|
-
method: get
|
222
|
-
uri: https://api.contentful.com/spaces/u2viwgfeal0o/content_types
|
223
|
-
body:
|
224
|
-
encoding: US-ASCII
|
225
|
-
string: ''
|
226
|
-
headers:
|
227
|
-
User-Agent:
|
228
|
-
- RubyContentfulManagementGem/0.7.3
|
229
|
-
Authorization:
|
230
|
-
- Bearer <ACCESS_TOKEN>
|
231
|
-
Content-Type:
|
232
|
-
- application/vnd.contentful.management.v1+json
|
233
|
-
Content-Length:
|
234
|
-
- '0'
|
235
|
-
Connection:
|
236
|
-
- close
|
237
|
-
Host:
|
238
|
-
- api.contentful.com
|
239
|
-
response:
|
240
|
-
status:
|
241
|
-
code: 200
|
242
|
-
message: OK
|
243
|
-
headers:
|
244
|
-
Access-Control-Allow-Headers:
|
245
|
-
- 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
|
246
|
-
Access-Control-Allow-Methods:
|
247
|
-
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
248
|
-
Access-Control-Allow-Origin:
|
249
|
-
- "*"
|
250
|
-
Access-Control-Expose-Headers:
|
251
|
-
- Etag
|
252
|
-
Access-Control-Max-Age:
|
253
|
-
- '1728000'
|
254
|
-
Cf-Space-Id:
|
255
|
-
- u2viwgfeal0o
|
256
|
-
Content-Type:
|
257
|
-
- application/vnd.contentful.management.v1+json
|
258
|
-
Date:
|
259
|
-
- Tue, 19 Jan 2016 14:18:09 GMT
|
260
|
-
Etag:
|
261
|
-
- '"c95db41ce3f41bfc50ff08c04e13a4e2"'
|
262
|
-
Server:
|
263
|
-
- nginx
|
264
|
-
Strict-Transport-Security:
|
265
|
-
- max-age=15768000
|
266
|
-
X-Content-Type-Options:
|
267
|
-
- nosniff
|
268
|
-
X-Contentful-Request-Id:
|
269
|
-
- content-api:1SXnQwLCBCS8OC2EmCsQuS
|
270
|
-
X-Powered-By:
|
271
|
-
- Express
|
272
|
-
Content-Length:
|
273
|
-
- '1504'
|
274
|
-
Connection:
|
275
|
-
- Close
|
276
|
-
body:
|
277
|
-
encoding: UTF-8
|
278
|
-
string: |
|
279
|
-
{
|
280
|
-
"sys": {
|
281
|
-
"type": "Array"
|
282
|
-
},
|
283
|
-
"total": 1,
|
284
|
-
"skip": 0,
|
285
|
-
"limit": 100,
|
286
|
-
"items": [
|
287
|
-
{
|
271
|
+
"firstPublishedAt": "2015-12-07T13:32:03.012Z",
|
272
|
+
"publishedAt": "2015-12-07T13:36:35.994Z"
|
273
|
+
},
|
274
|
+
"displayField": "name",
|
288
275
|
"name": "SomeType",
|
276
|
+
"description": "",
|
289
277
|
"fields": [
|
290
278
|
{
|
291
|
-
"name": "name",
|
292
279
|
"id": "name",
|
293
|
-
"
|
280
|
+
"name": "name",
|
281
|
+
"type": "Symbol",
|
282
|
+
"localized": false,
|
283
|
+
"required": false,
|
284
|
+
"validations": [],
|
285
|
+
"disabled": false,
|
286
|
+
"omitted": false
|
294
287
|
},
|
295
288
|
{
|
296
|
-
"name": "value",
|
297
289
|
"id": "value",
|
290
|
+
"name": "value",
|
298
291
|
"type": "Symbol",
|
299
292
|
"localized": true,
|
300
|
-
"
|
293
|
+
"required": false,
|
294
|
+
"validations": [],
|
295
|
+
"disabled": false,
|
296
|
+
"omitted": false
|
301
297
|
}
|
302
|
-
]
|
303
|
-
"description": "",
|
304
|
-
"displayField": "name",
|
305
|
-
"sys": {
|
306
|
-
"id": "someType",
|
307
|
-
"type": "ContentType",
|
308
|
-
"createdAt": "2015-12-07T13:32:02.610Z",
|
309
|
-
"createdBy": {
|
310
|
-
"sys": {
|
311
|
-
"type": "Link",
|
312
|
-
"linkType": "User",
|
313
|
-
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
314
|
-
}
|
315
|
-
},
|
316
|
-
"space": {
|
317
|
-
"sys": {
|
318
|
-
"type": "Link",
|
319
|
-
"linkType": "Space",
|
320
|
-
"id": "u2viwgfeal0o"
|
321
|
-
}
|
322
|
-
},
|
323
|
-
"firstPublishedAt": "2015-12-07T13:32:03.012Z",
|
324
|
-
"publishedCounter": 2,
|
325
|
-
"publishedAt": "2015-12-07T13:36:35.994Z",
|
326
|
-
"publishedBy": {
|
327
|
-
"sys": {
|
328
|
-
"type": "Link",
|
329
|
-
"linkType": "User",
|
330
|
-
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
331
|
-
}
|
332
|
-
},
|
333
|
-
"publishedVersion": 4,
|
334
|
-
"version": 5,
|
335
|
-
"updatedAt": "2015-12-07T13:36:36.026Z",
|
336
|
-
"updatedBy": {
|
337
|
-
"sys": {
|
338
|
-
"type": "Link",
|
339
|
-
"linkType": "User",
|
340
|
-
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
341
|
-
}
|
342
|
-
}
|
343
|
-
}
|
298
|
+
]
|
344
299
|
}
|
345
300
|
]
|
346
301
|
}
|
347
302
|
http_version:
|
348
|
-
recorded_at:
|
349
|
-
recorded_with: VCR
|
303
|
+
recorded_at: Thu, 15 Mar 2018 14:45:37 GMT
|
304
|
+
recorded_with: VCR 4.0.0
|