contentful-management 3.0.0 → 3.1.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 +4 -0
- data/README.md +15 -2
- data/lib/contentful/management/organization_user_methods_factory.rb +4 -0
- data/lib/contentful/management/resource.rb +4 -2
- data/lib/contentful/management/space_user_methods_factory.rb +4 -0
- data/lib/contentful/management/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/organization/users.yml +233 -0
- data/spec/fixtures/vcr_cassettes/space/users.yml +236 -0
- data/spec/lib/contentful/management/organization_spec.rb +10 -0
- data/spec/lib/contentful/management/space_spec.rb +10 -0
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1537c2cc75f3daacb31c8764f6b7464ed762f662df0437a9a1cb70808f7f5275
|
4
|
+
data.tar.gz: a7613ed0ba9808ecb6636f3bf7ceb20c45ee0c3ef803e7e735f9c9583c18a0b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84a0848640c0e345695f76357e1154a83d591aa93698733cc08edd20f719d03121e07dfd08a4b42b274441b992618ddafc9ecab6f19d8ece3a2df6948cffa4d5
|
7
|
+
data.tar.gz: b0f25603b7e59daaf240ffa5770d50fa5b701c47faf8911be5b8a94099428b4eeb94aceed2cce832c071d5116e1cc9f2e027e1a47beab82356a0b6f9b24a2f05
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -877,10 +877,10 @@ Retrieving current user details:
|
|
877
877
|
user = client.users.me
|
878
878
|
```
|
879
879
|
|
880
|
-
Retrieving
|
880
|
+
Retrieving all users in organization:
|
881
881
|
|
882
882
|
```ruby
|
883
|
-
user =
|
883
|
+
user = organization.users.all
|
884
884
|
```
|
885
885
|
|
886
886
|
Retrieving one user by ID from an organization:
|
@@ -888,6 +888,19 @@ Retrieving one user by ID from an organization:
|
|
888
888
|
```ruby
|
889
889
|
user = organization.users.find('user_id')
|
890
890
|
```
|
891
|
+
|
892
|
+
Retrieving all users in a space:
|
893
|
+
|
894
|
+
```ruby
|
895
|
+
user = blog_space.users.all
|
896
|
+
```
|
897
|
+
|
898
|
+
Retrieving one user by ID from the space:
|
899
|
+
|
900
|
+
```ruby
|
901
|
+
user = blog_space.users.find('user_id')
|
902
|
+
```
|
903
|
+
|
891
904
|
### UI Extensions
|
892
905
|
|
893
906
|
Retrieving all UI extensions from the environment:
|
@@ -226,8 +226,10 @@ module Contentful
|
|
226
226
|
# @see _ For complete option list: https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters
|
227
227
|
#
|
228
228
|
# @return [Contentful::Management::Array<Contentful::Management::Resource>]
|
229
|
-
def all(client, space_id, environment_id = nil, parameters = {})
|
230
|
-
ResourceRequester.new(client, self).all(
|
229
|
+
def all(client, space_id, environment_id = nil, parameters = {}, organization_id = nil)
|
230
|
+
ResourceRequester.new(client, self).all(
|
231
|
+
{ space_id: space_id, environment_id: environment_id, organization_id: organization_id }, parameters
|
232
|
+
)
|
231
233
|
end
|
232
234
|
|
233
235
|
# Gets a specific resource.
|
@@ -0,0 +1,233 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.contentful.com/organizations
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
X-Contentful-User-Agent:
|
11
|
+
- sdk contentful-management.rb/3.0.0; platform ruby/2.7.1; os macOS/19;
|
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-Tag-Visibility,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,cf-trace
|
31
|
+
Access-Control-Allow-Methods:
|
32
|
+
- DELETE,GET,HEAD,POST,PUT,PATCH,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
|
+
- no-store
|
41
|
+
Content-Type:
|
42
|
+
- application/vnd.contentful.management.v1+json
|
43
|
+
Contentful-Api:
|
44
|
+
- cma
|
45
|
+
Contentful-Origin-Time:
|
46
|
+
- '0.042'
|
47
|
+
Contentful-Upstream:
|
48
|
+
- gatekeeper
|
49
|
+
Date:
|
50
|
+
- Tue, 25 May 2021 14:54:47 GMT
|
51
|
+
Etag:
|
52
|
+
- W/"f1a18798544561755c26ca40c5299b9d"
|
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-Request-Id:
|
62
|
+
- b86c15f8053def60d6ae0224868ce3a8
|
63
|
+
X-Contentful-Route:
|
64
|
+
- "/organizations"
|
65
|
+
X-Download-Options:
|
66
|
+
- noopen
|
67
|
+
X-Permitted-Cross-Domain-Policies:
|
68
|
+
- none
|
69
|
+
X-Xss-Protection:
|
70
|
+
- 1; mode=block
|
71
|
+
Content-Length:
|
72
|
+
- '1091'
|
73
|
+
Connection:
|
74
|
+
- Close
|
75
|
+
Set-Cookie:
|
76
|
+
- incap_ses_534_673446=34nCDjyr9VTahl2HjSZpB7cPrWAAAAAARcs7llOvnJKwZjNzQ7xP6Q==;
|
77
|
+
path=/; Domain=.contentful.com
|
78
|
+
- nlbi_673446=qbCHYsxoDldx4GycKsJtVwAAAAAuVFJeCzCqrgr5XUiGQ5ej; path=/; Domain=.contentful.com
|
79
|
+
- visid_incap_673446=goz0FdmjToKesHzSvSse/LcPrWAAAAAAQUIPAAAAAAC9I3V9SGI32ZnXY6/TE4GN;
|
80
|
+
expires=Wed, 25 May 2022 05:57:35 GMT; HttpOnly; path=/; Domain=.contentful.com
|
81
|
+
X-Cdn:
|
82
|
+
- Imperva
|
83
|
+
X-Iinfo:
|
84
|
+
- 9-52084825-52084832 NNNY CT(88 87 0) RT(1621954486952 51) q(0 0 0 -1) r(1
|
85
|
+
1) U5
|
86
|
+
body:
|
87
|
+
encoding: ASCII-8BIT
|
88
|
+
string: |+
|
89
|
+
{
|
90
|
+
"total":4,
|
91
|
+
"limit":25,
|
92
|
+
"skip":0,
|
93
|
+
"sys":{
|
94
|
+
"type":"Array"
|
95
|
+
},
|
96
|
+
"items":[
|
97
|
+
{
|
98
|
+
"name":"SDKs Test Organization - v2 Enterprise",
|
99
|
+
"sys":{
|
100
|
+
"type":"Organization",
|
101
|
+
"id":"1VcAE6naLx3WZBNNUIMMZE",
|
102
|
+
"version":3,
|
103
|
+
"createdAt":"2018-10-08T13:23:19Z",
|
104
|
+
"updatedAt":"2021-03-16T15:14:23Z"
|
105
|
+
}
|
106
|
+
},
|
107
|
+
{
|
108
|
+
"name":"Contenful",
|
109
|
+
"sys":{
|
110
|
+
"type":"Organization",
|
111
|
+
"id":"59FPZVgxkP8nNontUf5ngp",
|
112
|
+
"version":0,
|
113
|
+
"createdAt":"2020-10-21T09:49:40Z",
|
114
|
+
"updatedAt":"2020-10-21T09:49:40Z"
|
115
|
+
}
|
116
|
+
},
|
117
|
+
{
|
118
|
+
"name":"Contentful Test",
|
119
|
+
"sys":{
|
120
|
+
"type":"Organization",
|
121
|
+
"id":"3JZ2sQfqkxc8XBR82Qu9pF",
|
122
|
+
"version":0,
|
123
|
+
"createdAt":"2020-10-21T10:09:50Z",
|
124
|
+
"updatedAt":"2020-10-21T10:09:50Z"
|
125
|
+
}
|
126
|
+
},
|
127
|
+
{
|
128
|
+
"name":"SDK Freelancers ",
|
129
|
+
"sys":{
|
130
|
+
"type":"Organization",
|
131
|
+
"id":"4kQeJmhUWIKtNNmMkketza",
|
132
|
+
"version":0,
|
133
|
+
"createdAt":"2020-10-28T15:02:44Z",
|
134
|
+
"updatedAt":"2020-10-28T15:02:44Z"
|
135
|
+
}
|
136
|
+
}
|
137
|
+
]
|
138
|
+
}
|
139
|
+
|
140
|
+
http_version:
|
141
|
+
recorded_at: Tue, 25 May 2021 14:54:49 GMT
|
142
|
+
- request:
|
143
|
+
method: get
|
144
|
+
uri: https://api.contentful.com/organizations/1VcAE6naLx3WZBNNUIMMZE/users
|
145
|
+
body:
|
146
|
+
encoding: UTF-8
|
147
|
+
string: ''
|
148
|
+
headers:
|
149
|
+
X-Contentful-User-Agent:
|
150
|
+
- sdk contentful-management.rb/3.0.0; platform ruby/2.7.1; os macOS/19;
|
151
|
+
Authorization:
|
152
|
+
- Bearer <ACCESS_TOKEN>
|
153
|
+
Content-Type:
|
154
|
+
- application/vnd.contentful.management.v1+json
|
155
|
+
Connection:
|
156
|
+
- close
|
157
|
+
Host:
|
158
|
+
- api.contentful.com
|
159
|
+
User-Agent:
|
160
|
+
- http.rb/4.4.1
|
161
|
+
response:
|
162
|
+
status:
|
163
|
+
code: 200
|
164
|
+
message: OK
|
165
|
+
headers:
|
166
|
+
Accept-Ranges:
|
167
|
+
- bytes
|
168
|
+
Access-Control-Allow-Headers:
|
169
|
+
- 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-Tag-Visibility,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,cf-trace
|
170
|
+
Access-Control-Allow-Methods:
|
171
|
+
- DELETE,GET,HEAD,POST,PUT,PATCH,OPTIONS
|
172
|
+
Access-Control-Allow-Origin:
|
173
|
+
- "*"
|
174
|
+
Access-Control-Expose-Headers:
|
175
|
+
- Etag
|
176
|
+
Access-Control-Max-Age:
|
177
|
+
- '1728000'
|
178
|
+
Cache-Control:
|
179
|
+
- no-store
|
180
|
+
Cf-Organization-Id:
|
181
|
+
- 1VcAE6naLx3WZBNNUIMMZE
|
182
|
+
Content-Type:
|
183
|
+
- application/vnd.contentful.management.v1+json
|
184
|
+
Contentful-Api:
|
185
|
+
- cma
|
186
|
+
Contentful-Origin-Time:
|
187
|
+
- '0.491'
|
188
|
+
Contentful-Upstream:
|
189
|
+
- gatekeeper
|
190
|
+
Date:
|
191
|
+
- Tue, 25 May 2021 14:54:48 GMT
|
192
|
+
Etag:
|
193
|
+
- W/"c9ef95f3b8788630d1f0f60ff757ce8f"
|
194
|
+
Referrer-Policy:
|
195
|
+
- strict-origin-when-cross-origin
|
196
|
+
Server:
|
197
|
+
- Contentful
|
198
|
+
Strict-Transport-Security:
|
199
|
+
- max-age=15768000
|
200
|
+
X-Content-Type-Options:
|
201
|
+
- nosniff
|
202
|
+
X-Contentful-Request-Id:
|
203
|
+
- c742992fe8e7ee6dad8a3973d0d9ec01
|
204
|
+
X-Contentful-Route:
|
205
|
+
- "/organizations/:organization_id/users"
|
206
|
+
X-Download-Options:
|
207
|
+
- noopen
|
208
|
+
X-Permitted-Cross-Domain-Policies:
|
209
|
+
- none
|
210
|
+
X-Xss-Protection:
|
211
|
+
- 1; mode=block
|
212
|
+
Content-Length:
|
213
|
+
- '6890'
|
214
|
+
Connection:
|
215
|
+
- Close
|
216
|
+
Set-Cookie:
|
217
|
+
- incap_ses_534_673446=/dKISOLPeHhqh12HjSZpB7cPrWAAAAAA6BrBhmnUVHJ2hiLKBvjSPg==;
|
218
|
+
path=/; Domain=.contentful.com
|
219
|
+
- nlbi_673446=HXB6IJoHZWrfZs+OKsJtVwAAAAC4DI/9YNLvfh9y8KkdMjDY; path=/; Domain=.contentful.com
|
220
|
+
- visid_incap_673446=/XX84US0R4efRmii4+/Wx7cPrWAAAAAAQUIPAAAAAAAVphGUsSFaC+eJRUoQH8C0;
|
221
|
+
expires=Wed, 25 May 2022 05:57:34 GMT; HttpOnly; path=/; Domain=.contentful.com
|
222
|
+
X-Cdn:
|
223
|
+
- Imperva
|
224
|
+
X-Iinfo:
|
225
|
+
- 4-83566599-83566606 NNNY CT(91 91 0) RT(1621954487184 37) q(0 0 0 -1) r(6
|
226
|
+
6) U5
|
227
|
+
body:
|
228
|
+
encoding: ASCII-8BIT
|
229
|
+
string: !binary |-
|
230
|
+
ewogICJ0b3RhbCI6NiwKICAibGltaXQiOjI1LAogICJza2lwIjowLAogICJzeXMiOnsKICAgICJ0eXBlIjoiQXJyYXkiCiAgfSwKICAiaXRlbXMiOlsKICAgIHsKICAgICAgImZpcnN0TmFtZSI6Ikl2ZXR0IiwKICAgICAgImxhc3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C5jb20lMkZpbml0aWFscyUyRnYxJTJGUkElMkY1MCIsCiAgICAgICJlbWFpbCI6InJhZmFsLm5pc2tpQGV4dGVybmFsLmNvbnRlbnRmdWwuY29tIiwKICAgICAgImNvb2tpZUNvbnNlbnREYXRhIjpudWxsLAogICAgICAiYWN0aXZhdGVkIjpmYWxzZSwKICAgICAgInNpZ25JbkNvdW50IjowLAogICAgICAiY29uZmlybWVkIjp0cnVlLAogICAgICAiMmZhRW5hYmxlZCI6ZmFsc2UsCiAgICAgICJzeXMiOnsKICAgICAgICAidHlwZSI6IlVzZXIiLAogICAgICAgICJpZCI6IjFGbUp4OWlJNkp5UXdsOERBaERxMUwiLAogICAgICAgICJ2ZXJzaW9uIjowLAogICAgICAgICJvcmdhbml6YXRpb24iOnsKICAgICAgICAgICJzeXMiOnsKICAgICAgICAgICAgInR5cGUiOiJMaW5rIiwKICAgICAgICAgICAgImxpbmtUeXBlIjoiT3JnYW5pemF0aW9uIiwKICAgICAgICAgICAgImlkIjoiMVZjQUU2bmFMeDNXWkJOTlVJTU1aRSIKICAgICAgICAgIH0KICAgICAgICB9LAogICAgICAgICJjcmVhdGVkQXQiOiIyMDIxLTAyLTExVDExOjQyOjU5WiIsCiAgICAgICAgInVwZGF0ZWRBdCI6IjIwMjEtMDItMTFUMTE6NDI6NTlaIgogICAgICB9CiAgICB9LAogICAgewogICAgICAiZmlyc3ROYW1lIjpudWxsLAogICAgICAibGFzdE5hbWUiOm51bGwsCiAgICAgICJhdmF0YXJVcmwiOiJodHRwczovL3d3dy5ncmF2YXRhci5jb20vYXZhdGFyL2M3MzAxZDcxY2I0YjE1NDhhOTFmMGFhMjcxMDU5NDA2P3M9NTAmZD1odHRwcyUzQSUyRiUyRmF2YXRhcnMuY29udGVudGZ1bC5jb20lMkZpbml0aWFscyUyRnYxJTJGUk8lMkY1MCIsCiAgICAgICJlbWFpbCI6InJvYmVydEBleHRlcm5hbC5jb250ZW50ZnVsLmNvbSIsCiAgICAgICJjb29raWVDb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MiOnsKICAgICAgICAidHlwZSI6IlVzZXIiLAogICAgICAgICJpZCI6IjRmZXJqVWVBd1R4TmlQYmZUamh0aUEiLAogICAgICAgICJ2ZXJzaW9uIjo5LAogICAgICAgICJjcmVhdGVkQXQiOiIyMDIxLTAyLTE3VDE0OjU4OjQwWiIsCiAgICAgICAgInVwZGF0ZWRBdCI6IjIwMjEtMDUtMjJUMTQ6NDI6MTBaIgogICAgICB9CiAgICB9CiAgXQp9Cgo=
|
231
|
+
http_version:
|
232
|
+
recorded_at: Tue, 25 May 2021 14:54:49 GMT
|
233
|
+
recorded_with: VCR 4.0.0
|
@@ -0,0 +1,236 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.contentful.com/spaces/space_id
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
X-Contentful-User-Agent:
|
11
|
+
- sdk contentful-management.rb/3.0.0; platform ruby/2.7.1; os macOS/19;
|
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-Tag-Visibility,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,cf-trace
|
31
|
+
Access-Control-Allow-Methods:
|
32
|
+
- DELETE,GET,HEAD,POST,PUT,PATCH,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
|
+
- no-store
|
41
|
+
Cf-Organization-Id:
|
42
|
+
- 4kQeJmhUWIKtNNmMkketza
|
43
|
+
Cf-Space-Id:
|
44
|
+
- space_id
|
45
|
+
Content-Type:
|
46
|
+
- application/vnd.contentful.management.v1+json
|
47
|
+
Contentful-Api:
|
48
|
+
- cma
|
49
|
+
Contentful-Upstream:
|
50
|
+
- gatekeeper
|
51
|
+
Date:
|
52
|
+
- Fri, 21 May 2021 12:16:38 GMT
|
53
|
+
Etag:
|
54
|
+
- W/"ead962585057b7e506051e292ca08c74"
|
55
|
+
Referrer-Policy:
|
56
|
+
- strict-origin-when-cross-origin
|
57
|
+
Server:
|
58
|
+
- Contentful
|
59
|
+
Strict-Transport-Security:
|
60
|
+
- max-age=15768000
|
61
|
+
X-Content-Type-Options:
|
62
|
+
- nosniff
|
63
|
+
X-Contentful-Ratelimit-Hour-Limit:
|
64
|
+
- '36000'
|
65
|
+
X-Contentful-Ratelimit-Hour-Remaining:
|
66
|
+
- '35999'
|
67
|
+
X-Contentful-Ratelimit-Reset:
|
68
|
+
- '0'
|
69
|
+
X-Contentful-Ratelimit-Second-Limit:
|
70
|
+
- '10'
|
71
|
+
X-Contentful-Ratelimit-Second-Remaining:
|
72
|
+
- '9'
|
73
|
+
X-Contentful-Request-Id:
|
74
|
+
- f93ef22c875fa88371cfd1f9b023813f
|
75
|
+
X-Contentful-Route:
|
76
|
+
- "/spaces/:id"
|
77
|
+
X-Download-Options:
|
78
|
+
- noopen
|
79
|
+
X-Permitted-Cross-Domain-Policies:
|
80
|
+
- none
|
81
|
+
X-Xss-Protection:
|
82
|
+
- 1; mode=block
|
83
|
+
Content-Length:
|
84
|
+
- '592'
|
85
|
+
Connection:
|
86
|
+
- Close
|
87
|
+
Set-Cookie:
|
88
|
+
- incap_ses_1288_673446=nGp/PAQDyi1tK+VBYOXfEaWkp2AAAAAAfM4OkHdoAiA6lI40ocvZTg==;
|
89
|
+
path=/; Domain=.contentful.com
|
90
|
+
- nlbi_673446=ACaFTGQUciQi6f+tKsJtVwAAAADULuhp5Axi0Wg9Yg6sKWuP; path=/; Domain=.contentful.com
|
91
|
+
- visid_incap_673446=u3xA3JJmTqeZ2TedhzEzqqWkp2AAAAAAQUIPAAAAAAAkrCnr0EWrrwrXLI/gf7mW;
|
92
|
+
expires=Fri, 20 May 2022 19:03:31 GMT; HttpOnly; path=/; Domain=.contentful.com
|
93
|
+
X-Cdn:
|
94
|
+
- Imperva
|
95
|
+
X-Iinfo:
|
96
|
+
- 7-6951273-6951287 NNNY CT(89 88 0) RT(1621599397460 171) q(0 0 0 -1) r(1 1)
|
97
|
+
U5
|
98
|
+
body:
|
99
|
+
encoding: ASCII-8BIT
|
100
|
+
string: |+
|
101
|
+
{
|
102
|
+
"name":"SDK",
|
103
|
+
"sys":{
|
104
|
+
"type":"Space",
|
105
|
+
"id":"space_id",
|
106
|
+
"version":2,
|
107
|
+
"createdBy":{
|
108
|
+
"sys":{
|
109
|
+
"type":"Link",
|
110
|
+
"linkType":"User",
|
111
|
+
"id":"5HvjqrbdXRupD8jmTsskvE"
|
112
|
+
}
|
113
|
+
},
|
114
|
+
"createdAt":"2020-11-02T09:11:49Z",
|
115
|
+
"updatedBy":{
|
116
|
+
"sys":{
|
117
|
+
"type":"Link",
|
118
|
+
"linkType":"User",
|
119
|
+
"id":"5HvjqrbdXRupD8jmTsskvE"
|
120
|
+
}
|
121
|
+
},
|
122
|
+
"updatedAt":"2020-12-08T12:11:03Z",
|
123
|
+
"organization":{
|
124
|
+
"sys":{
|
125
|
+
"type":"Link",
|
126
|
+
"linkType":"Organization",
|
127
|
+
"id":"4kQeJmhUWIKtNNmMkketza"
|
128
|
+
}
|
129
|
+
}
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
http_version:
|
134
|
+
recorded_at: Fri, 21 May 2021 12:16:38 GMT
|
135
|
+
- request:
|
136
|
+
method: get
|
137
|
+
uri: https://api.contentful.com/spaces/space_id/users
|
138
|
+
body:
|
139
|
+
encoding: UTF-8
|
140
|
+
string: ''
|
141
|
+
headers:
|
142
|
+
X-Contentful-User-Agent:
|
143
|
+
- sdk contentful-management.rb/3.0.0; platform ruby/2.7.1; os macOS/19;
|
144
|
+
Authorization:
|
145
|
+
- Bearer <ACCESS_TOKEN>
|
146
|
+
Content-Type:
|
147
|
+
- application/vnd.contentful.management.v1+json
|
148
|
+
Connection:
|
149
|
+
- close
|
150
|
+
Host:
|
151
|
+
- api.contentful.com
|
152
|
+
User-Agent:
|
153
|
+
- http.rb/4.4.1
|
154
|
+
response:
|
155
|
+
status:
|
156
|
+
code: 200
|
157
|
+
message: OK
|
158
|
+
headers:
|
159
|
+
Accept-Ranges:
|
160
|
+
- bytes
|
161
|
+
Access-Control-Allow-Headers:
|
162
|
+
- 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-Tag-Visibility,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,cf-trace
|
163
|
+
Access-Control-Allow-Methods:
|
164
|
+
- DELETE,GET,HEAD,POST,PUT,PATCH,OPTIONS
|
165
|
+
Access-Control-Allow-Origin:
|
166
|
+
- "*"
|
167
|
+
Access-Control-Expose-Headers:
|
168
|
+
- Etag
|
169
|
+
Access-Control-Max-Age:
|
170
|
+
- '1728000'
|
171
|
+
Cache-Control:
|
172
|
+
- no-store
|
173
|
+
Cf-Organization-Id:
|
174
|
+
- 4kQeJmhUWIKtNNmMkketza
|
175
|
+
Cf-Space-Id:
|
176
|
+
- space_id
|
177
|
+
Content-Type:
|
178
|
+
- application/vnd.contentful.management.v1+json
|
179
|
+
Contentful-Api:
|
180
|
+
- cma
|
181
|
+
Contentful-Upstream:
|
182
|
+
- gatekeeper
|
183
|
+
Date:
|
184
|
+
- Fri, 21 May 2021 13:52:55 GMT
|
185
|
+
Etag:
|
186
|
+
- W/"f34ef03fd1bf839c5440e8c1d8441e77"
|
187
|
+
Referrer-Policy:
|
188
|
+
- strict-origin-when-cross-origin
|
189
|
+
Server:
|
190
|
+
- Contentful
|
191
|
+
Strict-Transport-Security:
|
192
|
+
- max-age=15768000
|
193
|
+
X-Content-Type-Options:
|
194
|
+
- nosniff
|
195
|
+
X-Contentful-Ratelimit-Hour-Limit:
|
196
|
+
- '36000'
|
197
|
+
X-Contentful-Ratelimit-Hour-Remaining:
|
198
|
+
- '35999'
|
199
|
+
X-Contentful-Ratelimit-Reset:
|
200
|
+
- '0'
|
201
|
+
X-Contentful-Ratelimit-Second-Limit:
|
202
|
+
- '10'
|
203
|
+
X-Contentful-Ratelimit-Second-Remaining:
|
204
|
+
- '9'
|
205
|
+
X-Contentful-Request-Id:
|
206
|
+
- '082d208ec007767a1c5285329938b1f7'
|
207
|
+
X-Contentful-Route:
|
208
|
+
- "/spaces/:space_id/users"
|
209
|
+
X-Download-Options:
|
210
|
+
- noopen
|
211
|
+
X-Permitted-Cross-Domain-Policies:
|
212
|
+
- none
|
213
|
+
X-Xss-Protection:
|
214
|
+
- 1; mode=block
|
215
|
+
Content-Length:
|
216
|
+
- '2661'
|
217
|
+
Connection:
|
218
|
+
- Close
|
219
|
+
Set-Cookie:
|
220
|
+
- incap_ses_535_673446=AKJWJVdNpU2PyFp/B7RsBza7p2AAAAAAdXQmHLPnRoM52f5eqNM/6g==;
|
221
|
+
path=/; Domain=.contentful.com
|
222
|
+
- nlbi_673446=cFeERi0i3CGjuWFlKsJtVwAAAACth1PggUskHWEcWfIg3Tcl; path=/; Domain=.contentful.com
|
223
|
+
- visid_incap_673446=8za7oUmdTpCERY2fzH2ewza7p2AAAAAAQUIPAAAAAAAtas3RdVWBNQFlutGMQ9cE;
|
224
|
+
expires=Fri, 20 May 2022 16:05:23 GMT; HttpOnly; path=/; Domain=.contentful.com
|
225
|
+
X-Cdn:
|
226
|
+
- Imperva
|
227
|
+
X-Iinfo:
|
228
|
+
- 5-24743550-24743559 NNNY CT(90 91 0) RT(1621605174644 52) q(0 0 0 2) r(2 2)
|
229
|
+
U5
|
230
|
+
body:
|
231
|
+
encoding: ASCII-8BIT
|
232
|
+
string: !binary |-
|
233
|
+
ewogICJ0b3RhbCI6MiwKICAibGltaXQiOjI1LAogICJza2lwIjowLAogICJzeXMiOnsKICAgICJ0eXBlIjoiQXJyYXkiCiAgfSwKICAiaXRlbXMiOlsKICAgIHsKICAgICAgImZpcnN0TmFtZSI6Ikl2ZXR0IiwKICAgICAgImxhc3ROYW1lIjoiw5ZyZMO2ZyIsCiAgICAgICJhdmF0YXJVcmwiOiJodHRwczovL3d3dy5ncmF2YXRhci5jb20vYXZhdGFyLzM3OTRiZGIyN2U1MDY0NWQxN2VkNTIzMWRlZjhlZDJkP3M9NTAmZD1odHRwcyUzQSUyRiUyRmF2YXRhcnMuY29udGVudGZ1bC5jb20lMkZpbml0aWFscyUyRnYxJTJGSSVDMyU5NiUyRjUwIiwKICAgICAgImVtY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JRclBhaElPS3BfNk8xZzhVdU9WeWwzdFBwSWtxdzg1M2FUWHB4aFpUU3FUM2hsckdBemkxX09DMUpiaGdNb25nZWxzVDA1cEpsRlpDX0xMRHZJb1RvR3diMHpZeFViUVZYLVliNVY2dWFxWUNNRk53MkhvMnljU2NxY255OEN6azJrckI1bjVXcEMwMk9fVm0zMTVYZG9md1lpUT09XCIsXCJleHBpcmF0aW9uRGF0ZVwiOjE2NDA2MDUxMDcyNTAsXCJ1dWlkXCI6XCJjZTJlNzIwMi1lOTA4LTQ5NzItODFiZi1iZGQ1YmMwNDYwODhcIixcImNvbnNlbnRSZWNvcmRcIjp7XCJFU1NFTlRJQUxcIjpcIkFDQ0VQVFwiLFwiU1RPUkFHRVwiOlwiQUNDRVBUXCIsXCJNQVJLRVRJTkdcIjpcIkFDQ0VQVFwiLFwiUEVSU09OQUxJWkFUSU9OXCI6XCJBQ0NFUFRcIixcIkFOQUxZVElDU1wiOlwiQUNDRVBUXCIsXCJPUFRfT1VUXCI6XCJERU5ZXCJ9fX0iLAogICAgICAiYWN0aXZhdGVkIjp0cnVlLAogICAgICAic2lnbkluQ291bnQiOjI2LAogICAgICAiY29uZmlybWVkIjp0cnVlLAogICAgICAiMmZhRW5hYmxlZCI6ZmFsc2UsCiAgICAgICJzeXMiOnsKICAgICAgICAidHlwZSI6IlVzZXIiLAogICAgICAgICJpZCI6IjU5RXJtOEQxSnV1RDI3M2FYTmI2NVQiLAogICAgICAgICJ2ZXJzaW9uIjozMCwKICAgICAgICAiY3JlYXRlZEF0IjoiMjAyMC0xMC0yMVQwOTo0OTo0MFoiLAogICAgICAgICJ1cGRhdGVkQXQiOiIyMDIxLTA1LTIxVDA4OjE1OjQ4WiIKICAgICAgfQogICAgfQogIF0KfQoK
|
234
|
+
http_version:
|
235
|
+
recorded_at: Fri, 21 May 2021 13:52:55 GMT
|
236
|
+
recorded_with: VCR 4.0.0
|
@@ -46,6 +46,16 @@ module Contentful
|
|
46
46
|
expect(user.avatar_url).to be_truthy
|
47
47
|
}
|
48
48
|
end
|
49
|
+
|
50
|
+
describe "all" do
|
51
|
+
it 'returns a Contentful::Array' do
|
52
|
+
vcr('organization/users') { expect(subject.all.first.users.all).to be_kind_of Contentful::Management::Array }
|
53
|
+
end
|
54
|
+
|
55
|
+
it 'builds a Contentful::Management::Space object' do
|
56
|
+
vcr('organization/users') { expect(subject.all.first.users.all.first).to be_kind_of Contentful::Management::User }
|
57
|
+
end
|
58
|
+
end
|
49
59
|
end
|
50
60
|
end
|
51
61
|
end
|
@@ -259,6 +259,16 @@ module Contentful
|
|
259
259
|
}
|
260
260
|
end
|
261
261
|
end
|
262
|
+
|
263
|
+
describe "all" do
|
264
|
+
it 'returns a Contentful::Array' do
|
265
|
+
vcr('space/users') { expect(subject.find('space_id').users.all).to be_kind_of Contentful::Management::Array }
|
266
|
+
end
|
267
|
+
|
268
|
+
it 'builds a Contentful::Management::Space object' do
|
269
|
+
vcr('space/users') { expect(subject.find('space_id').users.all.first).to be_kind_of Contentful::Management::User }
|
270
|
+
end
|
271
|
+
end
|
262
272
|
end
|
263
273
|
end
|
264
274
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contentful-management
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Protas
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2021-
|
13
|
+
date: 2021-05-31 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: http
|
@@ -656,6 +656,7 @@ files:
|
|
656
656
|
- spec/fixtures/vcr_cassettes/locale/update_name.yml
|
657
657
|
- spec/fixtures/vcr_cassettes/organization/all.yml
|
658
658
|
- spec/fixtures/vcr_cassettes/organization/user.yml
|
659
|
+
- spec/fixtures/vcr_cassettes/organization/users.yml
|
659
660
|
- spec/fixtures/vcr_cassettes/organization_periodic_usage/all.yml
|
660
661
|
- spec/fixtures/vcr_cassettes/organization_periodic_usage/filters.yml
|
661
662
|
- spec/fixtures/vcr_cassettes/personal_access_token/all.yml
|
@@ -726,6 +727,7 @@ files:
|
|
726
727
|
- spec/fixtures/vcr_cassettes/space/update.yml
|
727
728
|
- spec/fixtures/vcr_cassettes/space/update_with_the_same_data.yml
|
728
729
|
- spec/fixtures/vcr_cassettes/space/user.yml
|
730
|
+
- spec/fixtures/vcr_cassettes/space/users.yml
|
729
731
|
- spec/fixtures/vcr_cassettes/space/webhook/all.yml
|
730
732
|
- spec/fixtures/vcr_cassettes/space/webhook/create.yml
|
731
733
|
- spec/fixtures/vcr_cassettes/space/webhook/find.yml
|
@@ -1067,6 +1069,7 @@ test_files:
|
|
1067
1069
|
- spec/fixtures/vcr_cassettes/locale/update_name.yml
|
1068
1070
|
- spec/fixtures/vcr_cassettes/organization/all.yml
|
1069
1071
|
- spec/fixtures/vcr_cassettes/organization/user.yml
|
1072
|
+
- spec/fixtures/vcr_cassettes/organization/users.yml
|
1070
1073
|
- spec/fixtures/vcr_cassettes/organization_periodic_usage/all.yml
|
1071
1074
|
- spec/fixtures/vcr_cassettes/organization_periodic_usage/filters.yml
|
1072
1075
|
- spec/fixtures/vcr_cassettes/personal_access_token/all.yml
|
@@ -1137,6 +1140,7 @@ test_files:
|
|
1137
1140
|
- spec/fixtures/vcr_cassettes/space/update.yml
|
1138
1141
|
- spec/fixtures/vcr_cassettes/space/update_with_the_same_data.yml
|
1139
1142
|
- spec/fixtures/vcr_cassettes/space/user.yml
|
1143
|
+
- spec/fixtures/vcr_cassettes/space/users.yml
|
1140
1144
|
- spec/fixtures/vcr_cassettes/space/webhook/all.yml
|
1141
1145
|
- spec/fixtures/vcr_cassettes/space/webhook/create.yml
|
1142
1146
|
- spec/fixtures/vcr_cassettes/space/webhook/find.yml
|