contentful-management 2.2.2 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/lib/contentful/management/asset.rb +7 -8
- data/lib/contentful/management/client_space_membership_methods_factory.rb +8 -0
- data/lib/contentful/management/environment.rb +5 -0
- data/lib/contentful/management/space_membership.rb +23 -0
- data/lib/contentful/management/ui_extension.rb +12 -0
- data/lib/contentful/management/user.rb +1 -1
- data/lib/contentful/management/version.rb +1 -1
- data/lib/contentful/management/webhook.rb +4 -1
- data/spec/fixtures/vcr_cassettes/environment/find_3.yml +139 -0
- data/spec/fixtures/vcr_cassettes/space_memberships/find_2.yml +336 -0
- data/spec/fixtures/vcr_cassettes/ui_extension/create_parameters.yml +185 -0
- data/spec/fixtures/vcr_cassettes/user/find.yml +1 -1
- data/spec/fixtures/vcr_cassettes/webhook/filters.yml +152 -0
- data/spec/fixtures/vcr_cassettes/webhook/transformation.yml +152 -0
- data/spec/lib/contentful/management/environment_spec.rb +12 -0
- data/spec/lib/contentful/management/space_membership_spec.rb +9 -0
- data/spec/lib/contentful/management/ui_extension_spec.rb +76 -0
- data/spec/lib/contentful/management/webhook_spec.rb +47 -1
- metadata +12 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d409c0f6953c66a83065653247a19280d9848da412373fc37191da95b540e25
|
4
|
+
data.tar.gz: 3e7895c80b94270ab99d74add2587178fa38ff3bf159081e835ea1e86f6214d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c65231651b08dfb2d03ba1a1dde4aa9e88e4e25e1fc712fad4eb227190c9988db5a6f1684df08528bf8734aa79278ddf5ad60c4ae10942428840d0f16d5c2989
|
7
|
+
data.tar.gz: e4b1c3cb65528ce774be67764b8a09850d03597317c9c4ffd93e80dfc4006303c2d5ab1dcf4f4c64312b2147ddd40f80d90d1b16e20af57b5a9e3d7746de89d0
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,19 @@
|
|
2
2
|
|
3
3
|
## Master
|
4
4
|
|
5
|
+
## Master
|
6
|
+
### 2.3.0
|
7
|
+
* Added `transformation` and `filters` to `Webhook`.
|
8
|
+
* Added `parameters` to `UIExtension.extension`.
|
9
|
+
|
10
|
+
### Fixed
|
11
|
+
* `#reload` now works with `Environment` objects.
|
12
|
+
* Fixed URL generation for `/users` endpoint.
|
13
|
+
* Fixed Space Memberships now properly forward all attributes.
|
14
|
+
|
15
|
+
### Changed
|
16
|
+
* Simplified asset creation process - this change doesn't affect functionality, but removes a couple of steps and provides equivalent functionality.
|
17
|
+
|
5
18
|
## 2.2.2
|
6
19
|
### Fixed
|
7
20
|
* Fixed URL generation for `/organizations` endpoint.
|
@@ -32,14 +32,13 @@ module Contentful
|
|
32
32
|
|
33
33
|
# @private
|
34
34
|
def self.create_attributes(client, attributes)
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
{ fields: asset.fields_for_query }
|
35
|
+
fields = attributes[:fields] || {}
|
36
|
+
locale = attributes[:locale] || client.default_locale
|
37
|
+
fields[:title] = { locale => attributes[:title] } if attributes[:title]
|
38
|
+
fields[:description] = { locale => attributes[:description] } if attributes[:description]
|
39
|
+
fields[:file] = { locale => attributes[:file].properties } if attributes[:file]
|
40
|
+
|
41
|
+
{ fields: fields }
|
43
42
|
end
|
44
43
|
|
45
44
|
# @private
|
@@ -10,6 +10,14 @@ module Contentful
|
|
10
10
|
def new(*)
|
11
11
|
fail 'Not supported'
|
12
12
|
end
|
13
|
+
|
14
|
+
def find(resource_id)
|
15
|
+
associated_class.find(client, @space_id, resource_id)
|
16
|
+
end
|
17
|
+
|
18
|
+
def create(attributes)
|
19
|
+
associated_class.create(client, @space_id, attributes)
|
20
|
+
end
|
13
21
|
end
|
14
22
|
end
|
15
23
|
end
|
@@ -31,6 +31,29 @@ module Contentful
|
|
31
31
|
}
|
32
32
|
end
|
33
33
|
|
34
|
+
# Creates an Space Membership
|
35
|
+
#
|
36
|
+
# @param [Contentful::Management::Client] client
|
37
|
+
# @param [String] space_id
|
38
|
+
# @param [Hash] attributes
|
39
|
+
# @see _ README for full attribute list for each resource.
|
40
|
+
#
|
41
|
+
# @return [Contentful::Management::SpaceMembership]
|
42
|
+
def self.create(client, space_id, attributes = {})
|
43
|
+
super(client, space_id, nil, attributes)
|
44
|
+
end
|
45
|
+
|
46
|
+
# Finds an Space Membership by ID.
|
47
|
+
#
|
48
|
+
# @param [Contentful::Management::Client] client
|
49
|
+
# @param [String] space_id
|
50
|
+
# @param [String] space_membership_id
|
51
|
+
#
|
52
|
+
# @return [Contentful::Management::SpaceMembership]
|
53
|
+
def self.find(client, space_id, space_membership_id)
|
54
|
+
super(client, space_id, nil, space_membership_id)
|
55
|
+
end
|
56
|
+
|
34
57
|
# @private
|
35
58
|
def query_attributes(attributes)
|
36
59
|
{
|
@@ -103,6 +103,18 @@ module Contentful
|
|
103
103
|
def sidebar=(value)
|
104
104
|
extension['sidebar'] = value
|
105
105
|
end
|
106
|
+
|
107
|
+
# Returns extensions parameters
|
108
|
+
# @return [Hash] parameters
|
109
|
+
def parameters
|
110
|
+
extension['parameters']
|
111
|
+
end
|
112
|
+
|
113
|
+
# Sets extension parameters
|
114
|
+
# @param [Hash] value
|
115
|
+
def parameters=(value)
|
116
|
+
extension['parameters'] = value
|
117
|
+
end
|
106
118
|
end
|
107
119
|
end
|
108
120
|
end
|
@@ -16,6 +16,8 @@ module Contentful
|
|
16
16
|
property :topics, :array
|
17
17
|
property :headers, :array
|
18
18
|
property :httpBasicUsername, :string
|
19
|
+
property :filters, :array
|
20
|
+
property :transformation, :hash
|
19
21
|
|
20
22
|
# @private
|
21
23
|
def self.endpoint
|
@@ -24,7 +26,8 @@ module Contentful
|
|
24
26
|
|
25
27
|
# @private
|
26
28
|
def self.create_attributes(_client, attributes)
|
27
|
-
|
29
|
+
keys = %i[httpBasicUsername httpBasicPassword url name headers topics filters transformation]
|
30
|
+
attributes.select { |key, _value| keys.include? key }
|
28
31
|
end
|
29
32
|
|
30
33
|
# Creates a webhook.
|
@@ -0,0 +1,139 @@
|
|
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.2.2; platform ruby/2.5.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
|
+
Contentful-Api:
|
48
|
+
- cma
|
49
|
+
Date:
|
50
|
+
- Wed, 08 Aug 2018 12:26:09 GMT
|
51
|
+
Etag:
|
52
|
+
- W/"efb427da4c64de61fd8bde26734945d1"
|
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
|
+
- d981979609da67ef92a67a74c65363cd
|
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
|
+
- '690'
|
83
|
+
Connection:
|
84
|
+
- Close
|
85
|
+
Set-Cookie:
|
86
|
+
- incap_ses_876_673446=q5sjRVamkAzfaJaZyy0oDGHhalsAAAAAlMz5dhO5pLw0AXzxKfBBEg==;
|
87
|
+
path=/; Domain=.contentful.com
|
88
|
+
- nlbi_673446=N1YJW7/yIjiQURM06lKYhQAAAAAUYHvVqzC/esUyoNIlEpco; path=/; Domain=.contentful.com
|
89
|
+
- visid_incap_673446=yFeopm69RiqLXqnXk6DK2GHhalsAAAAAQUIPAAAAAAAJkp0DLHJDXuJES17gxUOs;
|
90
|
+
expires=Thu, 08 Aug 2019 11:25:55 GMT; path=/; Domain=.contentful.com
|
91
|
+
X-Iinfo:
|
92
|
+
- 4-376352-376358 NNNN CT(0 0 0) RT(1533731168824 74) q(0 0 0 -1) r(2 2) U5
|
93
|
+
X-Cdn:
|
94
|
+
- Incapsula
|
95
|
+
body:
|
96
|
+
encoding: ASCII-8BIT
|
97
|
+
string: |+
|
98
|
+
{
|
99
|
+
"name":"testing",
|
100
|
+
"sys":{
|
101
|
+
"type":"Environment",
|
102
|
+
"id":"testing",
|
103
|
+
"version":6,
|
104
|
+
"space":{
|
105
|
+
"sys":{
|
106
|
+
"type":"Link",
|
107
|
+
"linkType":"Space",
|
108
|
+
"id":"facgnwwgj5fe"
|
109
|
+
}
|
110
|
+
},
|
111
|
+
"status":{
|
112
|
+
"sys":{
|
113
|
+
"type":"Link",
|
114
|
+
"linkType":"Status",
|
115
|
+
"id":"ready"
|
116
|
+
}
|
117
|
+
},
|
118
|
+
"createdBy":{
|
119
|
+
"sys":{
|
120
|
+
"type":"Link",
|
121
|
+
"linkType":"User",
|
122
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
123
|
+
}
|
124
|
+
},
|
125
|
+
"createdAt":"2018-02-27T10:19:01Z",
|
126
|
+
"updatedBy":{
|
127
|
+
"sys":{
|
128
|
+
"type":"Link",
|
129
|
+
"linkType":"User",
|
130
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
131
|
+
}
|
132
|
+
},
|
133
|
+
"updatedAt":"2018-02-27T10:19:04Z"
|
134
|
+
}
|
135
|
+
}
|
136
|
+
|
137
|
+
http_version:
|
138
|
+
recorded_at: Wed, 08 Aug 2018 12:26:09 GMT
|
139
|
+
recorded_with: VCR 4.0.0
|
@@ -0,0 +1,336 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.contentful.com/spaces/facgnwwgj5fe/space_memberships
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
X-Contentful-User-Agent:
|
11
|
+
- sdk contentful-management.rb/2.2.2; platform ruby/2.5.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
|
+
Contentful-Api:
|
48
|
+
- cma
|
49
|
+
Date:
|
50
|
+
- Thu, 09 Aug 2018 10:19:56 GMT
|
51
|
+
Etag:
|
52
|
+
- W/"dda64bbb7b1d0b38bc504a6dcc255340"
|
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
|
+
- '0690f30152882fae485b1af466d2a860'
|
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
|
+
- '1999'
|
83
|
+
Connection:
|
84
|
+
- Close
|
85
|
+
Set-Cookie:
|
86
|
+
- incap_ses_876_673446=9ALjNFdW8mm6kHCbyy0oDEwVbFsAAAAAy83vlR8/H1KaWlNyzE5mrg==;
|
87
|
+
path=/; Domain=.contentful.com
|
88
|
+
- nlbi_673446=EbqXDoO7Lhdl5ezj6lKYhQAAAAD33mHJ7Z415lGHeXzZk/wb; path=/; Domain=.contentful.com
|
89
|
+
- visid_incap_673446=72ArswPGQSuHAt6X50fRZUwVbFsAAAAAQUIPAAAAAADs9vSI2+fa1VdM3DV1YO+N;
|
90
|
+
expires=Thu, 08 Aug 2019 11:25:29 GMT; path=/; Domain=.contentful.com
|
91
|
+
X-Iinfo:
|
92
|
+
- 10-6586772-6586792 NNNN CT(86 91 0) RT(1533809996060 69) q(0 0 2 -1) r(4 4)
|
93
|
+
U5
|
94
|
+
X-Cdn:
|
95
|
+
- Incapsula
|
96
|
+
body:
|
97
|
+
encoding: ASCII-8BIT
|
98
|
+
string: |+
|
99
|
+
{
|
100
|
+
"total":2,
|
101
|
+
"limit":25,
|
102
|
+
"skip":0,
|
103
|
+
"sys":{
|
104
|
+
"type":"Array"
|
105
|
+
},
|
106
|
+
"items":[
|
107
|
+
{
|
108
|
+
"admin":true,
|
109
|
+
"sys":{
|
110
|
+
"type":"SpaceMembership",
|
111
|
+
"id":"1NI22o8oAxT9Jnu2J9wJSu",
|
112
|
+
"version":0,
|
113
|
+
"space":{
|
114
|
+
"sys":{
|
115
|
+
"type":"Link",
|
116
|
+
"linkType":"Space",
|
117
|
+
"id":"facgnwwgj5fe"
|
118
|
+
}
|
119
|
+
},
|
120
|
+
"createdBy":{
|
121
|
+
"sys":{
|
122
|
+
"type":"Link",
|
123
|
+
"linkType":"User",
|
124
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
125
|
+
}
|
126
|
+
},
|
127
|
+
"createdAt":"2017-03-02T18:30:27Z",
|
128
|
+
"updatedBy":{
|
129
|
+
"sys":{
|
130
|
+
"type":"Link",
|
131
|
+
"linkType":"User",
|
132
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
133
|
+
}
|
134
|
+
},
|
135
|
+
"updatedAt":"2017-03-02T18:30:27Z"
|
136
|
+
},
|
137
|
+
"user":{
|
138
|
+
"sys":{
|
139
|
+
"type":"Link",
|
140
|
+
"linkType":"User",
|
141
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
142
|
+
}
|
143
|
+
},
|
144
|
+
"roles":[]
|
145
|
+
},
|
146
|
+
{
|
147
|
+
"admin":false,
|
148
|
+
"sys":{
|
149
|
+
"type":"SpaceMembership",
|
150
|
+
"id":"6RdRdobdQzh8zKe1Hogiz4",
|
151
|
+
"version":0,
|
152
|
+
"space":{
|
153
|
+
"sys":{
|
154
|
+
"type":"Link",
|
155
|
+
"linkType":"Space",
|
156
|
+
"id":"facgnwwgj5fe"
|
157
|
+
}
|
158
|
+
},
|
159
|
+
"createdBy":{
|
160
|
+
"sys":{
|
161
|
+
"type":"Link",
|
162
|
+
"linkType":"User",
|
163
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
164
|
+
}
|
165
|
+
},
|
166
|
+
"createdAt":"2017-07-06T14:18:17Z",
|
167
|
+
"updatedBy":{
|
168
|
+
"sys":{
|
169
|
+
"type":"Link",
|
170
|
+
"linkType":"User",
|
171
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
172
|
+
}
|
173
|
+
},
|
174
|
+
"updatedAt":"2017-07-06T14:18:17Z"
|
175
|
+
},
|
176
|
+
"user":{
|
177
|
+
"sys":{
|
178
|
+
"type":"Link",
|
179
|
+
"linkType":"User",
|
180
|
+
"id":"3xagQOg6z3bxOhPcTpgsaq"
|
181
|
+
}
|
182
|
+
},
|
183
|
+
"roles":[
|
184
|
+
{
|
185
|
+
"sys":{
|
186
|
+
"type":"Link",
|
187
|
+
"linkType":"Role",
|
188
|
+
"id":"1Nq88dKTNXNaxkbrRpEEw6"
|
189
|
+
}
|
190
|
+
}
|
191
|
+
]
|
192
|
+
}
|
193
|
+
]
|
194
|
+
}
|
195
|
+
|
196
|
+
http_version:
|
197
|
+
recorded_at: Thu, 09 Aug 2018 10:19:56 GMT
|
198
|
+
- request:
|
199
|
+
method: get
|
200
|
+
uri: https://api.contentful.com/spaces/facgnwwgj5fe/space_memberships/1NI22o8oAxT9Jnu2J9wJSu
|
201
|
+
body:
|
202
|
+
encoding: US-ASCII
|
203
|
+
string: ''
|
204
|
+
headers:
|
205
|
+
X-Contentful-User-Agent:
|
206
|
+
- sdk contentful-management.rb/2.2.2; platform ruby/2.5.1; os macOS/16;
|
207
|
+
Authorization:
|
208
|
+
- Bearer <ACCESS_TOKEN>
|
209
|
+
Content-Type:
|
210
|
+
- application/vnd.contentful.management.v1+json
|
211
|
+
Connection:
|
212
|
+
- close
|
213
|
+
Host:
|
214
|
+
- api.contentful.com
|
215
|
+
User-Agent:
|
216
|
+
- http.rb/2.2.2
|
217
|
+
response:
|
218
|
+
status:
|
219
|
+
code: 200
|
220
|
+
message: OK
|
221
|
+
headers:
|
222
|
+
Accept-Ranges:
|
223
|
+
- bytes
|
224
|
+
Access-Control-Allow-Headers:
|
225
|
+
- 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
|
226
|
+
Access-Control-Allow-Methods:
|
227
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
228
|
+
Access-Control-Allow-Origin:
|
229
|
+
- "*"
|
230
|
+
Access-Control-Expose-Headers:
|
231
|
+
- Etag
|
232
|
+
Access-Control-Max-Age:
|
233
|
+
- '1728000'
|
234
|
+
Cache-Control:
|
235
|
+
- max-age=0
|
236
|
+
Cf-Organization-Id:
|
237
|
+
- 4SsuxQCaMaemfIms52Jr8s
|
238
|
+
Cf-Space-Id:
|
239
|
+
- facgnwwgj5fe
|
240
|
+
Content-Type:
|
241
|
+
- application/vnd.contentful.management.v1+json
|
242
|
+
Contentful-Api:
|
243
|
+
- cma
|
244
|
+
Date:
|
245
|
+
- Thu, 09 Aug 2018 10:19:57 GMT
|
246
|
+
Etag:
|
247
|
+
- W/"81a83a3caf5c2829b0cf422b77082076"
|
248
|
+
Referrer-Policy:
|
249
|
+
- strict-origin-when-cross-origin
|
250
|
+
Server:
|
251
|
+
- Contentful
|
252
|
+
Strict-Transport-Security:
|
253
|
+
- max-age=15768000
|
254
|
+
X-Content-Type-Options:
|
255
|
+
- nosniff
|
256
|
+
X-Contentful-Ratelimit-Hour-Limit:
|
257
|
+
- '36000'
|
258
|
+
X-Contentful-Ratelimit-Hour-Remaining:
|
259
|
+
- '35998'
|
260
|
+
X-Contentful-Ratelimit-Reset:
|
261
|
+
- '0'
|
262
|
+
X-Contentful-Ratelimit-Second-Limit:
|
263
|
+
- '10'
|
264
|
+
X-Contentful-Ratelimit-Second-Remaining:
|
265
|
+
- '8'
|
266
|
+
X-Contentful-Request-Id:
|
267
|
+
- 5059b298abee08da23c37b9da8d30349
|
268
|
+
X-Download-Options:
|
269
|
+
- noopen
|
270
|
+
X-Frame-Options:
|
271
|
+
- ALLOWALL
|
272
|
+
X-Permitted-Cross-Domain-Policies:
|
273
|
+
- none
|
274
|
+
X-Xss-Protection:
|
275
|
+
- 1; mode=block
|
276
|
+
Content-Length:
|
277
|
+
- '718'
|
278
|
+
Connection:
|
279
|
+
- Close
|
280
|
+
Set-Cookie:
|
281
|
+
- incap_ses_876_673446=lFEPfCxfGRIjkXCbyy0oDEwVbFsAAAAAyH25TYgKfFJmyVIPsWLeNw==;
|
282
|
+
path=/; Domain=.contentful.com
|
283
|
+
- nlbi_673446=b4gUXZg4LhBWqqK66lKYhQAAAABlIcIJNX1tEcXk0rSNRGDr; path=/; Domain=.contentful.com
|
284
|
+
- visid_incap_673446=rGI4jU2yRbamU6nprhSSoEwVbFsAAAAAQUIPAAAAAAB1+vLwDvjUJIJlXLGwuTFA;
|
285
|
+
expires=Thu, 08 Aug 2019 11:25:55 GMT; path=/; Domain=.contentful.com
|
286
|
+
X-Iinfo:
|
287
|
+
- 11-11718922-11718927 NNNN CT(0 0 0) RT(1533809996560 44) q(0 0 0 -1) r(2 2)
|
288
|
+
U5
|
289
|
+
X-Cdn:
|
290
|
+
- Incapsula
|
291
|
+
body:
|
292
|
+
encoding: ASCII-8BIT
|
293
|
+
string: |+
|
294
|
+
{
|
295
|
+
"admin":true,
|
296
|
+
"sys":{
|
297
|
+
"type":"SpaceMembership",
|
298
|
+
"id":"1NI22o8oAxT9Jnu2J9wJSu",
|
299
|
+
"version":0,
|
300
|
+
"space":{
|
301
|
+
"sys":{
|
302
|
+
"type":"Link",
|
303
|
+
"linkType":"Space",
|
304
|
+
"id":"facgnwwgj5fe"
|
305
|
+
}
|
306
|
+
},
|
307
|
+
"createdBy":{
|
308
|
+
"sys":{
|
309
|
+
"type":"Link",
|
310
|
+
"linkType":"User",
|
311
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
312
|
+
}
|
313
|
+
},
|
314
|
+
"createdAt":"2017-03-02T18:30:27Z",
|
315
|
+
"updatedBy":{
|
316
|
+
"sys":{
|
317
|
+
"type":"Link",
|
318
|
+
"linkType":"User",
|
319
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
320
|
+
}
|
321
|
+
},
|
322
|
+
"updatedAt":"2017-03-02T18:30:27Z"
|
323
|
+
},
|
324
|
+
"user":{
|
325
|
+
"sys":{
|
326
|
+
"type":"Link",
|
327
|
+
"linkType":"User",
|
328
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
329
|
+
}
|
330
|
+
},
|
331
|
+
"roles":[]
|
332
|
+
}
|
333
|
+
|
334
|
+
http_version:
|
335
|
+
recorded_at: Thu, 09 Aug 2018 10:19:57 GMT
|
336
|
+
recorded_with: VCR 4.0.0
|