contentful-management 2.9.0 → 2.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +37 -0
  3. data/README.md +19 -13
  4. data/contentful-management.gemspec +6 -5
  5. data/lib/contentful/management/client.rb +10 -12
  6. data/lib/contentful/management/{client_usage_period_methods_factory.rb → client_organization_periodic_usage_methods_factory.rb} +3 -4
  7. data/lib/contentful/management/client_space_methods_factory.rb +2 -2
  8. data/lib/contentful/management/{client_api_usage_methods_factory.rb → client_space_periodic_usage_methods_factory.rb} +4 -11
  9. data/lib/contentful/management/entry.rb +14 -12
  10. data/lib/contentful/management/environment.rb +3 -2
  11. data/lib/contentful/management/organization.rb +8 -8
  12. data/lib/contentful/management/{api_usage.rb → organization_periodic_usage.rb} +13 -18
  13. data/lib/contentful/management/resource.rb +7 -4
  14. data/lib/contentful/management/resource/environment_aware.rb +11 -8
  15. data/lib/contentful/management/resource_builder.rb +5 -6
  16. data/lib/contentful/management/space.rb +2 -2
  17. data/lib/contentful/management/{usage_period.rb → space_periodic_usage.rb} +12 -9
  18. data/lib/contentful/management/validation.rb +6 -1
  19. data/lib/contentful/management/version.rb +1 -1
  20. data/spec/fixtures/vcr_cassettes/asset/196_environment_id.yml +140 -0
  21. data/spec/fixtures/vcr_cassettes/content_type/196_retain_environment_id.yml +150 -0
  22. data/spec/fixtures/vcr_cassettes/entry/issue_215_1.yml +905 -0
  23. data/spec/fixtures/vcr_cassettes/entry/issue_215_2.yml +899 -0
  24. data/spec/fixtures/vcr_cassettes/entry/issue_215_3.yml +893 -0
  25. data/spec/fixtures/vcr_cassettes/organization_periodic_usage/all.yml +368 -0
  26. data/spec/fixtures/vcr_cassettes/organization_periodic_usage/filters.yml +167 -0
  27. data/spec/fixtures/vcr_cassettes/space_periodic_usage/all.yml +6800 -0
  28. data/spec/fixtures/vcr_cassettes/space_periodic_usage/filters.yml +1976 -0
  29. data/spec/lib/contentful/management/asset_spec.rb +8 -0
  30. data/spec/lib/contentful/management/content_type_spec.rb +6 -0
  31. data/spec/lib/contentful/management/entry_spec.rb +48 -0
  32. data/spec/lib/contentful/management/organization_periodic_usage_spec.rb +36 -0
  33. data/spec/lib/contentful/management/space_periodic_usage_spec.rb +36 -0
  34. metadata +60 -32
  35. data/spec/fixtures/vcr_cassettes/api_usage/all.yml +0 -155
  36. data/spec/fixtures/vcr_cassettes/usage_period/all.yml +0 -114
  37. data/spec/lib/contentful/management/api_usage_spec.rb +0 -28
  38. data/spec/lib/contentful/management/usage_period_spec.rb +0 -27
@@ -12,9 +12,7 @@ require_relative 'webhook'
12
12
  require_relative 'api_key'
13
13
  require_relative 'resource'
14
14
  require_relative 'snapshot'
15
- require_relative 'api_usage'
16
15
  require_relative 'environment'
17
- require_relative 'usage_period'
18
16
  require_relative 'organization'
19
17
  require_relative 'content_type'
20
18
  require_relative 'webhook_call'
@@ -24,7 +22,9 @@ require_relative 'webhook_health'
24
22
  require_relative 'preview_api_key'
25
23
  require_relative 'space_membership'
26
24
  require_relative 'editor_interface'
25
+ require_relative 'space_periodic_usage'
27
26
  require_relative 'personal_access_token'
27
+ require_relative 'organization_periodic_usage'
28
28
 
29
29
  module Contentful
30
30
  module Management
@@ -37,8 +37,8 @@ module Contentful
37
37
  'Space' => Contentful::Management::Space,
38
38
  'SpaceMembership' => Contentful::Management::SpaceMembership,
39
39
  'Organization' => Contentful::Management::Organization,
40
- 'ApiUsage' => Contentful::Management::ApiUsage,
41
- 'UsagePeriod' => Contentful::Management::UsagePeriod,
40
+ 'SpacePeriodicUsage' => Contentful::Management::SpacePeriodicUsage,
41
+ 'OrganizationPeriodicUsage' => Contentful::Management::OrganizationPeriodicUsage,
42
42
  'User' => Contentful::Management::User,
43
43
  'Environment' => Contentful::Management::Environment,
44
44
  'ContentType' => Contentful::Management::ContentType,
@@ -73,7 +73,6 @@ module Contentful
73
73
  @included_resources = {}
74
74
  @known_resources = Hash.new { |hash, key| hash[key] = {} }
75
75
  @nested_locales = true
76
- @default_locale = (client.configuration || Contentful::Management::Client::DEFAULT_CONFIGURATION)[:default_locale]
77
76
  @resource_mapping = default_resource_mapping.merge(resource_mapping)
78
77
  @entry_mapping = default_entry_mapping.merge(entry_mapping)
79
78
  end
@@ -113,7 +112,7 @@ module Contentful
113
112
  def create_resource(object)
114
113
  res_class = detect_resource_class(object)
115
114
  @nested_locales ||= res_class.nested_locale_fields?
116
- res = res_class.new(object, response.request, client, @nested_locales, @default_locale)
115
+ res = res_class.new(object, response.request, client, @nested_locales)
117
116
 
118
117
  add_to_known_resources res
119
118
  replace_children res, object
@@ -35,8 +35,8 @@ module Contentful
35
35
  # @param [Contentful::Management::Client] client
36
36
  #
37
37
  # @return [Contentful::Management::Array<Contentful::Management::Space>]
38
- def self.all(client)
39
- ClientSpaceMethodsFactory.new(client).all
38
+ def self.all(client, query = {})
39
+ ClientSpaceMethodsFactory.new(client).all(query)
40
40
  end
41
41
 
42
42
  # Gets a specific space.
@@ -2,32 +2,35 @@ require_relative 'resource'
2
2
 
3
3
  module Contentful
4
4
  module Management
5
- # Resource class for UsagePeriod.
6
- # @see _ https://www.contentful.com/developers/docs/references/content-management-api/#/reference/api-usages
7
- class UsagePeriod
5
+ # Resource class for SpacePeriodicUsage.
6
+ # @see _ https://www.contentful.com/developers/docs/references/content-management-api/#/reference/usage/space-usage/get-space-usage/console/curl
7
+ class SpacePeriodicUsage
8
8
  include Contentful::Management::Resource
9
9
  include Contentful::Management::Resource::Refresher
10
10
  include Contentful::Management::Resource::SystemProperties
11
11
 
12
- property :startDate, :date
13
- property :endDate, :date
12
+ property :metric, :string
13
+ property :usage, :integer
14
+ property :usagePerDay, :object
15
+ property :unitOfMeasure, :string
16
+ property :dateRange, :object
14
17
 
15
18
  # @private
16
19
  def self.build_endpoint(endpoint_options)
17
20
  organization_id = endpoint_options[:organization_id]
18
21
 
19
- "organizations/#{organization_id}/usage_periods"
22
+ "organizations/#{organization_id}/space_periodic_usages"
20
23
  end
21
24
 
22
- # Gets all usage periods for a given organization.
25
+ # Gets all space periodic usages for a given organization.
23
26
  #
24
27
  # @param [Contentful::Management::Client] client
25
28
  # @param [String] organization_id
26
29
  # @param [Hash] params
27
30
  #
28
- # @return [Contentful::Management::Array<Contentful::Management::UsagePeriod>]
31
+ # @return [Contentful::Management::Array<Contentful::Management::SpacePeriodicUsage>]
29
32
  def self.all(client, organization_id, params = {})
30
- ClientUsagePeriodMethodsFactory.new(client, organization_id).all(params)
33
+ ClientSpacePeriodicUsageMethodsFactory.new(client, organization_id).all(params)
31
34
  end
32
35
 
33
36
  # Not supported
@@ -4,6 +4,9 @@ module Contentful
4
4
  module Management
5
5
  # A ContentType's validations schema
6
6
  class Validation
7
+ # Properties not specific to a field type validation
8
+ NON_TYPE_PROPERTIES = %i[validations message].freeze
9
+
7
10
  include Contentful::Management::Resource
8
11
 
9
12
  property :in, :array
@@ -19,6 +22,8 @@ module Contentful
19
22
  property :assetImageDimensions, :hash
20
23
  property :enabledNodeTypes, :array
21
24
  property :enabledMarks, :array
25
+ property :nodes, :hash
26
+ property :message, :string
22
27
 
23
28
  # @private
24
29
  def properties_to_hash
@@ -30,7 +35,7 @@ module Contentful
30
35
  # Returns type of validation
31
36
  # @return [Symbol]
32
37
  def type
33
- properties.keys.reject { |key| key == :validations }.each do |type|
38
+ properties.keys.reject { |key| NON_TYPE_PROPERTIES.include?(key) }.each do |type|
34
39
  value = send(Support.snakify(type))
35
40
  return type if !value.nil? && value
36
41
  end
@@ -3,6 +3,6 @@ module Contentful
3
3
  # Management Namespace
4
4
  module Management
5
5
  # Gem Version
6
- VERSION = '2.9.0'.freeze
6
+ VERSION = '2.12.1'.freeze
7
7
  end
8
8
  end
@@ -0,0 +1,140 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.contentful.com/spaces/facgnwwgj5fe/environments/testing
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-Contentful-User-Agent:
11
+ - sdk contentful-management.rb/2.10.0; platform ruby/2.6.3; os macOS/18;
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,X-Contentful-Source-Environment,X-Contentful-Team,X-Contentful-Parent-Id
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
+ Contentful-Api:
48
+ - cma
49
+ Date:
50
+ - Wed, 12 Jun 2019 09:50:55 GMT
51
+ Etag:
52
+ - W/"b5f8d465c58fdb2d4de7e800b00f1eaa"
53
+ Referrer-Policy:
54
+ - strict-origin-when-cross-origin
55
+ Server:
56
+ - Contentful
57
+ Strict-Transport-Security:
58
+ - max-age=15768000
59
+ X-Content-Type-Options:
60
+ - nosniff
61
+ X-Contentful-Ratelimit-Hour-Limit:
62
+ - '36000'
63
+ X-Contentful-Ratelimit-Hour-Remaining:
64
+ - '35999'
65
+ X-Contentful-Ratelimit-Reset:
66
+ - '0'
67
+ X-Contentful-Ratelimit-Second-Limit:
68
+ - '10'
69
+ X-Contentful-Ratelimit-Second-Remaining:
70
+ - '9'
71
+ X-Contentful-Request-Id:
72
+ - 2373953b0bf0c685ba5661a9fe0b5d67
73
+ X-Download-Options:
74
+ - noopen
75
+ X-Frame-Options:
76
+ - ALLOWALL
77
+ X-Permitted-Cross-Domain-Policies:
78
+ - none
79
+ X-Xss-Protection:
80
+ - 1; mode=block
81
+ Content-Length:
82
+ - '692'
83
+ Connection:
84
+ - Close
85
+ Set-Cookie:
86
+ - incap_ses_1077_673446=RtgaHDXP7XMdFb6xI0byDv/KAF0AAAAACSGiFccitmBt23MZnqPWxA==;
87
+ path=/; Domain=.contentful.com
88
+ - nlbi_673446=7nwaCaO7f3nYLwxVYMlkBAAAAAD3ZpP6TCMI5gIrwYpyuK9W; path=/; Domain=.contentful.com
89
+ - visid_incap_673446=HtXBvewwRv2t0RzGAoorGv/KAF0AAAAAQUIPAAAAAABa3NNCQ4sPwmHFDGhpUKoq;
90
+ expires=Thu, 11 Jun 2020 08:51:05 GMT; path=/; Domain=.contentful.com
91
+ X-Iinfo:
92
+ - 4-7987266-7987270 NNNN CT(108 108 0) RT(1560333054770 102) q(0 0 2 -1) r(4
93
+ 4) U5
94
+ X-Cdn:
95
+ - Incapsula
96
+ body:
97
+ encoding: ASCII-8BIT
98
+ string: |+
99
+ {
100
+ "name":"testing 2",
101
+ "sys":{
102
+ "type":"Environment",
103
+ "id":"testing",
104
+ "version":7,
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
+ "createdBy":{
120
+ "sys":{
121
+ "type":"Link",
122
+ "linkType":"User",
123
+ "id":"4SejVrWT96dvL9IV4Nb7sQ"
124
+ }
125
+ },
126
+ "createdAt":"2018-02-27T10:19:01Z",
127
+ "updatedBy":{
128
+ "sys":{
129
+ "type":"Link",
130
+ "linkType":"User",
131
+ "id":"4SejVrWT96dvL9IV4Nb7sQ"
132
+ }
133
+ },
134
+ "updatedAt":"2019-04-02T13:32:30Z"
135
+ }
136
+ }
137
+
138
+ http_version:
139
+ recorded_at: Wed, 12 Jun 2019 09:50:55 GMT
140
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,150 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.contentful.com/spaces/facgnwwgj5fe/environments/testing/content_types/foo
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-Contentful-User-Agent:
11
+ - sdk contentful-management.rb/2.10.0; platform ruby/2.6.3; os macOS/18;
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
+ Access-Control-Allow-Headers:
28
+ - Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature,X-Contentful-Source-Environment,X-Contentful-Team,X-Contentful-Parent-Id
29
+ Access-Control-Allow-Methods:
30
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
31
+ Access-Control-Allow-Origin:
32
+ - "*"
33
+ Access-Control-Expose-Headers:
34
+ - Etag
35
+ Access-Control-Max-Age:
36
+ - '1728000'
37
+ Cf-Environment-Id:
38
+ - testing
39
+ Cf-Space-Id:
40
+ - facgnwwgj5fe
41
+ Content-Type:
42
+ - application/vnd.contentful.management.v1+json
43
+ Contentful-Api:
44
+ - cma
45
+ Date:
46
+ - Wed, 12 Jun 2019 09:53:39 GMT
47
+ Etag:
48
+ - '"0b2c5704e213e8a4a0dd2c52b41f69f6"'
49
+ Server:
50
+ - Contentful
51
+ Strict-Transport-Security:
52
+ - max-age=15768000
53
+ X-Content-Type-Options:
54
+ - nosniff
55
+ X-Contentful-Ratelimit-Hour-Limit:
56
+ - '36000'
57
+ X-Contentful-Ratelimit-Hour-Remaining:
58
+ - '35999'
59
+ X-Contentful-Ratelimit-Reset:
60
+ - '0'
61
+ X-Contentful-Ratelimit-Second-Limit:
62
+ - '10'
63
+ X-Contentful-Ratelimit-Second-Remaining:
64
+ - '9'
65
+ X-Contentful-Request-Id:
66
+ - f5fddca25cc4f8e04c8d81881e6e7701
67
+ Content-Length:
68
+ - '1291'
69
+ Connection:
70
+ - Close
71
+ Set-Cookie:
72
+ - incap_ses_1077_673446=BpbBNbCuYjrQIb6xI0byDqPLAF0AAAAAZh/XsY8rfyTQa65eQDXXQA==;
73
+ path=/; Domain=.contentful.com
74
+ - nlbi_673446=EDV6F0YIwmCvoc7iYMlkBAAAAACzIXkMlBj6/0YOnyu4iuW5; path=/; Domain=.contentful.com
75
+ - visid_incap_673446=RDpZ/bR1RpCWIvRJhiD7DaPLAF0AAAAAQUIPAAAAAADdNxoQbzqM+ClPhb8yvpKl;
76
+ expires=Thu, 11 Jun 2020 08:51:29 GMT; path=/; Domain=.contentful.com
77
+ X-Iinfo:
78
+ - 13-3220957-3220958 NNNN CT(0 0 0) RT(1560333218442 92) q(0 0 0 -1) r(10 10)
79
+ U5
80
+ X-Cdn:
81
+ - Incapsula
82
+ body:
83
+ encoding: ASCII-8BIT
84
+ string: |
85
+ {
86
+ "sys": {
87
+ "space": {
88
+ "sys": {
89
+ "type": "Link",
90
+ "linkType": "Space",
91
+ "id": "facgnwwgj5fe"
92
+ }
93
+ },
94
+ "id": "foo",
95
+ "type": "ContentType",
96
+ "createdAt": "2017-03-02T19:32:52.225Z",
97
+ "updatedAt": "2017-03-10T15:38:16.371Z",
98
+ "environment": {
99
+ "sys": {
100
+ "id": "testing",
101
+ "type": "Link",
102
+ "linkType": "Environment"
103
+ }
104
+ },
105
+ "publishedVersion": 6,
106
+ "publishedAt": "2017-03-02T22:41:20.685Z",
107
+ "firstPublishedAt": "2017-03-02T21:51:34.581Z",
108
+ "createdBy": {
109
+ "sys": {
110
+ "type": "Link",
111
+ "linkType": "User",
112
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
113
+ }
114
+ },
115
+ "updatedBy": {
116
+ "sys": {
117
+ "type": "Link",
118
+ "linkType": "User",
119
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
120
+ }
121
+ },
122
+ "publishedCounter": 3,
123
+ "version": 9,
124
+ "publishedBy": {
125
+ "sys": {
126
+ "type": "Link",
127
+ "linkType": "User",
128
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
129
+ }
130
+ }
131
+ },
132
+ "displayField": "name",
133
+ "name": "foo",
134
+ "description": "",
135
+ "fields": [
136
+ {
137
+ "id": "name",
138
+ "name": "name",
139
+ "type": "Symbol",
140
+ "localized": false,
141
+ "required": false,
142
+ "validations": [],
143
+ "disabled": false,
144
+ "omitted": false
145
+ }
146
+ ]
147
+ }
148
+ http_version:
149
+ recorded_at: Wed, 12 Jun 2019 09:53:40 GMT
150
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,905 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.contentful.com/spaces/vuo79u060fmw
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ X-Contentful-User-Agent:
11
+ - sdk contentful-management.rb/2.12.0; platform ruby/2.6.3; os macOS/18;
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/4.4.1
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,X-Contentful-Source-Environment,X-Contentful-Team,X-Contentful-Parent-Id,x-contentful-validate-only,X-Contentful-Skip-UI-Draft-Validation,X-Contentful-Marketplace,X-Contentful-UI-Content-Auto-Save
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
+ - vuo79u060fmw
45
+ Content-Type:
46
+ - application/vnd.contentful.management.v1+json
47
+ Contentful-Api:
48
+ - cma
49
+ Date:
50
+ - Thu, 02 Jul 2020 11:08:58 GMT
51
+ Etag:
52
+ - W/"600c18d721048034dcdaf8c7b867fe49"
53
+ Referrer-Policy:
54
+ - strict-origin-when-cross-origin
55
+ Server:
56
+ - Contentful
57
+ Strict-Transport-Security:
58
+ - max-age=15768000
59
+ X-Content-Type-Options:
60
+ - nosniff
61
+ X-Contentful-Ratelimit-Hour-Limit:
62
+ - '36000'
63
+ X-Contentful-Ratelimit-Hour-Remaining:
64
+ - '35999'
65
+ X-Contentful-Ratelimit-Reset:
66
+ - '0'
67
+ X-Contentful-Ratelimit-Second-Limit:
68
+ - '10'
69
+ X-Contentful-Ratelimit-Second-Remaining:
70
+ - '9'
71
+ X-Contentful-Request-Id:
72
+ - af7ffa726487d39fbb0755d87c7f865e
73
+ X-Download-Options:
74
+ - noopen
75
+ X-Frame-Options:
76
+ - ALLOWALL
77
+ X-Permitted-Cross-Domain-Policies:
78
+ - none
79
+ X-Xss-Protection:
80
+ - 1; mode=block
81
+ Content-Length:
82
+ - '609'
83
+ Connection:
84
+ - Close
85
+ Set-Cookie:
86
+ - incap_ses_878_673446=euo+SzmYolOzeTzLXUgvDErA/V4AAAAAtY6wQXeXAlFVRjf2r6gB7Q==;
87
+ path=/; Domain=.contentful.com
88
+ - nlbi_673446=VGbBVyT4hS+nbM0mYMlkBAAAAABvU5CnUYhBaZKkt0VuKinw; path=/; Domain=.contentful.com
89
+ - visid_incap_673446=ffctK6+pRNCn6rVyZ0UCMkrA/V4AAAAAQUIPAAAAAABjOwLlgsYy0JoGJPuS9813;
90
+ expires=Fri, 02 Jul 2021 06:56:32 GMT; HttpOnly; path=/; Domain=.contentful.com
91
+ X-Cdn:
92
+ - Incapsula
93
+ X-Iinfo:
94
+ - 12-35946183-35946197 NNNY CT(0 0 0) RT(1593688137916 66) q(0 0 0 -1) r(1 1)
95
+ U5
96
+ body:
97
+ encoding: ASCII-8BIT
98
+ string: |+
99
+ {
100
+ "name":"management.rb - #215",
101
+ "sys":{
102
+ "type":"Space",
103
+ "id":"vuo79u060fmw",
104
+ "version":1,
105
+ "createdBy":{
106
+ "sys":{
107
+ "type":"Link",
108
+ "linkType":"User",
109
+ "id":"4SejVrWT96dvL9IV4Nb7sQ"
110
+ }
111
+ },
112
+ "createdAt":"2020-07-02T10:40:30Z",
113
+ "updatedBy":{
114
+ "sys":{
115
+ "type":"Link",
116
+ "linkType":"User",
117
+ "id":"4SejVrWT96dvL9IV4Nb7sQ"
118
+ }
119
+ },
120
+ "updatedAt":"2020-07-02T10:40:30Z",
121
+ "organization":{
122
+ "sys":{
123
+ "type":"Link",
124
+ "linkType":"Organization",
125
+ "id":"4SsuxQCaMaemfIms52Jr8s"
126
+ }
127
+ }
128
+ }
129
+ }
130
+
131
+ http_version:
132
+ recorded_at: Thu, 02 Jul 2020 11:08:58 GMT
133
+ - request:
134
+ method: get
135
+ uri: https://api.contentful.com/spaces/vuo79u060fmw/environments/master
136
+ body:
137
+ encoding: UTF-8
138
+ string: ''
139
+ headers:
140
+ X-Contentful-User-Agent:
141
+ - sdk contentful-management.rb/2.12.0; platform ruby/2.6.3; os macOS/18;
142
+ Authorization:
143
+ - Bearer <ACCESS_TOKEN>
144
+ Content-Type:
145
+ - application/vnd.contentful.management.v1+json
146
+ Connection:
147
+ - close
148
+ Host:
149
+ - api.contentful.com
150
+ User-Agent:
151
+ - http.rb/4.4.1
152
+ response:
153
+ status:
154
+ code: 200
155
+ message: OK
156
+ headers:
157
+ Accept-Ranges:
158
+ - bytes
159
+ Access-Control-Allow-Headers:
160
+ - 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,X-Contentful-Source-Environment,X-Contentful-Team,X-Contentful-Parent-Id,x-contentful-validate-only,X-Contentful-Skip-UI-Draft-Validation,X-Contentful-Marketplace,X-Contentful-UI-Content-Auto-Save
161
+ Access-Control-Allow-Methods:
162
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
163
+ Access-Control-Allow-Origin:
164
+ - "*"
165
+ Access-Control-Expose-Headers:
166
+ - Etag
167
+ Access-Control-Max-Age:
168
+ - '1728000'
169
+ Cache-Control:
170
+ - max-age=0
171
+ Cf-Organization-Id:
172
+ - 4SsuxQCaMaemfIms52Jr8s
173
+ Cf-Space-Id:
174
+ - vuo79u060fmw
175
+ Content-Type:
176
+ - application/vnd.contentful.management.v1+json
177
+ Contentful-Api:
178
+ - cma
179
+ Date:
180
+ - Thu, 02 Jul 2020 11:08:58 GMT
181
+ Etag:
182
+ - W/"a282fd54c09fd4a1e6f9f8e3cec37e64"
183
+ Referrer-Policy:
184
+ - strict-origin-when-cross-origin
185
+ Server:
186
+ - Contentful
187
+ Strict-Transport-Security:
188
+ - max-age=15768000
189
+ X-Content-Type-Options:
190
+ - nosniff
191
+ X-Contentful-Ratelimit-Hour-Limit:
192
+ - '36000'
193
+ X-Contentful-Ratelimit-Hour-Remaining:
194
+ - '35998'
195
+ X-Contentful-Ratelimit-Reset:
196
+ - '0'
197
+ X-Contentful-Ratelimit-Second-Limit:
198
+ - '10'
199
+ X-Contentful-Ratelimit-Second-Remaining:
200
+ - '8'
201
+ X-Contentful-Request-Id:
202
+ - 6587a835e586e57c932221acc06977da
203
+ X-Download-Options:
204
+ - noopen
205
+ X-Frame-Options:
206
+ - ALLOWALL
207
+ X-Permitted-Cross-Domain-Policies:
208
+ - none
209
+ X-Xss-Protection:
210
+ - 1; mode=block
211
+ Content-Length:
212
+ - '688'
213
+ Connection:
214
+ - Close
215
+ Set-Cookie:
216
+ - incap_ses_878_673446=2NuNU/wCkE37eTzLXUgvDErA/V4AAAAAOukJY9nfib3fkqOHlSWbVw==;
217
+ path=/; Domain=.contentful.com
218
+ - nlbi_673446=4seLRmaeViuExU4OYMlkBAAAAAAXnWH5RpVXypW5bSoPMWHA; path=/; Domain=.contentful.com
219
+ - visid_incap_673446=oKF+tsyVQZeBdRjaV9ITE0rA/V4AAAAAQUIPAAAAAAD0a+lkJgSpMhZJs00uQDV5;
220
+ expires=Fri, 02 Jul 2021 06:56:32 GMT; HttpOnly; path=/; Domain=.contentful.com
221
+ X-Cdn:
222
+ - Incapsula
223
+ X-Iinfo:
224
+ - 9-10766258-10766259 NNNY CT(0 0 0) RT(1593688138241 56) q(0 0 0 -1) r(2 2)
225
+ U5
226
+ body:
227
+ encoding: ASCII-8BIT
228
+ string: |+
229
+ {
230
+ "name":"master",
231
+ "sys":{
232
+ "type":"Environment",
233
+ "id":"master",
234
+ "version":1,
235
+ "space":{
236
+ "sys":{
237
+ "type":"Link",
238
+ "linkType":"Space",
239
+ "id":"vuo79u060fmw"
240
+ }
241
+ },
242
+ "status":{
243
+ "sys":{
244
+ "type":"Link",
245
+ "linkType":"Status",
246
+ "id":"ready"
247
+ }
248
+ },
249
+ "createdBy":{
250
+ "sys":{
251
+ "type":"Link",
252
+ "linkType":"User",
253
+ "id":"4SejVrWT96dvL9IV4Nb7sQ"
254
+ }
255
+ },
256
+ "createdAt":"2020-07-02T10:40:30Z",
257
+ "updatedBy":{
258
+ "sys":{
259
+ "type":"Link",
260
+ "linkType":"User",
261
+ "id":"4SejVrWT96dvL9IV4Nb7sQ"
262
+ }
263
+ },
264
+ "updatedAt":"2020-07-02T10:40:30Z"
265
+ }
266
+ }
267
+
268
+ http_version:
269
+ recorded_at: Thu, 02 Jul 2020 11:08:58 GMT
270
+ - request:
271
+ method: get
272
+ uri: https://api.contentful.com/spaces/vuo79u060fmw/environments/master/entries/30QNJFxJQwLpdqZn8CHsHf
273
+ body:
274
+ encoding: UTF-8
275
+ string: ''
276
+ headers:
277
+ X-Contentful-User-Agent:
278
+ - sdk contentful-management.rb/2.12.0; platform ruby/2.6.3; os macOS/18;
279
+ Authorization:
280
+ - Bearer <ACCESS_TOKEN>
281
+ Content-Type:
282
+ - application/vnd.contentful.management.v1+json
283
+ Connection:
284
+ - close
285
+ Host:
286
+ - api.contentful.com
287
+ User-Agent:
288
+ - http.rb/4.4.1
289
+ response:
290
+ status:
291
+ code: 200
292
+ message: OK
293
+ headers:
294
+ Access-Control-Allow-Headers:
295
+ - 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,X-Contentful-Source-Environment,X-Contentful-Team,X-Contentful-Parent-Id,x-contentful-validate-only,X-Contentful-Skip-UI-Draft-Validation,X-Contentful-Marketplace,X-Contentful-UI-Content-Auto-Save
296
+ Access-Control-Allow-Methods:
297
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
298
+ Access-Control-Allow-Origin:
299
+ - "*"
300
+ Access-Control-Expose-Headers:
301
+ - Etag
302
+ Access-Control-Max-Age:
303
+ - '1728000'
304
+ Cf-Environment-Id:
305
+ - master
306
+ Cf-Environment-Uuid:
307
+ - master
308
+ Cf-Space-Id:
309
+ - vuo79u060fmw
310
+ Content-Type:
311
+ - application/vnd.contentful.management.v1+json
312
+ Contentful-Api:
313
+ - cma
314
+ Date:
315
+ - Thu, 02 Jul 2020 11:08:58 GMT
316
+ Etag:
317
+ - '"15362932808005589327"'
318
+ Server:
319
+ - Contentful
320
+ Strict-Transport-Security:
321
+ - max-age=15768000
322
+ X-Content-Type-Options:
323
+ - nosniff
324
+ X-Contentful-Ratelimit-Hour-Limit:
325
+ - '36000'
326
+ X-Contentful-Ratelimit-Hour-Remaining:
327
+ - '35997'
328
+ X-Contentful-Ratelimit-Reset:
329
+ - '0'
330
+ X-Contentful-Ratelimit-Second-Limit:
331
+ - '10'
332
+ X-Contentful-Ratelimit-Second-Remaining:
333
+ - '7'
334
+ X-Contentful-Request-Id:
335
+ - 7732242cda35896fc6858dcd68ccf110
336
+ Content-Length:
337
+ - '1336'
338
+ Connection:
339
+ - Close
340
+ Set-Cookie:
341
+ - incap_ses_878_673446=C22IU1pejidKejzLXUgvDErA/V4AAAAArm5WaJd8txYhPJbh8nd3LQ==;
342
+ path=/; Domain=.contentful.com
343
+ - nlbi_673446=qEi1FTufHzHufeuzYMlkBAAAAAAXkJ0KCdpO+XvACUUH96NI; path=/; Domain=.contentful.com
344
+ - visid_incap_673446=2Squb80/S+afcD1LerwO5krA/V4AAAAAQUIPAAAAAAA7qaeFZJ2irhhJFygTAQli;
345
+ expires=Fri, 02 Jul 2021 06:56:32 GMT; HttpOnly; path=/; Domain=.contentful.com
346
+ X-Cdn:
347
+ - Incapsula
348
+ X-Iinfo:
349
+ - 3-13057547-13057550 NNNY CT(0 0 0) RT(1593688138569 65) q(0 0 0 -1) r(3 3)
350
+ U5
351
+ body:
352
+ encoding: ASCII-8BIT
353
+ string: |
354
+ {
355
+ "metadata": {
356
+ "tags": []
357
+ },
358
+ "sys": {
359
+ "space": {
360
+ "sys": {
361
+ "type": "Link",
362
+ "linkType": "Space",
363
+ "id": "vuo79u060fmw"
364
+ }
365
+ },
366
+ "id": "30QNJFxJQwLpdqZn8CHsHf",
367
+ "type": "Entry",
368
+ "createdAt": "2020-07-02T10:41:23.580Z",
369
+ "updatedAt": "2020-07-02T10:49:08.754Z",
370
+ "environment": {
371
+ "sys": {
372
+ "id": "master",
373
+ "type": "Link",
374
+ "linkType": "Environment"
375
+ }
376
+ },
377
+ "publishedVersion": 6,
378
+ "publishedAt": "2020-07-02T10:49:08.754Z",
379
+ "firstPublishedAt": "2020-07-02T10:41:37.829Z",
380
+ "createdBy": {
381
+ "sys": {
382
+ "type": "Link",
383
+ "linkType": "User",
384
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
385
+ }
386
+ },
387
+ "updatedBy": {
388
+ "sys": {
389
+ "type": "Link",
390
+ "linkType": "User",
391
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
392
+ }
393
+ },
394
+ "publishedCounter": 2,
395
+ "version": 7,
396
+ "publishedBy": {
397
+ "sys": {
398
+ "type": "Link",
399
+ "linkType": "User",
400
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
401
+ }
402
+ },
403
+ "contentType": {
404
+ "sys": {
405
+ "type": "Link",
406
+ "linkType": "ContentType",
407
+ "id": "test"
408
+ }
409
+ }
410
+ },
411
+ "fields": {
412
+ "title": {
413
+ "en-US": "With JSON Array"
414
+ },
415
+ "json": {
416
+ "en-US": [
417
+ 1,
418
+ 2,
419
+ 3
420
+ ]
421
+ }
422
+ }
423
+ }
424
+ http_version:
425
+ recorded_at: Thu, 02 Jul 2020 11:08:58 GMT
426
+ - request:
427
+ method: get
428
+ uri: https://api.contentful.com/spaces/vuo79u060fmw/environments/master/content_types/test
429
+ body:
430
+ encoding: UTF-8
431
+ string: ''
432
+ headers:
433
+ X-Contentful-User-Agent:
434
+ - sdk contentful-management.rb/2.12.0; platform ruby/2.6.3; os macOS/18;
435
+ Authorization:
436
+ - Bearer <ACCESS_TOKEN>
437
+ Content-Type:
438
+ - application/vnd.contentful.management.v1+json
439
+ Connection:
440
+ - close
441
+ Host:
442
+ - api.contentful.com
443
+ User-Agent:
444
+ - http.rb/4.4.1
445
+ response:
446
+ status:
447
+ code: 200
448
+ message: OK
449
+ headers:
450
+ Access-Control-Allow-Headers:
451
+ - 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,X-Contentful-Source-Environment,X-Contentful-Team,X-Contentful-Parent-Id,x-contentful-validate-only,X-Contentful-Skip-UI-Draft-Validation,X-Contentful-Marketplace,X-Contentful-UI-Content-Auto-Save
452
+ Access-Control-Allow-Methods:
453
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
454
+ Access-Control-Allow-Origin:
455
+ - "*"
456
+ Access-Control-Expose-Headers:
457
+ - Etag
458
+ Access-Control-Max-Age:
459
+ - '1728000'
460
+ Cf-Environment-Id:
461
+ - master
462
+ Cf-Environment-Uuid:
463
+ - master
464
+ Cf-Space-Id:
465
+ - vuo79u060fmw
466
+ Content-Type:
467
+ - application/vnd.contentful.management.v1+json
468
+ Contentful-Api:
469
+ - cma
470
+ Date:
471
+ - Thu, 02 Jul 2020 11:08:59 GMT
472
+ Etag:
473
+ - '"7672835949377777237"'
474
+ Server:
475
+ - Contentful
476
+ Strict-Transport-Security:
477
+ - max-age=15768000
478
+ X-Content-Type-Options:
479
+ - nosniff
480
+ X-Contentful-Ratelimit-Hour-Limit:
481
+ - '36000'
482
+ X-Contentful-Ratelimit-Hour-Remaining:
483
+ - '35999'
484
+ X-Contentful-Ratelimit-Reset:
485
+ - '0'
486
+ X-Contentful-Ratelimit-Second-Limit:
487
+ - '10'
488
+ X-Contentful-Ratelimit-Second-Remaining:
489
+ - '9'
490
+ X-Contentful-Request-Id:
491
+ - e14ccd4d9743dc8e04bd4988321bd411
492
+ Content-Length:
493
+ - '1498'
494
+ Connection:
495
+ - Close
496
+ Set-Cookie:
497
+ - incap_ses_878_673446=Udn7MwOZfVXAejzLXUgvDEvA/V4AAAAAsKsKa3kMWSOE5H63ihb0Kw==;
498
+ path=/; Domain=.contentful.com
499
+ - nlbi_673446=1psWF+EWqmqC6S3bYMlkBAAAAAD+LYtLufZq0+KDFhrBKKXI; path=/; Domain=.contentful.com
500
+ - visid_incap_673446=mcfogEL6TLWoHflYzqRdGUvA/V4AAAAAQUIPAAAAAAAM+Yg+757sYnD8Ya9XtSg3;
501
+ expires=Fri, 02 Jul 2021 06:56:32 GMT; HttpOnly; path=/; Domain=.contentful.com
502
+ X-Cdn:
503
+ - Incapsula
504
+ X-Iinfo:
505
+ - 9-10766288-10766293 NNNY CT(0 0 0) RT(1593688139004 86) q(0 0 0 -1) r(4 4)
506
+ U5
507
+ body:
508
+ encoding: ASCII-8BIT
509
+ string: |
510
+ {
511
+ "sys": {
512
+ "space": {
513
+ "sys": {
514
+ "type": "Link",
515
+ "linkType": "Space",
516
+ "id": "vuo79u060fmw"
517
+ }
518
+ },
519
+ "id": "test",
520
+ "type": "ContentType",
521
+ "createdAt": "2020-07-02T10:40:58.930Z",
522
+ "updatedAt": "2020-07-02T10:40:59.377Z",
523
+ "environment": {
524
+ "sys": {
525
+ "id": "master",
526
+ "type": "Link",
527
+ "linkType": "Environment"
528
+ }
529
+ },
530
+ "publishedVersion": 1,
531
+ "publishedAt": "2020-07-02T10:40:59.377Z",
532
+ "firstPublishedAt": "2020-07-02T10:40:59.377Z",
533
+ "createdBy": {
534
+ "sys": {
535
+ "type": "Link",
536
+ "linkType": "User",
537
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
538
+ }
539
+ },
540
+ "updatedBy": {
541
+ "sys": {
542
+ "type": "Link",
543
+ "linkType": "User",
544
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
545
+ }
546
+ },
547
+ "publishedCounter": 1,
548
+ "version": 2,
549
+ "publishedBy": {
550
+ "sys": {
551
+ "type": "Link",
552
+ "linkType": "User",
553
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
554
+ }
555
+ }
556
+ },
557
+ "displayField": "title",
558
+ "name": "Test",
559
+ "description": "",
560
+ "fields": [
561
+ {
562
+ "id": "title",
563
+ "name": "Title",
564
+ "type": "Symbol",
565
+ "localized": false,
566
+ "required": false,
567
+ "validations": [],
568
+ "disabled": false,
569
+ "omitted": false
570
+ },
571
+ {
572
+ "id": "json",
573
+ "name": "JSON",
574
+ "type": "Object",
575
+ "localized": false,
576
+ "required": false,
577
+ "validations": [],
578
+ "disabled": false,
579
+ "omitted": false
580
+ }
581
+ ]
582
+ }
583
+ http_version:
584
+ recorded_at: Thu, 02 Jul 2020 11:08:59 GMT
585
+ - request:
586
+ method: put
587
+ uri: https://api.contentful.com/spaces/vuo79u060fmw/environments/master/entries/30QNJFxJQwLpdqZn8CHsHf
588
+ body:
589
+ encoding: UTF-8
590
+ string: '{"fields":{"title":{"en-US":"With JSON Array"},"json":{"en-US":[2,3,4]}}}'
591
+ headers:
592
+ X-Contentful-User-Agent:
593
+ - sdk contentful-management.rb/2.12.0; platform ruby/2.6.3; os macOS/18;
594
+ Authorization:
595
+ - Bearer <ACCESS_TOKEN>
596
+ Content-Type:
597
+ - application/vnd.contentful.management.v1+json
598
+ X-Contentful-Version:
599
+ - '7'
600
+ X-Contentful-Content-Type:
601
+ - test
602
+ Content-Type-Id:
603
+ - test
604
+ Version:
605
+ - '7'
606
+ Connection:
607
+ - close
608
+ Host:
609
+ - api.contentful.com
610
+ User-Agent:
611
+ - http.rb/4.4.1
612
+ response:
613
+ status:
614
+ code: 200
615
+ message: OK
616
+ headers:
617
+ Access-Control-Allow-Headers:
618
+ - 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,X-Contentful-Source-Environment,X-Contentful-Team,X-Contentful-Parent-Id,x-contentful-validate-only,X-Contentful-Skip-UI-Draft-Validation,X-Contentful-Marketplace,X-Contentful-UI-Content-Auto-Save
619
+ Access-Control-Allow-Methods:
620
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
621
+ Access-Control-Allow-Origin:
622
+ - "*"
623
+ Access-Control-Expose-Headers:
624
+ - Etag
625
+ Access-Control-Max-Age:
626
+ - '1728000'
627
+ Cf-Environment-Id:
628
+ - master
629
+ Cf-Environment-Uuid:
630
+ - master
631
+ Cf-Space-Id:
632
+ - vuo79u060fmw
633
+ Content-Type:
634
+ - application/vnd.contentful.management.v1+json
635
+ Contentful-Api:
636
+ - cma
637
+ Date:
638
+ - Thu, 02 Jul 2020 11:09:02 GMT
639
+ Etag:
640
+ - '"9585533151618724726"'
641
+ Server:
642
+ - Contentful
643
+ Strict-Transport-Security:
644
+ - max-age=15768000
645
+ X-Content-Type-Options:
646
+ - nosniff
647
+ X-Contentful-Ratelimit-Hour-Limit:
648
+ - '36000'
649
+ X-Contentful-Ratelimit-Hour-Remaining:
650
+ - '35999'
651
+ X-Contentful-Ratelimit-Reset:
652
+ - '0'
653
+ X-Contentful-Ratelimit-Second-Limit:
654
+ - '10'
655
+ X-Contentful-Ratelimit-Second-Remaining:
656
+ - '9'
657
+ X-Contentful-Request-Id:
658
+ - c2853d3ad9d0078f6662cfc8221d03a1
659
+ Content-Length:
660
+ - '1336'
661
+ Connection:
662
+ - Close
663
+ Set-Cookie:
664
+ - incap_ses_878_673446=Gn6ONmpleyWLfTzLXUgvDE7A/V4AAAAAAdMVEAPb84/mPoEehX8HRg==;
665
+ path=/; Domain=.contentful.com
666
+ - nlbi_673446=jsJWcJM5M2tACUz6YMlkBAAAAADmSCrLXG9vcIqvgWgUHbiW; path=/; Domain=.contentful.com
667
+ - visid_incap_673446=PIfIUu8yTCWZ7+Zw2qh2l07A/V4AAAAAQUIPAAAAAAC6L9wjp238qH5eQMJXGUNt;
668
+ expires=Fri, 02 Jul 2021 06:56:32 GMT; HttpOnly; path=/; Domain=.contentful.com
669
+ X-Cdn:
670
+ - Incapsula
671
+ X-Iinfo:
672
+ - 13-43297485-43297507 NNNY CT(0 0 0) RT(1593688142330 100) q(0 0 0 -1) r(3
673
+ 3) U5
674
+ body:
675
+ encoding: ASCII-8BIT
676
+ string: |
677
+ {
678
+ "metadata": {
679
+ "tags": []
680
+ },
681
+ "sys": {
682
+ "space": {
683
+ "sys": {
684
+ "type": "Link",
685
+ "linkType": "Space",
686
+ "id": "vuo79u060fmw"
687
+ }
688
+ },
689
+ "id": "30QNJFxJQwLpdqZn8CHsHf",
690
+ "type": "Entry",
691
+ "createdAt": "2020-07-02T10:41:23.580Z",
692
+ "updatedAt": "2020-07-02T11:09:02.576Z",
693
+ "environment": {
694
+ "sys": {
695
+ "id": "master",
696
+ "type": "Link",
697
+ "linkType": "Environment"
698
+ }
699
+ },
700
+ "publishedVersion": 6,
701
+ "publishedAt": "2020-07-02T10:49:08.754Z",
702
+ "firstPublishedAt": "2020-07-02T10:41:37.829Z",
703
+ "createdBy": {
704
+ "sys": {
705
+ "type": "Link",
706
+ "linkType": "User",
707
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
708
+ }
709
+ },
710
+ "updatedBy": {
711
+ "sys": {
712
+ "type": "Link",
713
+ "linkType": "User",
714
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
715
+ }
716
+ },
717
+ "publishedCounter": 2,
718
+ "version": 8,
719
+ "publishedBy": {
720
+ "sys": {
721
+ "type": "Link",
722
+ "linkType": "User",
723
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
724
+ }
725
+ },
726
+ "contentType": {
727
+ "sys": {
728
+ "type": "Link",
729
+ "linkType": "ContentType",
730
+ "id": "test"
731
+ }
732
+ }
733
+ },
734
+ "fields": {
735
+ "title": {
736
+ "en-US": "With JSON Array"
737
+ },
738
+ "json": {
739
+ "en-US": [
740
+ 2,
741
+ 3,
742
+ 4
743
+ ]
744
+ }
745
+ }
746
+ }
747
+ http_version:
748
+ recorded_at: Thu, 02 Jul 2020 11:09:02 GMT
749
+ - request:
750
+ method: get
751
+ uri: https://api.contentful.com/spaces/vuo79u060fmw/environments/master/entries/30QNJFxJQwLpdqZn8CHsHf
752
+ body:
753
+ encoding: UTF-8
754
+ string: ''
755
+ headers:
756
+ X-Contentful-User-Agent:
757
+ - sdk contentful-management.rb/2.12.0; platform ruby/2.6.3; os macOS/18;
758
+ Authorization:
759
+ - Bearer <ACCESS_TOKEN>
760
+ Content-Type:
761
+ - application/vnd.contentful.management.v1+json
762
+ Connection:
763
+ - close
764
+ Host:
765
+ - api.contentful.com
766
+ User-Agent:
767
+ - http.rb/4.4.1
768
+ response:
769
+ status:
770
+ code: 200
771
+ message: OK
772
+ headers:
773
+ Access-Control-Allow-Headers:
774
+ - 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,X-Contentful-Source-Environment,X-Contentful-Team,X-Contentful-Parent-Id,x-contentful-validate-only,X-Contentful-Skip-UI-Draft-Validation,X-Contentful-Marketplace,X-Contentful-UI-Content-Auto-Save
775
+ Access-Control-Allow-Methods:
776
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
777
+ Access-Control-Allow-Origin:
778
+ - "*"
779
+ Access-Control-Expose-Headers:
780
+ - Etag
781
+ Access-Control-Max-Age:
782
+ - '1728000'
783
+ Cf-Environment-Id:
784
+ - master
785
+ Cf-Environment-Uuid:
786
+ - master
787
+ Cf-Space-Id:
788
+ - vuo79u060fmw
789
+ Content-Type:
790
+ - application/vnd.contentful.management.v1+json
791
+ Contentful-Api:
792
+ - cma
793
+ Date:
794
+ - Thu, 02 Jul 2020 11:09:03 GMT
795
+ Etag:
796
+ - '"9585533151618724726"'
797
+ Server:
798
+ - Contentful
799
+ Strict-Transport-Security:
800
+ - max-age=15768000
801
+ X-Content-Type-Options:
802
+ - nosniff
803
+ X-Contentful-Ratelimit-Hour-Limit:
804
+ - '36000'
805
+ X-Contentful-Ratelimit-Hour-Remaining:
806
+ - '35999'
807
+ X-Contentful-Ratelimit-Reset:
808
+ - '0'
809
+ X-Contentful-Ratelimit-Second-Limit:
810
+ - '10'
811
+ X-Contentful-Ratelimit-Second-Remaining:
812
+ - '9'
813
+ X-Contentful-Request-Id:
814
+ - 4addb37a5d86e7e27a2e76716274ed23
815
+ Content-Length:
816
+ - '1336'
817
+ Connection:
818
+ - Close
819
+ Set-Cookie:
820
+ - incap_ses_878_673446=SHDRdq/jz3IffjzLXUgvDE/A/V4AAAAAL7tB9arn/nwODJAO3jq8iQ==;
821
+ path=/; Domain=.contentful.com
822
+ - nlbi_673446=siUUfZXjqg/DpBFGYMlkBAAAAACNP4X9s53ppEXwdfJqzinq; path=/; Domain=.contentful.com
823
+ - visid_incap_673446=U0xjy4GqS1OuSEAsWDnquk/A/V4AAAAAQUIPAAAAAACcvgJK29w5SzwoXEFj2Utb;
824
+ expires=Fri, 02 Jul 2021 06:56:32 GMT; HttpOnly; path=/; Domain=.contentful.com
825
+ X-Cdn:
826
+ - Incapsula
827
+ X-Iinfo:
828
+ - 11-24041697-24041789 NNNY CT(0 0 0) RT(1593688142778 398) q(0 0 0 -1) r(2
829
+ 2) U5
830
+ body:
831
+ encoding: ASCII-8BIT
832
+ string: |
833
+ {
834
+ "metadata": {
835
+ "tags": []
836
+ },
837
+ "sys": {
838
+ "space": {
839
+ "sys": {
840
+ "type": "Link",
841
+ "linkType": "Space",
842
+ "id": "vuo79u060fmw"
843
+ }
844
+ },
845
+ "id": "30QNJFxJQwLpdqZn8CHsHf",
846
+ "type": "Entry",
847
+ "createdAt": "2020-07-02T10:41:23.580Z",
848
+ "updatedAt": "2020-07-02T11:09:02.576Z",
849
+ "environment": {
850
+ "sys": {
851
+ "id": "master",
852
+ "type": "Link",
853
+ "linkType": "Environment"
854
+ }
855
+ },
856
+ "publishedVersion": 6,
857
+ "publishedAt": "2020-07-02T10:49:08.754Z",
858
+ "firstPublishedAt": "2020-07-02T10:41:37.829Z",
859
+ "createdBy": {
860
+ "sys": {
861
+ "type": "Link",
862
+ "linkType": "User",
863
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
864
+ }
865
+ },
866
+ "updatedBy": {
867
+ "sys": {
868
+ "type": "Link",
869
+ "linkType": "User",
870
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
871
+ }
872
+ },
873
+ "publishedCounter": 2,
874
+ "version": 8,
875
+ "publishedBy": {
876
+ "sys": {
877
+ "type": "Link",
878
+ "linkType": "User",
879
+ "id": "4SejVrWT96dvL9IV4Nb7sQ"
880
+ }
881
+ },
882
+ "contentType": {
883
+ "sys": {
884
+ "type": "Link",
885
+ "linkType": "ContentType",
886
+ "id": "test"
887
+ }
888
+ }
889
+ },
890
+ "fields": {
891
+ "title": {
892
+ "en-US": "With JSON Array"
893
+ },
894
+ "json": {
895
+ "en-US": [
896
+ 2,
897
+ 3,
898
+ 4
899
+ ]
900
+ }
901
+ }
902
+ }
903
+ http_version:
904
+ recorded_at: Thu, 02 Jul 2020 11:09:03 GMT
905
+ recorded_with: VCR 4.0.0