contentful-management 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +8 -0
- data/README.md +17 -0
- data/lib/contentful/management/array.rb +3 -1
- data/lib/contentful/management/asset.rb +16 -14
- data/lib/contentful/management/client.rb +1 -1
- data/lib/contentful/management/content_type.rb +18 -18
- data/lib/contentful/management/entry.rb +20 -19
- data/lib/contentful/management/locale.rb +4 -4
- data/lib/contentful/management/request.rb +4 -2
- data/lib/contentful/management/resource.rb +8 -8
- data/lib/contentful/management/resource/refresher.rb +8 -1
- data/lib/contentful/management/resource_builder.rb +3 -3
- data/lib/contentful/management/response.rb +10 -3
- data/lib/contentful/management/space.rb +11 -11
- data/lib/contentful/management/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/asset/create_with_locale.yml +151 -0
- data/spec/fixtures/vcr_cassettes/asset/limited_assets_next_page.yml +123 -0
- data/spec/fixtures/vcr_cassettes/asset/reload.yml +406 -0
- data/spec/fixtures/vcr_cassettes/content_type/reload.yml +394 -0
- data/spec/fixtures/vcr_cassettes/entry/all.yml +231 -36
- data/spec/fixtures/vcr_cassettes/entry/content_type_entires.yml +99 -23
- data/spec/fixtures/vcr_cassettes/entry/create_with_specified_locale.yml +509 -0
- data/spec/fixtures/vcr_cassettes/entry/limited_entries.yml +236 -0
- data/spec/fixtures/vcr_cassettes/entry/reload.yml +1027 -0
- data/spec/fixtures/vcr_cassettes/locale/reload.yml +279 -0
- data/spec/fixtures/vcr_cassettes/space/asset/all_with_skip_and_limit.yml +355 -0
- data/spec/fixtures/vcr_cassettes/space/asset/with_skipped_and_limited_assets_next_page.yml +635 -0
- data/spec/fixtures/vcr_cassettes/space/entry/with_skipped_and_limited_entires_next_page.yml +648 -0
- data/spec/fixtures/vcr_cassettes/space/entry/with_skipped_andlimited_entires.yml +468 -0
- data/spec/fixtures/vcr_cassettes/space/reload.yml +739 -0
- data/spec/lib/contentful/management/asset_spec.rb +42 -2
- data/spec/lib/contentful/management/content_type_spec.rb +16 -1
- data/spec/lib/contentful/management/entry_spec.rb +38 -5
- data/spec/lib/contentful/management/locale_spec.rb +14 -0
- data/spec/lib/contentful/management/space_spec.rb +46 -2
- metadata +31 -5
@@ -0,0 +1,635 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.contentful.com/spaces/bfsvtul0c41g
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- RubyContenfulManagementGem/0.0.2
|
12
|
+
Authorization:
|
13
|
+
- Bearer <ACCESS_TOKEN>
|
14
|
+
Content-Type:
|
15
|
+
- application/vnd.contentful.management.v1+json
|
16
|
+
Content-Length:
|
17
|
+
- '0'
|
18
|
+
Host:
|
19
|
+
- api.contentful.com
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Tue, 19 Aug 2014 07:27:14 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/vnd.contentful.management.v1+json
|
31
|
+
Content-Length:
|
32
|
+
- '459'
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Status:
|
36
|
+
- 200 OK
|
37
|
+
X-Contentful-Request-Id:
|
38
|
+
- 85f-1337086970
|
39
|
+
Etag:
|
40
|
+
- '"4c0ee33eddaabc719d0b81c1ef79fdc4"'
|
41
|
+
Accept-Ranges:
|
42
|
+
- bytes
|
43
|
+
Cache-Control:
|
44
|
+
- max-age=0
|
45
|
+
Access-Control-Allow-Origin:
|
46
|
+
- "*"
|
47
|
+
Access-Control-Allow-Headers:
|
48
|
+
- 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
|
49
|
+
Access-Control-Allow-Methods:
|
50
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
51
|
+
"^access-Control-Expose-Headers":
|
52
|
+
- Etag
|
53
|
+
Access-Control-Max-Age:
|
54
|
+
- '1728000'
|
55
|
+
body:
|
56
|
+
encoding: UTF-8
|
57
|
+
string: |
|
58
|
+
{
|
59
|
+
"sys":{
|
60
|
+
"type":"Space",
|
61
|
+
"id":"bfsvtul0c41g",
|
62
|
+
"version":1,
|
63
|
+
"createdBy":{
|
64
|
+
"sys":{
|
65
|
+
"type":"Link",
|
66
|
+
"linkType":"User",
|
67
|
+
"id":"1E7acJL8I5XUXAMHQt9Grs"
|
68
|
+
}
|
69
|
+
},
|
70
|
+
"createdAt":"2014-08-18T06:51:53Z",
|
71
|
+
"updatedBy":{
|
72
|
+
"sys":{
|
73
|
+
"type":"Link",
|
74
|
+
"linkType":"User",
|
75
|
+
"id":"1E7acJL8I5XUXAMHQt9Grs"
|
76
|
+
}
|
77
|
+
},
|
78
|
+
"updatedAt":"2014-08-18T06:51:53Z"
|
79
|
+
},
|
80
|
+
"name":"CMA_demo_rails_app"}
|
81
|
+
http_version:
|
82
|
+
recorded_at: Tue, 19 Aug 2014 07:27:15 GMT
|
83
|
+
- request:
|
84
|
+
method: get
|
85
|
+
uri: https://api.contentful.com/spaces/bfsvtul0c41g/content_types
|
86
|
+
body:
|
87
|
+
encoding: US-ASCII
|
88
|
+
string: ''
|
89
|
+
headers:
|
90
|
+
User-Agent:
|
91
|
+
- RubyContenfulManagementGem/0.0.2
|
92
|
+
Authorization:
|
93
|
+
- Bearer <ACCESS_TOKEN>
|
94
|
+
Content-Type:
|
95
|
+
- application/vnd.contentful.management.v1+json
|
96
|
+
Content-Length:
|
97
|
+
- '0'
|
98
|
+
Host:
|
99
|
+
- api.contentful.com
|
100
|
+
response:
|
101
|
+
status:
|
102
|
+
code: 200
|
103
|
+
message: OK
|
104
|
+
headers:
|
105
|
+
Server:
|
106
|
+
- nginx
|
107
|
+
Date:
|
108
|
+
- Tue, 19 Aug 2014 07:27:15 GMT
|
109
|
+
Content-Type:
|
110
|
+
- application/vnd.contentful.management.v1+json
|
111
|
+
Content-Length:
|
112
|
+
- '4377'
|
113
|
+
Connection:
|
114
|
+
- keep-alive
|
115
|
+
X-Powered-By:
|
116
|
+
- Express
|
117
|
+
Cf-Space-Id:
|
118
|
+
- bfsvtul0c41g
|
119
|
+
Etag:
|
120
|
+
- '"b5308f63b7bc3de5cd2ef8abf4128ab7"'
|
121
|
+
Access-Control-Allow-Origin:
|
122
|
+
- "*"
|
123
|
+
Access-Control-Allow-Headers:
|
124
|
+
- 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
|
125
|
+
Access-Control-Allow-Methods:
|
126
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
127
|
+
"^access-Control-Expose-Headers":
|
128
|
+
- Etag
|
129
|
+
Access-Control-Max-Age:
|
130
|
+
- '1728000'
|
131
|
+
body:
|
132
|
+
encoding: UTF-8
|
133
|
+
string: |
|
134
|
+
{
|
135
|
+
"sys": {
|
136
|
+
"type": "Array"
|
137
|
+
},
|
138
|
+
"total": 2,
|
139
|
+
"skip": 0,
|
140
|
+
"limit": 100,
|
141
|
+
"items": [
|
142
|
+
{
|
143
|
+
"name": "Post",
|
144
|
+
"description": "",
|
145
|
+
"fields": [
|
146
|
+
{
|
147
|
+
"id": "post_title",
|
148
|
+
"name": "Title",
|
149
|
+
"type": "Text",
|
150
|
+
"localized": true
|
151
|
+
},
|
152
|
+
{
|
153
|
+
"id": "post_author",
|
154
|
+
"name": "Author",
|
155
|
+
"type": "Text",
|
156
|
+
"localized": true
|
157
|
+
},
|
158
|
+
{
|
159
|
+
"id": "post_body",
|
160
|
+
"name": "Body",
|
161
|
+
"type": "Text",
|
162
|
+
"localized": true
|
163
|
+
},
|
164
|
+
{
|
165
|
+
"id": "post_title_image",
|
166
|
+
"name": "Title Image",
|
167
|
+
"type": "Link",
|
168
|
+
"linkType": "Asset",
|
169
|
+
"required": true,
|
170
|
+
"localized": true
|
171
|
+
},
|
172
|
+
{
|
173
|
+
"id": "post_second_image",
|
174
|
+
"name": "Second Image",
|
175
|
+
"type": "Link",
|
176
|
+
"linkType": "Asset",
|
177
|
+
"localized": true
|
178
|
+
},
|
179
|
+
{
|
180
|
+
"id": "post_category_id",
|
181
|
+
"name": "Category",
|
182
|
+
"type": "Link",
|
183
|
+
"linkType": "Entry"
|
184
|
+
},
|
185
|
+
{
|
186
|
+
"id": "post_assets",
|
187
|
+
"name": "Post Assets",
|
188
|
+
"type": "Array",
|
189
|
+
"items": {
|
190
|
+
"type": "Link",
|
191
|
+
"linkType": "Asset"
|
192
|
+
}
|
193
|
+
},
|
194
|
+
{
|
195
|
+
"id": "xxx",
|
196
|
+
"name": "xxx",
|
197
|
+
"type": "Symbol"
|
198
|
+
},
|
199
|
+
{
|
200
|
+
"id": "xxx123",
|
201
|
+
"name": "xxx123",
|
202
|
+
"type": "Symbol"
|
203
|
+
},
|
204
|
+
{
|
205
|
+
"id": "ssss",
|
206
|
+
"name": "Post ssss",
|
207
|
+
"type": "Array",
|
208
|
+
"items": {
|
209
|
+
"type": "Link",
|
210
|
+
"linkType": "Asset"
|
211
|
+
}
|
212
|
+
},
|
213
|
+
{
|
214
|
+
"name": "xxasdasd",
|
215
|
+
"id": "xxasdasd",
|
216
|
+
"type": "Boolean",
|
217
|
+
"uiid": "387exwqopa8"
|
218
|
+
}
|
219
|
+
],
|
220
|
+
"sys": {
|
221
|
+
"id": "post_content_type",
|
222
|
+
"type": "ContentType",
|
223
|
+
"createdAt": "2014-08-18T06:52:03.545Z",
|
224
|
+
"createdBy": {
|
225
|
+
"sys": {
|
226
|
+
"type": "Link",
|
227
|
+
"linkType": "User",
|
228
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
229
|
+
}
|
230
|
+
},
|
231
|
+
"space": {
|
232
|
+
"sys": {
|
233
|
+
"type": "Link",
|
234
|
+
"linkType": "Space",
|
235
|
+
"id": "bfsvtul0c41g"
|
236
|
+
}
|
237
|
+
},
|
238
|
+
"firstPublishedAt": "2014-08-18T06:52:10.462Z",
|
239
|
+
"publishedCounter": 4,
|
240
|
+
"publishedAt": "2014-08-18T12:42:39.643Z",
|
241
|
+
"publishedBy": {
|
242
|
+
"sys": {
|
243
|
+
"type": "Link",
|
244
|
+
"linkType": "User",
|
245
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
246
|
+
}
|
247
|
+
},
|
248
|
+
"publishedVersion": 33,
|
249
|
+
"version": 34,
|
250
|
+
"updatedAt": "2014-08-18T12:42:39.653Z",
|
251
|
+
"updatedBy": {
|
252
|
+
"sys": {
|
253
|
+
"type": "Link",
|
254
|
+
"linkType": "User",
|
255
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
256
|
+
}
|
257
|
+
}
|
258
|
+
}
|
259
|
+
},
|
260
|
+
{
|
261
|
+
"name": "Category",
|
262
|
+
"description": "",
|
263
|
+
"fields": [
|
264
|
+
{
|
265
|
+
"id": "name",
|
266
|
+
"name": "Name",
|
267
|
+
"type": "Text",
|
268
|
+
"localized": true,
|
269
|
+
"uiid": "4vp0pcgc7b4"
|
270
|
+
},
|
271
|
+
{
|
272
|
+
"id": "description",
|
273
|
+
"name": "Description",
|
274
|
+
"type": "Text",
|
275
|
+
"localized": true,
|
276
|
+
"uiid": "40jqtxghjb4"
|
277
|
+
}
|
278
|
+
],
|
279
|
+
"sys": {
|
280
|
+
"id": "category_content_type",
|
281
|
+
"type": "ContentType",
|
282
|
+
"createdAt": "2014-08-18T06:51:59.560Z",
|
283
|
+
"createdBy": {
|
284
|
+
"sys": {
|
285
|
+
"type": "Link",
|
286
|
+
"linkType": "User",
|
287
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
288
|
+
}
|
289
|
+
},
|
290
|
+
"space": {
|
291
|
+
"sys": {
|
292
|
+
"type": "Link",
|
293
|
+
"linkType": "Space",
|
294
|
+
"id": "bfsvtul0c41g"
|
295
|
+
}
|
296
|
+
},
|
297
|
+
"firstPublishedAt": "2014-08-18T06:52:02.517Z",
|
298
|
+
"publishedCounter": 4,
|
299
|
+
"publishedAt": "2014-08-19T06:19:06.351Z",
|
300
|
+
"publishedBy": {
|
301
|
+
"sys": {
|
302
|
+
"type": "Link",
|
303
|
+
"linkType": "User",
|
304
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
305
|
+
}
|
306
|
+
},
|
307
|
+
"publishedVersion": 26,
|
308
|
+
"version": 27,
|
309
|
+
"updatedAt": "2014-08-19T06:19:06.356Z",
|
310
|
+
"updatedBy": {
|
311
|
+
"sys": {
|
312
|
+
"type": "Link",
|
313
|
+
"linkType": "User",
|
314
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
315
|
+
}
|
316
|
+
}
|
317
|
+
},
|
318
|
+
"displayField": "name"
|
319
|
+
}
|
320
|
+
]
|
321
|
+
}
|
322
|
+
http_version:
|
323
|
+
recorded_at: Tue, 19 Aug 2014 07:27:16 GMT
|
324
|
+
- request:
|
325
|
+
method: get
|
326
|
+
uri: https://api.contentful.com/spaces/bfsvtul0c41g/assets?limit=2&skip=1
|
327
|
+
body:
|
328
|
+
encoding: US-ASCII
|
329
|
+
string: ''
|
330
|
+
headers:
|
331
|
+
User-Agent:
|
332
|
+
- RubyContenfulManagementGem/0.0.2
|
333
|
+
Authorization:
|
334
|
+
- Bearer <ACCESS_TOKEN>
|
335
|
+
Content-Type:
|
336
|
+
- application/vnd.contentful.management.v1+json
|
337
|
+
Host:
|
338
|
+
- api.contentful.com
|
339
|
+
response:
|
340
|
+
status:
|
341
|
+
code: 200
|
342
|
+
message: OK
|
343
|
+
headers:
|
344
|
+
Server:
|
345
|
+
- nginx
|
346
|
+
Date:
|
347
|
+
- Tue, 19 Aug 2014 07:27:16 GMT
|
348
|
+
Content-Type:
|
349
|
+
- application/vnd.contentful.management.v1+json
|
350
|
+
Content-Length:
|
351
|
+
- '3419'
|
352
|
+
Connection:
|
353
|
+
- keep-alive
|
354
|
+
X-Powered-By:
|
355
|
+
- Express
|
356
|
+
Cf-Space-Id:
|
357
|
+
- bfsvtul0c41g
|
358
|
+
Etag:
|
359
|
+
- '"a6495c81e6eedb1ff0dd48f900e476f9"'
|
360
|
+
Access-Control-Allow-Origin:
|
361
|
+
- "*"
|
362
|
+
Access-Control-Allow-Headers:
|
363
|
+
- 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
|
364
|
+
Access-Control-Allow-Methods:
|
365
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
366
|
+
"^access-Control-Expose-Headers":
|
367
|
+
- Etag
|
368
|
+
Access-Control-Max-Age:
|
369
|
+
- '1728000'
|
370
|
+
body:
|
371
|
+
encoding: UTF-8
|
372
|
+
string: |
|
373
|
+
{
|
374
|
+
"sys": {
|
375
|
+
"type": "Array"
|
376
|
+
},
|
377
|
+
"total": 4,
|
378
|
+
"skip": 1,
|
379
|
+
"limit": 2,
|
380
|
+
"items": [
|
381
|
+
{
|
382
|
+
"fields": {
|
383
|
+
"title": {
|
384
|
+
"en-US": "test"
|
385
|
+
},
|
386
|
+
"description": {
|
387
|
+
"en-US": "testowy"
|
388
|
+
},
|
389
|
+
"file": {
|
390
|
+
"en-US": {
|
391
|
+
"fileName": "Mowing_your_Lawn_-_Advice_and_Tips",
|
392
|
+
"contentType": "image/jpeg",
|
393
|
+
"details": {
|
394
|
+
"image": {
|
395
|
+
"width": 801,
|
396
|
+
"height": 1000
|
397
|
+
},
|
398
|
+
"size": 105202
|
399
|
+
},
|
400
|
+
"url": "//images.contentful.com/bfsvtul0c41g/8R4vbQXKbCkcSu26Wy2U0/4ca4dabb0305045fa5c3c786bf5d7592/mow.jpg"
|
401
|
+
}
|
402
|
+
}
|
403
|
+
},
|
404
|
+
"sys": {
|
405
|
+
"id": "8R4vbQXKbCkcSu26Wy2U0",
|
406
|
+
"type": "Asset",
|
407
|
+
"createdAt": "2014-08-19T07:25:10.104Z",
|
408
|
+
"createdBy": {
|
409
|
+
"sys": {
|
410
|
+
"type": "Link",
|
411
|
+
"linkType": "User",
|
412
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
413
|
+
}
|
414
|
+
},
|
415
|
+
"space": {
|
416
|
+
"sys": {
|
417
|
+
"type": "Link",
|
418
|
+
"linkType": "Space",
|
419
|
+
"id": "bfsvtul0c41g"
|
420
|
+
}
|
421
|
+
},
|
422
|
+
"firstPublishedAt": "2014-08-19T07:25:32.234Z",
|
423
|
+
"publishedCounter": 1,
|
424
|
+
"publishedAt": "2014-08-19T07:25:32.234Z",
|
425
|
+
"publishedBy": {
|
426
|
+
"sys": {
|
427
|
+
"type": "Link",
|
428
|
+
"linkType": "User",
|
429
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
430
|
+
}
|
431
|
+
},
|
432
|
+
"publishedVersion": 11,
|
433
|
+
"version": 12,
|
434
|
+
"updatedAt": "2014-08-19T07:25:32.243Z",
|
435
|
+
"updatedBy": {
|
436
|
+
"sys": {
|
437
|
+
"type": "Link",
|
438
|
+
"linkType": "User",
|
439
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
440
|
+
}
|
441
|
+
}
|
442
|
+
}
|
443
|
+
},
|
444
|
+
{
|
445
|
+
"fields": {
|
446
|
+
"title": {
|
447
|
+
"en-US": "xxx"
|
448
|
+
},
|
449
|
+
"description": {
|
450
|
+
"en-US": "xxx"
|
451
|
+
},
|
452
|
+
"file": {
|
453
|
+
"en-US": {
|
454
|
+
"fileName": "Nice_One_by_Tais_Tees__Flickr_-_Photo_Sharing",
|
455
|
+
"contentType": "image/jpeg",
|
456
|
+
"details": {
|
457
|
+
"image": {
|
458
|
+
"width": 640,
|
459
|
+
"height": 456
|
460
|
+
},
|
461
|
+
"size": 107235
|
462
|
+
},
|
463
|
+
"url": "//images.contentful.com/bfsvtul0c41g/7cDtJuMGcg2qwQWiKsmgEG/bb6105976519559abddbdbef0f0b6fe8/nice_one.jpg"
|
464
|
+
}
|
465
|
+
}
|
466
|
+
},
|
467
|
+
"sys": {
|
468
|
+
"id": "7cDtJuMGcg2qwQWiKsmgEG",
|
469
|
+
"type": "Asset",
|
470
|
+
"createdAt": "2014-08-19T07:25:37.004Z",
|
471
|
+
"createdBy": {
|
472
|
+
"sys": {
|
473
|
+
"type": "Link",
|
474
|
+
"linkType": "User",
|
475
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
476
|
+
}
|
477
|
+
},
|
478
|
+
"space": {
|
479
|
+
"sys": {
|
480
|
+
"type": "Link",
|
481
|
+
"linkType": "Space",
|
482
|
+
"id": "bfsvtul0c41g"
|
483
|
+
}
|
484
|
+
},
|
485
|
+
"firstPublishedAt": "2014-08-19T07:25:58.426Z",
|
486
|
+
"publishedCounter": 1,
|
487
|
+
"publishedAt": "2014-08-19T07:25:58.426Z",
|
488
|
+
"publishedBy": {
|
489
|
+
"sys": {
|
490
|
+
"type": "Link",
|
491
|
+
"linkType": "User",
|
492
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
493
|
+
}
|
494
|
+
},
|
495
|
+
"publishedVersion": 6,
|
496
|
+
"version": 7,
|
497
|
+
"updatedAt": "2014-08-19T07:25:58.432Z",
|
498
|
+
"updatedBy": {
|
499
|
+
"sys": {
|
500
|
+
"type": "Link",
|
501
|
+
"linkType": "User",
|
502
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
503
|
+
}
|
504
|
+
}
|
505
|
+
}
|
506
|
+
}
|
507
|
+
]
|
508
|
+
}
|
509
|
+
http_version:
|
510
|
+
recorded_at: Tue, 19 Aug 2014 07:27:17 GMT
|
511
|
+
- request:
|
512
|
+
method: get
|
513
|
+
uri: https://api.contentful.com/spaces/bfsvtul0c41g/assets?limit=2&skip=3
|
514
|
+
body:
|
515
|
+
encoding: US-ASCII
|
516
|
+
string: ''
|
517
|
+
headers:
|
518
|
+
User-Agent:
|
519
|
+
- RubyContenfulManagementGem/0.0.2
|
520
|
+
Authorization:
|
521
|
+
- Bearer <ACCESS_TOKEN>
|
522
|
+
Content-Type:
|
523
|
+
- application/vnd.contentful.management.v1+json
|
524
|
+
Host:
|
525
|
+
- api.contentful.com
|
526
|
+
response:
|
527
|
+
status:
|
528
|
+
code: 200
|
529
|
+
message: OK
|
530
|
+
headers:
|
531
|
+
Server:
|
532
|
+
- nginx
|
533
|
+
Date:
|
534
|
+
- Tue, 19 Aug 2014 07:27:17 GMT
|
535
|
+
Content-Type:
|
536
|
+
- application/vnd.contentful.management.v1+json
|
537
|
+
Content-Length:
|
538
|
+
- '1724'
|
539
|
+
Connection:
|
540
|
+
- keep-alive
|
541
|
+
X-Powered-By:
|
542
|
+
- Express
|
543
|
+
Cf-Space-Id:
|
544
|
+
- bfsvtul0c41g
|
545
|
+
Etag:
|
546
|
+
- '"a9769c4814552f5157ac53e263002859"'
|
547
|
+
Access-Control-Allow-Origin:
|
548
|
+
- "*"
|
549
|
+
Access-Control-Allow-Headers:
|
550
|
+
- 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
|
551
|
+
Access-Control-Allow-Methods:
|
552
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
553
|
+
"^access-Control-Expose-Headers":
|
554
|
+
- Etag
|
555
|
+
Access-Control-Max-Age:
|
556
|
+
- '1728000'
|
557
|
+
body:
|
558
|
+
encoding: UTF-8
|
559
|
+
string: |
|
560
|
+
{
|
561
|
+
"sys": {
|
562
|
+
"type": "Array"
|
563
|
+
},
|
564
|
+
"total": 4,
|
565
|
+
"skip": 3,
|
566
|
+
"limit": 2,
|
567
|
+
"items": [
|
568
|
+
{
|
569
|
+
"fields": {
|
570
|
+
"title": {
|
571
|
+
"en-US": "dom"
|
572
|
+
},
|
573
|
+
"description": {
|
574
|
+
"en-US": "dom"
|
575
|
+
},
|
576
|
+
"file": {
|
577
|
+
"en-US": {
|
578
|
+
"fileName": "Dom_Perignon",
|
579
|
+
"contentType": "image/jpeg",
|
580
|
+
"details": {
|
581
|
+
"image": {
|
582
|
+
"width": 512,
|
583
|
+
"height": 640
|
584
|
+
},
|
585
|
+
"size": 48899
|
586
|
+
},
|
587
|
+
"url": "//images.contentful.com/bfsvtul0c41g/1PHmzOhysEyiKeymeqs2GQ/7beed9b3cfefac0feaf18cb56394a528/dom.jpg"
|
588
|
+
}
|
589
|
+
}
|
590
|
+
},
|
591
|
+
"sys": {
|
592
|
+
"id": "1PHmzOhysEyiKeymeqs2GQ",
|
593
|
+
"type": "Asset",
|
594
|
+
"createdAt": "2014-08-19T07:26:03.909Z",
|
595
|
+
"createdBy": {
|
596
|
+
"sys": {
|
597
|
+
"type": "Link",
|
598
|
+
"linkType": "User",
|
599
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
600
|
+
}
|
601
|
+
},
|
602
|
+
"space": {
|
603
|
+
"sys": {
|
604
|
+
"type": "Link",
|
605
|
+
"linkType": "Space",
|
606
|
+
"id": "bfsvtul0c41g"
|
607
|
+
}
|
608
|
+
},
|
609
|
+
"firstPublishedAt": "2014-08-19T07:26:27.182Z",
|
610
|
+
"publishedCounter": 1,
|
611
|
+
"publishedAt": "2014-08-19T07:26:27.182Z",
|
612
|
+
"publishedBy": {
|
613
|
+
"sys": {
|
614
|
+
"type": "Link",
|
615
|
+
"linkType": "User",
|
616
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
617
|
+
}
|
618
|
+
},
|
619
|
+
"publishedVersion": 5,
|
620
|
+
"version": 6,
|
621
|
+
"updatedAt": "2014-08-19T07:26:27.186Z",
|
622
|
+
"updatedBy": {
|
623
|
+
"sys": {
|
624
|
+
"type": "Link",
|
625
|
+
"linkType": "User",
|
626
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
627
|
+
}
|
628
|
+
}
|
629
|
+
}
|
630
|
+
}
|
631
|
+
]
|
632
|
+
}
|
633
|
+
http_version:
|
634
|
+
recorded_at: Tue, 19 Aug 2014 07:27:18 GMT
|
635
|
+
recorded_with: VCR 2.9.2
|