contentful-management 1.0.1 → 1.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 +10 -0
- data/Gemfile +1 -0
- data/README.md +245 -151
- data/lib/contentful/management/client.rb +20 -0
- data/lib/contentful/management/client_association_all_published_method_factory.rb +4 -0
- data/lib/contentful/management/client_content_type_methods_factory.rb +4 -0
- data/lib/contentful/management/client_editor_interface_methods_factory.rb +35 -0
- data/lib/contentful/management/client_role_methods_factory.rb +15 -0
- data/lib/contentful/management/client_webhook_methods_factory.rb +1 -1
- data/lib/contentful/management/content_type.rb +12 -0
- data/lib/contentful/management/content_type_editor_interface_methods_factory.rb +22 -0
- data/lib/contentful/management/editor_interface.rb +85 -0
- data/lib/contentful/management/field.rb +1 -0
- data/lib/contentful/management/resource/all_published.rb +1 -0
- data/lib/contentful/management/resource/refresher.rb +7 -3
- data/lib/contentful/management/resource_builder.rb +5 -1
- data/lib/contentful/management/role.rb +33 -0
- data/lib/contentful/management/space.rb +28 -0
- data/lib/contentful/management/space_association_all_published_method_factory.rb +1 -0
- data/lib/contentful/management/space_editor_interface_methods_factory.rb +21 -0
- data/lib/contentful/management/space_role_methods_factory.rb +15 -0
- data/lib/contentful/management/version.rb +1 -1
- data/lib/contentful/management/webhook.rb +4 -1
- data/spec/fixtures/vcr_cassettes/content_type/omitted_field.yml +640 -0
- data/spec/fixtures/vcr_cassettes/editor_interfaces/default_for_space.yml +252 -0
- data/spec/fixtures/vcr_cassettes/editor_interfaces/update.yml +348 -0
- data/spec/fixtures/vcr_cassettes/roles/all_for_space.yml +238 -0
- data/spec/fixtures/vcr_cassettes/roles/create_for_space.yml +143 -0
- data/spec/fixtures/vcr_cassettes/roles/destroy.yml +430 -0
- data/spec/fixtures/vcr_cassettes/roles/find.yml +155 -0
- data/spec/fixtures/vcr_cassettes/roles/find_for_space_not_found.yml +82 -0
- data/spec/fixtures/vcr_cassettes/roles/update.yml +459 -0
- data/spec/fixtures/vcr_cassettes/webhook/create_with_name_and_headers.yml +119 -0
- data/spec/fixtures/vcr_cassettes/webhook/topics.yml +117 -0
- data/spec/lib/contentful/management/asset_spec.rb +4 -0
- data/spec/lib/contentful/management/content_type_spec.rb +36 -0
- data/spec/lib/contentful/management/editor_interface_spec.rb +57 -0
- data/spec/lib/contentful/management/entry_spec.rb +5 -0
- data/spec/lib/contentful/management/role_spec.rb +125 -0
- data/spec/lib/contentful/management/webhook_spec.rb +37 -0
- metadata +35 -2
@@ -0,0 +1,252 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.contentful.com/spaces/oe3b689om6k5/content_types/testInterfaces/editor_interface
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- RubyContentfulManagementGem/1.0.1
|
12
|
+
Authorization:
|
13
|
+
- Bearer <ACCESS_TOKEN>
|
14
|
+
Content-Type:
|
15
|
+
- application/vnd.contentful.management.v1+json
|
16
|
+
Content-Length:
|
17
|
+
- '0'
|
18
|
+
Connection:
|
19
|
+
- close
|
20
|
+
Host:
|
21
|
+
- api.contentful.com
|
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
|
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-Space-Id:
|
38
|
+
- oe3b689om6k5
|
39
|
+
Content-Type:
|
40
|
+
- application/vnd.contentful.management.v1+json
|
41
|
+
Date:
|
42
|
+
- Mon, 30 May 2016 12:25:17 GMT
|
43
|
+
Etag:
|
44
|
+
- '"bfcab40c7a2c8f00fa286c2d7b3f9600"'
|
45
|
+
Server:
|
46
|
+
- nginx
|
47
|
+
Strict-Transport-Security:
|
48
|
+
- max-age=15768000
|
49
|
+
X-Content-Type-Options:
|
50
|
+
- nosniff
|
51
|
+
X-Contentful-Request-Id:
|
52
|
+
- content-api:3V7KLTRbVKwk4mOkWKQY2w
|
53
|
+
X-Powered-By:
|
54
|
+
- Express
|
55
|
+
Content-Length:
|
56
|
+
- '3295'
|
57
|
+
Connection:
|
58
|
+
- Close
|
59
|
+
Set-Cookie:
|
60
|
+
- incap_ses_297_673446=vjcRbevWbwQgoXIeHigfBC0xTFcAAAAAebX9BmvKI1/rkjPj1L1ieA==;
|
61
|
+
path=/; Domain=.contentful.com
|
62
|
+
- nlbi_673446=cln6ZaMUEzbL9xtRaoBaJgAAAABo0MwlOP+QgBwV3M1IRCuC; path=/; Domain=.contentful.com
|
63
|
+
- visid_incap_673446=WiuwyQBHTG+N5Q/ZXu14+C0xTFcAAAAAQUIPAAAAAACqBiyb9oZQQl6Tgdhs79dA;
|
64
|
+
expires=Tue, 30 May 2017 06:05:59 GMT; path=/; Domain=.contentful.com
|
65
|
+
X-Iinfo:
|
66
|
+
- 7-60961151-60961178 NNNN CT(215 208 0) RT(1464611115474 91) q(0 0 4 -1) r(18
|
67
|
+
18) U5
|
68
|
+
X-Cdn:
|
69
|
+
- Incapsula
|
70
|
+
body:
|
71
|
+
encoding: UTF-8
|
72
|
+
string: |
|
73
|
+
{
|
74
|
+
"controls": [
|
75
|
+
{
|
76
|
+
"fieldId": "symbol1",
|
77
|
+
"widgetId": "singleLine"
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"fieldId": "symbol2",
|
81
|
+
"widgetId": "urlEditor"
|
82
|
+
},
|
83
|
+
{
|
84
|
+
"fieldId": "symbol3",
|
85
|
+
"widgetId": "dropdown"
|
86
|
+
},
|
87
|
+
{
|
88
|
+
"fieldId": "symbol4",
|
89
|
+
"widgetId": "radio"
|
90
|
+
},
|
91
|
+
{
|
92
|
+
"fieldId": "symbol5",
|
93
|
+
"widgetId": "slugEditor"
|
94
|
+
},
|
95
|
+
{
|
96
|
+
"fieldId": "symbol6",
|
97
|
+
"widgetId": "ooyalaEditor"
|
98
|
+
},
|
99
|
+
{
|
100
|
+
"fieldId": "symbol7",
|
101
|
+
"widgetId": "kalturaEditor"
|
102
|
+
},
|
103
|
+
{
|
104
|
+
"fieldId": "text1",
|
105
|
+
"widgetId": "singleLine"
|
106
|
+
},
|
107
|
+
{
|
108
|
+
"fieldId": "text2",
|
109
|
+
"widgetId": "multipleLine"
|
110
|
+
},
|
111
|
+
{
|
112
|
+
"fieldId": "text3",
|
113
|
+
"widgetId": "markdown"
|
114
|
+
},
|
115
|
+
{
|
116
|
+
"fieldId": "text4",
|
117
|
+
"widgetId": "dropdown"
|
118
|
+
},
|
119
|
+
{
|
120
|
+
"fieldId": "text5",
|
121
|
+
"widgetId": "radio"
|
122
|
+
},
|
123
|
+
{
|
124
|
+
"fieldId": "integer1",
|
125
|
+
"widgetId": "numberEditor"
|
126
|
+
},
|
127
|
+
{
|
128
|
+
"fieldId": "integer2",
|
129
|
+
"widgetId": "dropdown"
|
130
|
+
},
|
131
|
+
{
|
132
|
+
"fieldId": "integer3",
|
133
|
+
"widgetId": "radio"
|
134
|
+
},
|
135
|
+
{
|
136
|
+
"fieldId": "integer4",
|
137
|
+
"widgetId": "rating",
|
138
|
+
"settings": {
|
139
|
+
"stars": 5
|
140
|
+
}
|
141
|
+
},
|
142
|
+
{
|
143
|
+
"fieldId": "decimal1",
|
144
|
+
"widgetId": "numberEditor"
|
145
|
+
},
|
146
|
+
{
|
147
|
+
"fieldId": "decimal2",
|
148
|
+
"widgetId": "dropdown"
|
149
|
+
},
|
150
|
+
{
|
151
|
+
"fieldId": "decimal3",
|
152
|
+
"widgetId": "radio"
|
153
|
+
},
|
154
|
+
{
|
155
|
+
"fieldId": "decimal4",
|
156
|
+
"widgetId": "rating",
|
157
|
+
"settings": {
|
158
|
+
"stars": 5
|
159
|
+
}
|
160
|
+
},
|
161
|
+
{
|
162
|
+
"fieldId": "date1",
|
163
|
+
"widgetId": "datePicker",
|
164
|
+
"settings": {
|
165
|
+
"format": "timeZ",
|
166
|
+
"ampm": "24"
|
167
|
+
}
|
168
|
+
},
|
169
|
+
{
|
170
|
+
"fieldId": "location1",
|
171
|
+
"widgetId": "locationEditor"
|
172
|
+
},
|
173
|
+
{
|
174
|
+
"fieldId": "singleMedia1",
|
175
|
+
"widgetId": "assetLinkEditor"
|
176
|
+
},
|
177
|
+
{
|
178
|
+
"fieldId": "multiMedia1",
|
179
|
+
"widgetId": "assetLinksEditor"
|
180
|
+
},
|
181
|
+
{
|
182
|
+
"fieldId": "multiMedia2",
|
183
|
+
"widgetId": "assetGalleryEditor"
|
184
|
+
},
|
185
|
+
{
|
186
|
+
"fieldId": "boolean1",
|
187
|
+
"widgetId": "boolean",
|
188
|
+
"settings": {
|
189
|
+
"trueLabel": "Yes",
|
190
|
+
"falseLabel": "No"
|
191
|
+
}
|
192
|
+
},
|
193
|
+
{
|
194
|
+
"fieldId": "json1",
|
195
|
+
"widgetId": "objectEditor"
|
196
|
+
},
|
197
|
+
{
|
198
|
+
"fieldId": "singleReference1",
|
199
|
+
"widgetId": "entryLinkEditor"
|
200
|
+
},
|
201
|
+
{
|
202
|
+
"fieldId": "singleReference2",
|
203
|
+
"widgetId": "entryCardEditor"
|
204
|
+
},
|
205
|
+
{
|
206
|
+
"fieldId": "multiReference1",
|
207
|
+
"widgetId": "entryLinksEditor"
|
208
|
+
},
|
209
|
+
{
|
210
|
+
"fieldId": "multiReference2",
|
211
|
+
"widgetId": "entryCardsEditor"
|
212
|
+
}
|
213
|
+
],
|
214
|
+
"sys": {
|
215
|
+
"id": "default",
|
216
|
+
"type": "EditorInterface",
|
217
|
+
"version": 1,
|
218
|
+
"createdAt": "2016-04-12T16:20:35.477Z",
|
219
|
+
"createdBy": {
|
220
|
+
"sys": {
|
221
|
+
"type": "Link",
|
222
|
+
"linkType": "User",
|
223
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
224
|
+
}
|
225
|
+
},
|
226
|
+
"space": {
|
227
|
+
"sys": {
|
228
|
+
"type": "Link",
|
229
|
+
"linkType": "Space",
|
230
|
+
"id": "oe3b689om6k5"
|
231
|
+
}
|
232
|
+
},
|
233
|
+
"contentType": {
|
234
|
+
"sys": {
|
235
|
+
"type": "Link",
|
236
|
+
"linkType": "ContentType",
|
237
|
+
"id": "testInterfaces"
|
238
|
+
}
|
239
|
+
},
|
240
|
+
"updatedAt": "2016-04-12T16:20:35.477Z",
|
241
|
+
"updatedBy": {
|
242
|
+
"sys": {
|
243
|
+
"type": "Link",
|
244
|
+
"linkType": "User",
|
245
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
246
|
+
}
|
247
|
+
}
|
248
|
+
}
|
249
|
+
}
|
250
|
+
http_version:
|
251
|
+
recorded_at: Mon, 30 May 2016 12:25:14 GMT
|
252
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,348 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.contentful.com/spaces/oe3b689om6k5/content_types/smallerType/editor_interface
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- RubyContentfulManagementGem/1.0.1
|
12
|
+
Authorization:
|
13
|
+
- Bearer <ACCESS_TOKEN>
|
14
|
+
Content-Type:
|
15
|
+
- application/vnd.contentful.management.v1+json
|
16
|
+
Content-Length:
|
17
|
+
- '0'
|
18
|
+
Connection:
|
19
|
+
- close
|
20
|
+
Host:
|
21
|
+
- api.contentful.com
|
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
|
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-Space-Id:
|
38
|
+
- oe3b689om6k5
|
39
|
+
Content-Type:
|
40
|
+
- application/vnd.contentful.management.v1+json
|
41
|
+
Date:
|
42
|
+
- Mon, 30 May 2016 12:49:46 GMT
|
43
|
+
Etag:
|
44
|
+
- '"7cfe711b58b47eb919f77437833ff1ee"'
|
45
|
+
Server:
|
46
|
+
- nginx
|
47
|
+
Strict-Transport-Security:
|
48
|
+
- max-age=15768000
|
49
|
+
X-Content-Type-Options:
|
50
|
+
- nosniff
|
51
|
+
X-Contentful-Request-Id:
|
52
|
+
- content-api:6J3jQohv32uEMoUEK0U2OM
|
53
|
+
X-Powered-By:
|
54
|
+
- Express
|
55
|
+
Content-Length:
|
56
|
+
- '815'
|
57
|
+
Connection:
|
58
|
+
- Close
|
59
|
+
Set-Cookie:
|
60
|
+
- incap_ses_297_673446=Ol9bOiQkqzdbQn4eHigfBOo2TFcAAAAAgnysX8aQnP6pS/VlOl3VJw==;
|
61
|
+
path=/; Domain=.contentful.com
|
62
|
+
- nlbi_673446=3JaYETNyuBkXZjcpaoBaJgAAAACxhxdXVrOn8lQllB4mG9gd; path=/; Domain=.contentful.com
|
63
|
+
- visid_incap_673446=36FO8Od1SXq28luLOfMaQek2TFcAAAAAQUIPAAAAAACE2WtAncA0+r2uNriSIWBc;
|
64
|
+
expires=Tue, 30 May 2017 06:05:53 GMT; path=/; Domain=.contentful.com
|
65
|
+
X-Iinfo:
|
66
|
+
- 8-71290476-71290513 NNNN CT(154 292 0) RT(1464612584929 96) q(0 0 5 26) r(15
|
67
|
+
15) U5
|
68
|
+
X-Cdn:
|
69
|
+
- Incapsula
|
70
|
+
body:
|
71
|
+
encoding: UTF-8
|
72
|
+
string: |
|
73
|
+
{
|
74
|
+
"controls": [
|
75
|
+
{
|
76
|
+
"fieldId": "symbol1",
|
77
|
+
"widgetId": "singleline"
|
78
|
+
}
|
79
|
+
],
|
80
|
+
"sys": {
|
81
|
+
"id": "default",
|
82
|
+
"type": "EditorInterface",
|
83
|
+
"version": 9,
|
84
|
+
"createdAt": "2016-04-14T15:04:10.737Z",
|
85
|
+
"createdBy": {
|
86
|
+
"sys": {
|
87
|
+
"type": "Link",
|
88
|
+
"linkType": "User",
|
89
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
90
|
+
}
|
91
|
+
},
|
92
|
+
"space": {
|
93
|
+
"sys": {
|
94
|
+
"type": "Link",
|
95
|
+
"linkType": "Space",
|
96
|
+
"id": "oe3b689om6k5"
|
97
|
+
}
|
98
|
+
},
|
99
|
+
"contentType": {
|
100
|
+
"sys": {
|
101
|
+
"type": "Link",
|
102
|
+
"linkType": "ContentType",
|
103
|
+
"id": "smallerType"
|
104
|
+
}
|
105
|
+
},
|
106
|
+
"updatedAt": "2016-05-30T12:26:01.918Z",
|
107
|
+
"updatedBy": {
|
108
|
+
"sys": {
|
109
|
+
"type": "Link",
|
110
|
+
"linkType": "User",
|
111
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
115
|
+
}
|
116
|
+
http_version:
|
117
|
+
recorded_at: Mon, 30 May 2016 12:49:43 GMT
|
118
|
+
- request:
|
119
|
+
method: put
|
120
|
+
uri: https://api.contentful.com/spaces/oe3b689om6k5/content_types/smallerType/editor_interface
|
121
|
+
body:
|
122
|
+
encoding: UTF-8
|
123
|
+
string: '{"controls":[{"fieldId":"symbol1","widgetId":"urlEditor"}]}'
|
124
|
+
headers:
|
125
|
+
User-Agent:
|
126
|
+
- RubyContentfulManagementGem/1.0.1
|
127
|
+
Authorization:
|
128
|
+
- Bearer <ACCESS_TOKEN>
|
129
|
+
Content-Type:
|
130
|
+
- application/vnd.contentful.management.v1+json
|
131
|
+
X-Contentful-Version:
|
132
|
+
- '9'
|
133
|
+
Connection:
|
134
|
+
- close
|
135
|
+
Host:
|
136
|
+
- api.contentful.com
|
137
|
+
response:
|
138
|
+
status:
|
139
|
+
code: 200
|
140
|
+
message: OK
|
141
|
+
headers:
|
142
|
+
Access-Control-Allow-Headers:
|
143
|
+
- 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
|
144
|
+
Access-Control-Allow-Methods:
|
145
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
146
|
+
Access-Control-Allow-Origin:
|
147
|
+
- "*"
|
148
|
+
Access-Control-Expose-Headers:
|
149
|
+
- Etag
|
150
|
+
Access-Control-Max-Age:
|
151
|
+
- '1728000'
|
152
|
+
Cf-Space-Id:
|
153
|
+
- oe3b689om6k5
|
154
|
+
Content-Type:
|
155
|
+
- application/vnd.contentful.management.v1+json
|
156
|
+
Date:
|
157
|
+
- Mon, 30 May 2016 12:49:49 GMT
|
158
|
+
Etag:
|
159
|
+
- '"64724b994c4cb71fd0c29a67ea028a17"'
|
160
|
+
Server:
|
161
|
+
- nginx
|
162
|
+
Strict-Transport-Security:
|
163
|
+
- max-age=15768000
|
164
|
+
X-Content-Type-Options:
|
165
|
+
- nosniff
|
166
|
+
X-Contentful-Request-Id:
|
167
|
+
- content-api:6nWsLKINqMeASC8GkguYUK
|
168
|
+
X-Powered-By:
|
169
|
+
- Express
|
170
|
+
Content-Length:
|
171
|
+
- '815'
|
172
|
+
Connection:
|
173
|
+
- Close
|
174
|
+
Set-Cookie:
|
175
|
+
- incap_ses_297_673446=lp85CI79YlpbQn4eHigfBO02TFcAAAAAf+rbf/GYnWNDeP/32ewKSQ==;
|
176
|
+
path=/; Domain=.contentful.com
|
177
|
+
- nlbi_673446=ebTXDoeCZjGiMYyIaoBaJgAAAABxNghPAtQt9VwVyXs24chM; path=/; Domain=.contentful.com
|
178
|
+
- visid_incap_673446=36FO8Od1SXq28luLOfMaQek2TFcAAAAAQUIPAAAAAACE2WtAncA0+r2uNriSIWBc;
|
179
|
+
expires=Tue, 30 May 2017 06:05:59 GMT; path=/; Domain=.contentful.com
|
180
|
+
X-Iinfo:
|
181
|
+
- 7-61364247-61364290 NNNN CT(234 468 0) RT(1464612586665 95) q(0 0 7 0) r(25
|
182
|
+
25) U5
|
183
|
+
X-Cdn:
|
184
|
+
- Incapsula
|
185
|
+
body:
|
186
|
+
encoding: UTF-8
|
187
|
+
string: |
|
188
|
+
{
|
189
|
+
"controls": [
|
190
|
+
{
|
191
|
+
"fieldId": "symbol1",
|
192
|
+
"widgetId": "urlEditor"
|
193
|
+
}
|
194
|
+
],
|
195
|
+
"sys": {
|
196
|
+
"id": "default",
|
197
|
+
"type": "EditorInterface",
|
198
|
+
"version": 10,
|
199
|
+
"createdAt": "2016-04-14T15:04:10.737Z",
|
200
|
+
"createdBy": {
|
201
|
+
"sys": {
|
202
|
+
"type": "Link",
|
203
|
+
"linkType": "User",
|
204
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
205
|
+
}
|
206
|
+
},
|
207
|
+
"space": {
|
208
|
+
"sys": {
|
209
|
+
"type": "Link",
|
210
|
+
"linkType": "Space",
|
211
|
+
"id": "oe3b689om6k5"
|
212
|
+
}
|
213
|
+
},
|
214
|
+
"contentType": {
|
215
|
+
"sys": {
|
216
|
+
"type": "Link",
|
217
|
+
"linkType": "ContentType",
|
218
|
+
"id": "smallerType"
|
219
|
+
}
|
220
|
+
},
|
221
|
+
"updatedAt": "2016-05-30T12:49:49.127Z",
|
222
|
+
"updatedBy": {
|
223
|
+
"sys": {
|
224
|
+
"type": "Link",
|
225
|
+
"linkType": "User",
|
226
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
227
|
+
}
|
228
|
+
}
|
229
|
+
}
|
230
|
+
}
|
231
|
+
http_version:
|
232
|
+
recorded_at: Mon, 30 May 2016 12:49:46 GMT
|
233
|
+
- request:
|
234
|
+
method: get
|
235
|
+
uri: https://api.contentful.com/spaces/oe3b689om6k5/content_types/smallerType/editor_interface
|
236
|
+
body:
|
237
|
+
encoding: US-ASCII
|
238
|
+
string: ''
|
239
|
+
headers:
|
240
|
+
User-Agent:
|
241
|
+
- RubyContentfulManagementGem/1.0.1
|
242
|
+
Authorization:
|
243
|
+
- Bearer <ACCESS_TOKEN>
|
244
|
+
Content-Type:
|
245
|
+
- application/vnd.contentful.management.v1+json
|
246
|
+
Content-Length:
|
247
|
+
- '0'
|
248
|
+
Connection:
|
249
|
+
- close
|
250
|
+
Host:
|
251
|
+
- api.contentful.com
|
252
|
+
response:
|
253
|
+
status:
|
254
|
+
code: 200
|
255
|
+
message: OK
|
256
|
+
headers:
|
257
|
+
Access-Control-Allow-Headers:
|
258
|
+
- 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
|
259
|
+
Access-Control-Allow-Methods:
|
260
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
261
|
+
Access-Control-Allow-Origin:
|
262
|
+
- "*"
|
263
|
+
Access-Control-Expose-Headers:
|
264
|
+
- Etag
|
265
|
+
Access-Control-Max-Age:
|
266
|
+
- '1728000'
|
267
|
+
Cf-Space-Id:
|
268
|
+
- oe3b689om6k5
|
269
|
+
Content-Type:
|
270
|
+
- application/vnd.contentful.management.v1+json
|
271
|
+
Date:
|
272
|
+
- Mon, 30 May 2016 12:49:50 GMT
|
273
|
+
Etag:
|
274
|
+
- '"64724b994c4cb71fd0c29a67ea028a17"'
|
275
|
+
Server:
|
276
|
+
- nginx
|
277
|
+
Strict-Transport-Security:
|
278
|
+
- max-age=15768000
|
279
|
+
X-Content-Type-Options:
|
280
|
+
- nosniff
|
281
|
+
X-Contentful-Request-Id:
|
282
|
+
- content-api:4fNhVDKfEkUQiqeWggqwKQ
|
283
|
+
X-Powered-By:
|
284
|
+
- Express
|
285
|
+
Content-Length:
|
286
|
+
- '815'
|
287
|
+
Connection:
|
288
|
+
- Close
|
289
|
+
Set-Cookie:
|
290
|
+
- incap_ses_297_673446=VnO9B0cftWFbQn4eHigfBO42TFcAAAAAMLqV3MRKtn3lBLOleXy0dQ==;
|
291
|
+
path=/; Domain=.contentful.com
|
292
|
+
- nlbi_673446=XI1Ndm75yAsmcl62aoBaJgAAAABhNqEwkIMtNxyWXSDJD7D4; path=/; Domain=.contentful.com
|
293
|
+
- visid_incap_673446=36FO8Od1SXq28luLOfMaQek2TFcAAAAAQUIPAAAAAACE2WtAncA0+r2uNriSIWBc;
|
294
|
+
expires=Tue, 30 May 2017 06:05:53 GMT; path=/; Domain=.contentful.com
|
295
|
+
X-Iinfo:
|
296
|
+
- 8-71291871-71291890 NNNN CT(175 177 0) RT(1464612589330 92) q(0 0 3 5) r(6
|
297
|
+
6) U5
|
298
|
+
X-Cdn:
|
299
|
+
- Incapsula
|
300
|
+
body:
|
301
|
+
encoding: UTF-8
|
302
|
+
string: |
|
303
|
+
{
|
304
|
+
"controls": [
|
305
|
+
{
|
306
|
+
"fieldId": "symbol1",
|
307
|
+
"widgetId": "urlEditor"
|
308
|
+
}
|
309
|
+
],
|
310
|
+
"sys": {
|
311
|
+
"id": "default",
|
312
|
+
"type": "EditorInterface",
|
313
|
+
"version": 10,
|
314
|
+
"createdAt": "2016-04-14T15:04:10.737Z",
|
315
|
+
"createdBy": {
|
316
|
+
"sys": {
|
317
|
+
"type": "Link",
|
318
|
+
"linkType": "User",
|
319
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
320
|
+
}
|
321
|
+
},
|
322
|
+
"space": {
|
323
|
+
"sys": {
|
324
|
+
"type": "Link",
|
325
|
+
"linkType": "Space",
|
326
|
+
"id": "oe3b689om6k5"
|
327
|
+
}
|
328
|
+
},
|
329
|
+
"contentType": {
|
330
|
+
"sys": {
|
331
|
+
"type": "Link",
|
332
|
+
"linkType": "ContentType",
|
333
|
+
"id": "smallerType"
|
334
|
+
}
|
335
|
+
},
|
336
|
+
"updatedAt": "2016-05-30T12:49:49.127Z",
|
337
|
+
"updatedBy": {
|
338
|
+
"sys": {
|
339
|
+
"type": "Link",
|
340
|
+
"linkType": "User",
|
341
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
342
|
+
}
|
343
|
+
}
|
344
|
+
}
|
345
|
+
}
|
346
|
+
http_version:
|
347
|
+
recorded_at: Mon, 30 May 2016 12:49:47 GMT
|
348
|
+
recorded_with: VCR 2.9.3
|