contentful-management 0.7.3 → 0.8.0
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.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/CHANGELOG.md +8 -0
- data/Gemfile +2 -0
- data/Guardfile +70 -0
- data/README.md +21 -2
- data/lib/contentful/management/client.rb +13 -9
- data/lib/contentful/management/content_type.rb +9 -3
- data/lib/contentful/management/dynamic_entry.rb +2 -2
- data/lib/contentful/management/entry.rb +19 -0
- data/lib/contentful/management/resource/field_aware.rb +45 -0
- data/lib/contentful/management/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/content_type/issue_79.yml +378 -0
- data/spec/fixtures/vcr_cassettes/entry/issue_61_1.yml +617 -0
- data/spec/fixtures/vcr_cassettes/entry/issue_61_2.yml +613 -0
- data/spec/fixtures/vcr_cassettes/entry/issue_61_3.yml +606 -0
- data/spec/fixtures/vcr_cassettes/entry/issue_61_4.yml +598 -0
- data/spec/fixtures/vcr_cassettes/entry/issue_61_5.yml +592 -0
- data/spec/fixtures/vcr_cassettes/entry/issue_61_6.yml +589 -0
- data/spec/fixtures/vcr_cassettes/entry/issue_61_7.yml +711 -0
- data/spec/fixtures/vcr_cassettes/entry/issue_61_8.yml +711 -0
- data/spec/fixtures/vcr_cassettes/entry/issue_61_spaces.yml +349 -0
- data/spec/fixtures/vcr_cassettes/entry/issue_73.yml +387 -0
- data/spec/lib/contentful/management/content_type_spec.rb +24 -0
- data/spec/lib/contentful/management/entry_spec.rb +223 -0
- metadata +27 -3
@@ -0,0 +1,349 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.contentful.com/spaces/u2viwgfeal0o
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- RubyContentfulManagementGem/0.7.3
|
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
|
+
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
|
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
|
+
Content-Type:
|
42
|
+
- application/vnd.contentful.management.v1+json
|
43
|
+
Date:
|
44
|
+
- Tue, 19 Jan 2016 14:18:07 GMT
|
45
|
+
Etag:
|
46
|
+
- '"49419e44c9c95cc7f3fa23aa372f164f"'
|
47
|
+
Server:
|
48
|
+
- nginx
|
49
|
+
Status:
|
50
|
+
- 200 OK
|
51
|
+
Strict-Transport-Security:
|
52
|
+
- max-age=15768000
|
53
|
+
X-Content-Type-Options:
|
54
|
+
- nosniff
|
55
|
+
X-Contentful-Request-Id:
|
56
|
+
- b89-1515987497
|
57
|
+
Content-Length:
|
58
|
+
- '462'
|
59
|
+
Connection:
|
60
|
+
- Close
|
61
|
+
body:
|
62
|
+
encoding: UTF-8
|
63
|
+
string: |+
|
64
|
+
{
|
65
|
+
"sys":{
|
66
|
+
"type":"Space",
|
67
|
+
"id":"u2viwgfeal0o",
|
68
|
+
"version":1,
|
69
|
+
"createdBy":{
|
70
|
+
"sys":{
|
71
|
+
"type":"Link",
|
72
|
+
"linkType":"User",
|
73
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
74
|
+
}
|
75
|
+
},
|
76
|
+
"createdAt":"2015-12-07T13:29:36Z",
|
77
|
+
"updatedBy":{
|
78
|
+
"sys":{
|
79
|
+
"type":"Link",
|
80
|
+
"linkType":"User",
|
81
|
+
"id":"4SejVrWT96dvL9IV4Nb7sQ"
|
82
|
+
}
|
83
|
+
},
|
84
|
+
"updatedAt":"2015-12-07T13:29:36Z"
|
85
|
+
},
|
86
|
+
"name":"management.rb - #73"
|
87
|
+
}
|
88
|
+
|
89
|
+
http_version:
|
90
|
+
recorded_at: Tue, 19 Jan 2016 14:18:03 GMT
|
91
|
+
- request:
|
92
|
+
method: get
|
93
|
+
uri: https://api.contentful.com/spaces/u2viwgfeal0o/content_types
|
94
|
+
body:
|
95
|
+
encoding: US-ASCII
|
96
|
+
string: ''
|
97
|
+
headers:
|
98
|
+
User-Agent:
|
99
|
+
- RubyContentfulManagementGem/0.7.3
|
100
|
+
Authorization:
|
101
|
+
- Bearer <ACCESS_TOKEN>
|
102
|
+
Content-Type:
|
103
|
+
- application/vnd.contentful.management.v1+json
|
104
|
+
Content-Length:
|
105
|
+
- '0'
|
106
|
+
Connection:
|
107
|
+
- close
|
108
|
+
Host:
|
109
|
+
- api.contentful.com
|
110
|
+
response:
|
111
|
+
status:
|
112
|
+
code: 200
|
113
|
+
message: OK
|
114
|
+
headers:
|
115
|
+
Access-Control-Allow-Headers:
|
116
|
+
- Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation
|
117
|
+
Access-Control-Allow-Methods:
|
118
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
119
|
+
Access-Control-Allow-Origin:
|
120
|
+
- "*"
|
121
|
+
Access-Control-Expose-Headers:
|
122
|
+
- Etag
|
123
|
+
Access-Control-Max-Age:
|
124
|
+
- '1728000'
|
125
|
+
Cf-Space-Id:
|
126
|
+
- u2viwgfeal0o
|
127
|
+
Content-Type:
|
128
|
+
- application/vnd.contentful.management.v1+json
|
129
|
+
Date:
|
130
|
+
- Tue, 19 Jan 2016 14:18:08 GMT
|
131
|
+
Etag:
|
132
|
+
- '"c95db41ce3f41bfc50ff08c04e13a4e2"'
|
133
|
+
Server:
|
134
|
+
- nginx
|
135
|
+
Strict-Transport-Security:
|
136
|
+
- max-age=15768000
|
137
|
+
X-Content-Type-Options:
|
138
|
+
- nosniff
|
139
|
+
X-Contentful-Request-Id:
|
140
|
+
- content-api:4Er60Lpo8g8IAI06UEe4Ag
|
141
|
+
X-Powered-By:
|
142
|
+
- Express
|
143
|
+
Content-Length:
|
144
|
+
- '1504'
|
145
|
+
Connection:
|
146
|
+
- Close
|
147
|
+
body:
|
148
|
+
encoding: UTF-8
|
149
|
+
string: |
|
150
|
+
{
|
151
|
+
"sys": {
|
152
|
+
"type": "Array"
|
153
|
+
},
|
154
|
+
"total": 1,
|
155
|
+
"skip": 0,
|
156
|
+
"limit": 100,
|
157
|
+
"items": [
|
158
|
+
{
|
159
|
+
"name": "SomeType",
|
160
|
+
"fields": [
|
161
|
+
{
|
162
|
+
"name": "name",
|
163
|
+
"id": "name",
|
164
|
+
"type": "Symbol"
|
165
|
+
},
|
166
|
+
{
|
167
|
+
"name": "value",
|
168
|
+
"id": "value",
|
169
|
+
"type": "Symbol",
|
170
|
+
"localized": true,
|
171
|
+
"validations": []
|
172
|
+
}
|
173
|
+
],
|
174
|
+
"description": "",
|
175
|
+
"displayField": "name",
|
176
|
+
"sys": {
|
177
|
+
"id": "someType",
|
178
|
+
"type": "ContentType",
|
179
|
+
"createdAt": "2015-12-07T13:32:02.610Z",
|
180
|
+
"createdBy": {
|
181
|
+
"sys": {
|
182
|
+
"type": "Link",
|
183
|
+
"linkType": "User",
|
184
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
185
|
+
}
|
186
|
+
},
|
187
|
+
"space": {
|
188
|
+
"sys": {
|
189
|
+
"type": "Link",
|
190
|
+
"linkType": "Space",
|
191
|
+
"id": "u2viwgfeal0o"
|
192
|
+
}
|
193
|
+
},
|
194
|
+
"firstPublishedAt": "2015-12-07T13:32:03.012Z",
|
195
|
+
"publishedCounter": 2,
|
196
|
+
"publishedAt": "2015-12-07T13:36:35.994Z",
|
197
|
+
"publishedBy": {
|
198
|
+
"sys": {
|
199
|
+
"type": "Link",
|
200
|
+
"linkType": "User",
|
201
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
202
|
+
}
|
203
|
+
},
|
204
|
+
"publishedVersion": 4,
|
205
|
+
"version": 5,
|
206
|
+
"updatedAt": "2015-12-07T13:36:36.026Z",
|
207
|
+
"updatedBy": {
|
208
|
+
"sys": {
|
209
|
+
"type": "Link",
|
210
|
+
"linkType": "User",
|
211
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
212
|
+
}
|
213
|
+
}
|
214
|
+
}
|
215
|
+
}
|
216
|
+
]
|
217
|
+
}
|
218
|
+
http_version:
|
219
|
+
recorded_at: Tue, 19 Jan 2016 14:18:04 GMT
|
220
|
+
- request:
|
221
|
+
method: get
|
222
|
+
uri: https://api.contentful.com/spaces/u2viwgfeal0o/content_types
|
223
|
+
body:
|
224
|
+
encoding: US-ASCII
|
225
|
+
string: ''
|
226
|
+
headers:
|
227
|
+
User-Agent:
|
228
|
+
- RubyContentfulManagementGem/0.7.3
|
229
|
+
Authorization:
|
230
|
+
- Bearer <ACCESS_TOKEN>
|
231
|
+
Content-Type:
|
232
|
+
- application/vnd.contentful.management.v1+json
|
233
|
+
Content-Length:
|
234
|
+
- '0'
|
235
|
+
Connection:
|
236
|
+
- close
|
237
|
+
Host:
|
238
|
+
- api.contentful.com
|
239
|
+
response:
|
240
|
+
status:
|
241
|
+
code: 200
|
242
|
+
message: OK
|
243
|
+
headers:
|
244
|
+
Access-Control-Allow-Headers:
|
245
|
+
- Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation
|
246
|
+
Access-Control-Allow-Methods:
|
247
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
248
|
+
Access-Control-Allow-Origin:
|
249
|
+
- "*"
|
250
|
+
Access-Control-Expose-Headers:
|
251
|
+
- Etag
|
252
|
+
Access-Control-Max-Age:
|
253
|
+
- '1728000'
|
254
|
+
Cf-Space-Id:
|
255
|
+
- u2viwgfeal0o
|
256
|
+
Content-Type:
|
257
|
+
- application/vnd.contentful.management.v1+json
|
258
|
+
Date:
|
259
|
+
- Tue, 19 Jan 2016 14:18:09 GMT
|
260
|
+
Etag:
|
261
|
+
- '"c95db41ce3f41bfc50ff08c04e13a4e2"'
|
262
|
+
Server:
|
263
|
+
- nginx
|
264
|
+
Strict-Transport-Security:
|
265
|
+
- max-age=15768000
|
266
|
+
X-Content-Type-Options:
|
267
|
+
- nosniff
|
268
|
+
X-Contentful-Request-Id:
|
269
|
+
- content-api:1SXnQwLCBCS8OC2EmCsQuS
|
270
|
+
X-Powered-By:
|
271
|
+
- Express
|
272
|
+
Content-Length:
|
273
|
+
- '1504'
|
274
|
+
Connection:
|
275
|
+
- Close
|
276
|
+
body:
|
277
|
+
encoding: UTF-8
|
278
|
+
string: |
|
279
|
+
{
|
280
|
+
"sys": {
|
281
|
+
"type": "Array"
|
282
|
+
},
|
283
|
+
"total": 1,
|
284
|
+
"skip": 0,
|
285
|
+
"limit": 100,
|
286
|
+
"items": [
|
287
|
+
{
|
288
|
+
"name": "SomeType",
|
289
|
+
"fields": [
|
290
|
+
{
|
291
|
+
"name": "name",
|
292
|
+
"id": "name",
|
293
|
+
"type": "Symbol"
|
294
|
+
},
|
295
|
+
{
|
296
|
+
"name": "value",
|
297
|
+
"id": "value",
|
298
|
+
"type": "Symbol",
|
299
|
+
"localized": true,
|
300
|
+
"validations": []
|
301
|
+
}
|
302
|
+
],
|
303
|
+
"description": "",
|
304
|
+
"displayField": "name",
|
305
|
+
"sys": {
|
306
|
+
"id": "someType",
|
307
|
+
"type": "ContentType",
|
308
|
+
"createdAt": "2015-12-07T13:32:02.610Z",
|
309
|
+
"createdBy": {
|
310
|
+
"sys": {
|
311
|
+
"type": "Link",
|
312
|
+
"linkType": "User",
|
313
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
314
|
+
}
|
315
|
+
},
|
316
|
+
"space": {
|
317
|
+
"sys": {
|
318
|
+
"type": "Link",
|
319
|
+
"linkType": "Space",
|
320
|
+
"id": "u2viwgfeal0o"
|
321
|
+
}
|
322
|
+
},
|
323
|
+
"firstPublishedAt": "2015-12-07T13:32:03.012Z",
|
324
|
+
"publishedCounter": 2,
|
325
|
+
"publishedAt": "2015-12-07T13:36:35.994Z",
|
326
|
+
"publishedBy": {
|
327
|
+
"sys": {
|
328
|
+
"type": "Link",
|
329
|
+
"linkType": "User",
|
330
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
331
|
+
}
|
332
|
+
},
|
333
|
+
"publishedVersion": 4,
|
334
|
+
"version": 5,
|
335
|
+
"updatedAt": "2015-12-07T13:36:36.026Z",
|
336
|
+
"updatedBy": {
|
337
|
+
"sys": {
|
338
|
+
"type": "Link",
|
339
|
+
"linkType": "User",
|
340
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
341
|
+
}
|
342
|
+
}
|
343
|
+
}
|
344
|
+
}
|
345
|
+
]
|
346
|
+
}
|
347
|
+
http_version:
|
348
|
+
recorded_at: Tue, 19 Jan 2016 14:18:05 GMT
|
349
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,387 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.contentful.com/spaces/u2viwgfeal0o/content_types/someType
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- RubyContentfulManagementGem/0.7.3
|
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
|
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
|
+
- u2viwgfeal0o
|
39
|
+
Content-Type:
|
40
|
+
- application/vnd.contentful.management.v1+json
|
41
|
+
Date:
|
42
|
+
- Thu, 10 Dec 2015 15:31:36 GMT
|
43
|
+
Etag:
|
44
|
+
- '"720d932d152cc930127c0ca782759540"'
|
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:3Kz2aYa5XqacYua04emYg8
|
53
|
+
X-Powered-By:
|
54
|
+
- Express
|
55
|
+
Content-Length:
|
56
|
+
- '1172'
|
57
|
+
Connection:
|
58
|
+
- Close
|
59
|
+
body:
|
60
|
+
encoding: UTF-8
|
61
|
+
string: |
|
62
|
+
{
|
63
|
+
"name": "SomeType",
|
64
|
+
"fields": [
|
65
|
+
{
|
66
|
+
"name": "name",
|
67
|
+
"id": "name",
|
68
|
+
"type": "Symbol"
|
69
|
+
},
|
70
|
+
{
|
71
|
+
"name": "value",
|
72
|
+
"id": "value",
|
73
|
+
"type": "Symbol",
|
74
|
+
"localized": true,
|
75
|
+
"validations": []
|
76
|
+
}
|
77
|
+
],
|
78
|
+
"description": "",
|
79
|
+
"displayField": "name",
|
80
|
+
"sys": {
|
81
|
+
"id": "someType",
|
82
|
+
"type": "ContentType",
|
83
|
+
"createdAt": "2015-12-07T13:32:02.610Z",
|
84
|
+
"createdBy": {
|
85
|
+
"sys": {
|
86
|
+
"type": "Link",
|
87
|
+
"linkType": "User",
|
88
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
89
|
+
}
|
90
|
+
},
|
91
|
+
"space": {
|
92
|
+
"sys": {
|
93
|
+
"type": "Link",
|
94
|
+
"linkType": "Space",
|
95
|
+
"id": "u2viwgfeal0o"
|
96
|
+
}
|
97
|
+
},
|
98
|
+
"firstPublishedAt": "2015-12-07T13:32:03.012Z",
|
99
|
+
"publishedCounter": 2,
|
100
|
+
"publishedAt": "2015-12-07T13:36:35.994Z",
|
101
|
+
"publishedBy": {
|
102
|
+
"sys": {
|
103
|
+
"type": "Link",
|
104
|
+
"linkType": "User",
|
105
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
106
|
+
}
|
107
|
+
},
|
108
|
+
"publishedVersion": 4,
|
109
|
+
"version": 5,
|
110
|
+
"updatedAt": "2015-12-07T13:36:36.026Z",
|
111
|
+
"updatedBy": {
|
112
|
+
"sys": {
|
113
|
+
"type": "Link",
|
114
|
+
"linkType": "User",
|
115
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
116
|
+
}
|
117
|
+
}
|
118
|
+
}
|
119
|
+
}
|
120
|
+
http_version:
|
121
|
+
recorded_at: Thu, 10 Dec 2015 15:31:36 GMT
|
122
|
+
- request:
|
123
|
+
method: put
|
124
|
+
uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/hello-world
|
125
|
+
body:
|
126
|
+
encoding: UTF-8
|
127
|
+
string: '{"fields":{}}'
|
128
|
+
headers:
|
129
|
+
User-Agent:
|
130
|
+
- RubyContentfulManagementGem/0.7.3
|
131
|
+
Authorization:
|
132
|
+
- Bearer <ACCESS_TOKEN>
|
133
|
+
Content-Type:
|
134
|
+
- application/vnd.contentful.management.v1+json
|
135
|
+
X-Contentful-Content-Type:
|
136
|
+
- someType
|
137
|
+
Connection:
|
138
|
+
- close
|
139
|
+
Host:
|
140
|
+
- api.contentful.com
|
141
|
+
response:
|
142
|
+
status:
|
143
|
+
code: 201
|
144
|
+
message: Created
|
145
|
+
headers:
|
146
|
+
Access-Control-Allow-Headers:
|
147
|
+
- 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
|
148
|
+
Access-Control-Allow-Methods:
|
149
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
150
|
+
Access-Control-Allow-Origin:
|
151
|
+
- "*"
|
152
|
+
Access-Control-Expose-Headers:
|
153
|
+
- Etag
|
154
|
+
Access-Control-Max-Age:
|
155
|
+
- '1728000'
|
156
|
+
Cf-Space-Id:
|
157
|
+
- u2viwgfeal0o
|
158
|
+
Content-Type:
|
159
|
+
- application/vnd.contentful.management.v1+json
|
160
|
+
Date:
|
161
|
+
- Thu, 10 Dec 2015 15:31:38 GMT
|
162
|
+
Etag:
|
163
|
+
- '"4bedab11f9f9527f5d2151d53aac8cd9"'
|
164
|
+
Server:
|
165
|
+
- nginx
|
166
|
+
Strict-Transport-Security:
|
167
|
+
- max-age=15768000
|
168
|
+
X-Content-Type-Options:
|
169
|
+
- nosniff
|
170
|
+
X-Contentful-Request-Id:
|
171
|
+
- content-api:MNr1XnCQEuc82eUcISO0Q
|
172
|
+
X-Powered-By:
|
173
|
+
- Express
|
174
|
+
Content-Length:
|
175
|
+
- '730'
|
176
|
+
Connection:
|
177
|
+
- Close
|
178
|
+
body:
|
179
|
+
encoding: UTF-8
|
180
|
+
string: |
|
181
|
+
{
|
182
|
+
"fields": {},
|
183
|
+
"sys": {
|
184
|
+
"id": "hello-world",
|
185
|
+
"type": "Entry",
|
186
|
+
"version": 1,
|
187
|
+
"createdAt": "2015-12-10T15:31:38.058Z",
|
188
|
+
"createdBy": {
|
189
|
+
"sys": {
|
190
|
+
"type": "Link",
|
191
|
+
"linkType": "User",
|
192
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
193
|
+
}
|
194
|
+
},
|
195
|
+
"space": {
|
196
|
+
"sys": {
|
197
|
+
"type": "Link",
|
198
|
+
"linkType": "Space",
|
199
|
+
"id": "u2viwgfeal0o"
|
200
|
+
}
|
201
|
+
},
|
202
|
+
"contentType": {
|
203
|
+
"sys": {
|
204
|
+
"type": "Link",
|
205
|
+
"linkType": "ContentType",
|
206
|
+
"id": "someType"
|
207
|
+
}
|
208
|
+
},
|
209
|
+
"updatedAt": "2015-12-10T15:31:38.058Z",
|
210
|
+
"updatedBy": {
|
211
|
+
"sys": {
|
212
|
+
"type": "Link",
|
213
|
+
"linkType": "User",
|
214
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
215
|
+
}
|
216
|
+
}
|
217
|
+
}
|
218
|
+
}
|
219
|
+
http_version:
|
220
|
+
recorded_at: Thu, 10 Dec 2015 15:31:37 GMT
|
221
|
+
- request:
|
222
|
+
method: put
|
223
|
+
uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/hello-world
|
224
|
+
body:
|
225
|
+
encoding: UTF-8
|
226
|
+
string: '{"fields":{"name":{"en-GB":"Hello World!","es-ES":null},"value":{"en-GB":"hello
|
227
|
+
world","es-ES":"hola mundo"}}}'
|
228
|
+
headers:
|
229
|
+
User-Agent:
|
230
|
+
- RubyContentfulManagementGem/0.7.3
|
231
|
+
Authorization:
|
232
|
+
- Bearer <ACCESS_TOKEN>
|
233
|
+
Content-Type:
|
234
|
+
- application/vnd.contentful.management.v1+json
|
235
|
+
X-Contentful-Version:
|
236
|
+
- '1'
|
237
|
+
Connection:
|
238
|
+
- close
|
239
|
+
Host:
|
240
|
+
- api.contentful.com
|
241
|
+
response:
|
242
|
+
status:
|
243
|
+
code: 200
|
244
|
+
message: OK
|
245
|
+
headers:
|
246
|
+
Access-Control-Allow-Headers:
|
247
|
+
- 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
|
248
|
+
Access-Control-Allow-Methods:
|
249
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
250
|
+
Access-Control-Allow-Origin:
|
251
|
+
- "*"
|
252
|
+
Access-Control-Expose-Headers:
|
253
|
+
- Etag
|
254
|
+
Access-Control-Max-Age:
|
255
|
+
- '1728000'
|
256
|
+
Cf-Space-Id:
|
257
|
+
- u2viwgfeal0o
|
258
|
+
Content-Type:
|
259
|
+
- application/vnd.contentful.management.v1+json
|
260
|
+
Date:
|
261
|
+
- Thu, 10 Dec 2015 15:31:39 GMT
|
262
|
+
Etag:
|
263
|
+
- '"71542e0ef23147bf1d06a485810aaeef"'
|
264
|
+
Server:
|
265
|
+
- nginx
|
266
|
+
Strict-Transport-Security:
|
267
|
+
- max-age=15768000
|
268
|
+
X-Content-Type-Options:
|
269
|
+
- nosniff
|
270
|
+
X-Contentful-Request-Id:
|
271
|
+
- content-api:3B8mESoIms4S8yeqiU4sOi
|
272
|
+
X-Powered-By:
|
273
|
+
- Express
|
274
|
+
Content-Length:
|
275
|
+
- '884'
|
276
|
+
Connection:
|
277
|
+
- Close
|
278
|
+
body:
|
279
|
+
encoding: UTF-8
|
280
|
+
string: |
|
281
|
+
{
|
282
|
+
"fields": {
|
283
|
+
"name": {
|
284
|
+
"en-GB": "Hello World!",
|
285
|
+
"es-ES": null
|
286
|
+
},
|
287
|
+
"value": {
|
288
|
+
"en-GB": "hello world",
|
289
|
+
"es-ES": "hola mundo"
|
290
|
+
}
|
291
|
+
},
|
292
|
+
"sys": {
|
293
|
+
"id": "hello-world",
|
294
|
+
"type": "Entry",
|
295
|
+
"createdAt": "2015-12-10T15:31:38.058Z",
|
296
|
+
"createdBy": {
|
297
|
+
"sys": {
|
298
|
+
"type": "Link",
|
299
|
+
"linkType": "User",
|
300
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
301
|
+
}
|
302
|
+
},
|
303
|
+
"space": {
|
304
|
+
"sys": {
|
305
|
+
"type": "Link",
|
306
|
+
"linkType": "Space",
|
307
|
+
"id": "u2viwgfeal0o"
|
308
|
+
}
|
309
|
+
},
|
310
|
+
"contentType": {
|
311
|
+
"sys": {
|
312
|
+
"type": "Link",
|
313
|
+
"linkType": "ContentType",
|
314
|
+
"id": "someType"
|
315
|
+
}
|
316
|
+
},
|
317
|
+
"version": 2,
|
318
|
+
"updatedAt": "2015-12-10T15:31:39.075Z",
|
319
|
+
"updatedBy": {
|
320
|
+
"sys": {
|
321
|
+
"type": "Link",
|
322
|
+
"linkType": "User",
|
323
|
+
"id": "4SejVrWT96dvL9IV4Nb7sQ"
|
324
|
+
}
|
325
|
+
}
|
326
|
+
}
|
327
|
+
}
|
328
|
+
http_version:
|
329
|
+
recorded_at: Thu, 10 Dec 2015 15:31:38 GMT
|
330
|
+
- request:
|
331
|
+
method: delete
|
332
|
+
uri: https://api.contentful.com/spaces/u2viwgfeal0o/entries/hello-world
|
333
|
+
body:
|
334
|
+
encoding: US-ASCII
|
335
|
+
string: ''
|
336
|
+
headers:
|
337
|
+
User-Agent:
|
338
|
+
- RubyContentfulManagementGem/0.7.3
|
339
|
+
Authorization:
|
340
|
+
- Bearer <ACCESS_TOKEN>
|
341
|
+
Content-Type:
|
342
|
+
- application/vnd.contentful.management.v1+json
|
343
|
+
Content-Length:
|
344
|
+
- '0'
|
345
|
+
Connection:
|
346
|
+
- close
|
347
|
+
Host:
|
348
|
+
- api.contentful.com
|
349
|
+
response:
|
350
|
+
status:
|
351
|
+
code: 204
|
352
|
+
message: No Content
|
353
|
+
headers:
|
354
|
+
Access-Control-Allow-Headers:
|
355
|
+
- 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
|
356
|
+
Access-Control-Allow-Methods:
|
357
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
358
|
+
Access-Control-Allow-Origin:
|
359
|
+
- "*"
|
360
|
+
Access-Control-Expose-Headers:
|
361
|
+
- Etag
|
362
|
+
Access-Control-Max-Age:
|
363
|
+
- '1728000'
|
364
|
+
Cf-Space-Id:
|
365
|
+
- u2viwgfeal0o
|
366
|
+
Content-Type:
|
367
|
+
- application/vnd.contentful.management.v1+json
|
368
|
+
Date:
|
369
|
+
- Thu, 10 Dec 2015 15:31:39 GMT
|
370
|
+
Server:
|
371
|
+
- nginx
|
372
|
+
Strict-Transport-Security:
|
373
|
+
- max-age=15768000
|
374
|
+
X-Content-Type-Options:
|
375
|
+
- nosniff
|
376
|
+
X-Contentful-Request-Id:
|
377
|
+
- content-api:6VBnwovTWgWQWIq2MeKqUe
|
378
|
+
X-Powered-By:
|
379
|
+
- Express
|
380
|
+
Connection:
|
381
|
+
- Close
|
382
|
+
body:
|
383
|
+
encoding: UTF-8
|
384
|
+
string: ''
|
385
|
+
http_version:
|
386
|
+
recorded_at: Thu, 10 Dec 2015 15:31:39 GMT
|
387
|
+
recorded_with: VCR 2.9.3
|