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,648 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.contentful.com/spaces/sueu9bzev6qn
|
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:14:04 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/vnd.contentful.management.v1+json
|
31
|
+
Content-Length:
|
32
|
+
- '468'
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Status:
|
36
|
+
- 200 OK
|
37
|
+
X-Contentful-Request-Id:
|
38
|
+
- 85f-1337085311
|
39
|
+
Etag:
|
40
|
+
- '"20e726b10eb80dbe0f28772a8c710034"'
|
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":"sueu9bzev6qn",
|
62
|
+
"version":1,
|
63
|
+
"createdBy":{
|
64
|
+
"sys":{
|
65
|
+
"type":"Link",
|
66
|
+
"linkType":"User",
|
67
|
+
"id":"0fn5fOWn4WsKFyYla1gI5h"
|
68
|
+
}
|
69
|
+
},
|
70
|
+
"createdAt":"2014-08-08T12:51:20Z",
|
71
|
+
"updatedBy":{
|
72
|
+
"sys":{
|
73
|
+
"type":"Link",
|
74
|
+
"linkType":"User",
|
75
|
+
"id":"0fn5fOWn4WsKFyYla1gI5h"
|
76
|
+
}
|
77
|
+
},
|
78
|
+
"updatedAt":"2014-08-08T12:51:20Z"
|
79
|
+
},
|
80
|
+
"name":"Breweries and Beers - debug"}
|
81
|
+
http_version:
|
82
|
+
recorded_at: Tue, 19 Aug 2014 07:14:05 GMT
|
83
|
+
- request:
|
84
|
+
method: get
|
85
|
+
uri: https://api.contentful.com/spaces/sueu9bzev6qn/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:14:05 GMT
|
109
|
+
Content-Type:
|
110
|
+
- application/vnd.contentful.management.v1+json
|
111
|
+
Content-Length:
|
112
|
+
- '4277'
|
113
|
+
Connection:
|
114
|
+
- keep-alive
|
115
|
+
X-Powered-By:
|
116
|
+
- Express
|
117
|
+
Cf-Space-Id:
|
118
|
+
- sueu9bzev6qn
|
119
|
+
Etag:
|
120
|
+
- '"17f8148530cf6ae499a94f6cedf8e43a"'
|
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": "Brewery - debug",
|
144
|
+
"description": "",
|
145
|
+
"fields": [
|
146
|
+
{
|
147
|
+
"id": "name",
|
148
|
+
"name": "Name",
|
149
|
+
"type": "Text",
|
150
|
+
"required": true
|
151
|
+
},
|
152
|
+
{
|
153
|
+
"id": "description",
|
154
|
+
"name": "Description",
|
155
|
+
"type": "Text"
|
156
|
+
},
|
157
|
+
{
|
158
|
+
"id": "phone",
|
159
|
+
"name": "Phone",
|
160
|
+
"type": "Text"
|
161
|
+
},
|
162
|
+
{
|
163
|
+
"id": "city",
|
164
|
+
"name": "City",
|
165
|
+
"type": "Text"
|
166
|
+
},
|
167
|
+
{
|
168
|
+
"id": "code",
|
169
|
+
"name": "Code",
|
170
|
+
"type": "Symbol"
|
171
|
+
},
|
172
|
+
{
|
173
|
+
"id": "website",
|
174
|
+
"name": "Website",
|
175
|
+
"type": "Text"
|
176
|
+
},
|
177
|
+
{
|
178
|
+
"id": "location",
|
179
|
+
"name": "Location",
|
180
|
+
"type": "Location"
|
181
|
+
},
|
182
|
+
{
|
183
|
+
"id": "beers",
|
184
|
+
"name": "Beers",
|
185
|
+
"type": "Array",
|
186
|
+
"items": {
|
187
|
+
"type": "Link",
|
188
|
+
"linkType": "Entry"
|
189
|
+
}
|
190
|
+
}
|
191
|
+
],
|
192
|
+
"sys": {
|
193
|
+
"id": "6xCQB0wQ1Oaqc46eaSoY4g",
|
194
|
+
"type": "ContentType",
|
195
|
+
"createdAt": "2014-08-08T12:51:24.297Z",
|
196
|
+
"createdBy": {
|
197
|
+
"sys": {
|
198
|
+
"type": "Link",
|
199
|
+
"linkType": "User",
|
200
|
+
"id": "0fn5fOWn4WsKFyYla1gI5h"
|
201
|
+
}
|
202
|
+
},
|
203
|
+
"space": {
|
204
|
+
"sys": {
|
205
|
+
"type": "Link",
|
206
|
+
"linkType": "Space",
|
207
|
+
"id": "sueu9bzev6qn"
|
208
|
+
}
|
209
|
+
},
|
210
|
+
"firstPublishedAt": "2014-08-08T12:51:36.096Z",
|
211
|
+
"publishedCounter": 1,
|
212
|
+
"publishedAt": "2014-08-08T12:51:36.096Z",
|
213
|
+
"publishedBy": {
|
214
|
+
"sys": {
|
215
|
+
"type": "Link",
|
216
|
+
"linkType": "User",
|
217
|
+
"id": "0fn5fOWn4WsKFyYla1gI5h"
|
218
|
+
}
|
219
|
+
},
|
220
|
+
"publishedVersion": 9,
|
221
|
+
"version": 10,
|
222
|
+
"updatedAt": "2014-08-08T12:51:36.110Z",
|
223
|
+
"updatedBy": {
|
224
|
+
"sys": {
|
225
|
+
"type": "Link",
|
226
|
+
"linkType": "User",
|
227
|
+
"id": "0fn5fOWn4WsKFyYla1gI5h"
|
228
|
+
}
|
229
|
+
}
|
230
|
+
}
|
231
|
+
},
|
232
|
+
{
|
233
|
+
"name": "Beer",
|
234
|
+
"description": "",
|
235
|
+
"fields": [
|
236
|
+
{
|
237
|
+
"id": "name",
|
238
|
+
"name": "Name",
|
239
|
+
"type": "Text",
|
240
|
+
"uiid": "2w8ne7qygw0"
|
241
|
+
},
|
242
|
+
{
|
243
|
+
"id": "description",
|
244
|
+
"name": "Description",
|
245
|
+
"type": "Text",
|
246
|
+
"uiid": "2kf3qlx1zpc"
|
247
|
+
},
|
248
|
+
{
|
249
|
+
"id": "abv",
|
250
|
+
"name": "Alcohol by Volume",
|
251
|
+
"type": "Number",
|
252
|
+
"uiid": "4cna2xcdlvk"
|
253
|
+
},
|
254
|
+
{
|
255
|
+
"id": "brewery_id",
|
256
|
+
"name": "Brewery",
|
257
|
+
"type": "Link",
|
258
|
+
"linkType": "Entry",
|
259
|
+
"required": true,
|
260
|
+
"uiid": "47kv3nrmyo0"
|
261
|
+
},
|
262
|
+
{
|
263
|
+
"id": "category_id",
|
264
|
+
"name": "Category",
|
265
|
+
"type": "Link",
|
266
|
+
"linkType": "Entry",
|
267
|
+
"uiid": "4ww5boi8xz4"
|
268
|
+
},
|
269
|
+
{
|
270
|
+
"id": "style_id",
|
271
|
+
"name": "Style",
|
272
|
+
"type": "Link",
|
273
|
+
"linkType": "Entry",
|
274
|
+
"uiid": "3ea4w05qhhc"
|
275
|
+
}
|
276
|
+
],
|
277
|
+
"sys": {
|
278
|
+
"id": "CnHpfo8pEc4AyOsuAo0Oa",
|
279
|
+
"type": "ContentType",
|
280
|
+
"createdAt": "2014-08-08T12:51:38.536Z",
|
281
|
+
"createdBy": {
|
282
|
+
"sys": {
|
283
|
+
"type": "Link",
|
284
|
+
"linkType": "User",
|
285
|
+
"id": "0fn5fOWn4WsKFyYla1gI5h"
|
286
|
+
}
|
287
|
+
},
|
288
|
+
"space": {
|
289
|
+
"sys": {
|
290
|
+
"type": "Link",
|
291
|
+
"linkType": "Space",
|
292
|
+
"id": "sueu9bzev6qn"
|
293
|
+
}
|
294
|
+
},
|
295
|
+
"firstPublishedAt": "2014-08-08T12:51:47.312Z",
|
296
|
+
"publishedCounter": 2,
|
297
|
+
"publishedAt": "2014-08-11T07:26:46.237Z",
|
298
|
+
"publishedBy": {
|
299
|
+
"sys": {
|
300
|
+
"type": "Link",
|
301
|
+
"linkType": "User",
|
302
|
+
"id": "0fn5fOWn4WsKFyYla1gI5h"
|
303
|
+
}
|
304
|
+
},
|
305
|
+
"publishedVersion": 10,
|
306
|
+
"version": 11,
|
307
|
+
"updatedAt": "2014-08-11T07:26:46.243Z",
|
308
|
+
"updatedBy": {
|
309
|
+
"sys": {
|
310
|
+
"type": "Link",
|
311
|
+
"linkType": "User",
|
312
|
+
"id": "0fn5fOWn4WsKFyYla1gI5h"
|
313
|
+
}
|
314
|
+
}
|
315
|
+
},
|
316
|
+
"displayField": "name"
|
317
|
+
}
|
318
|
+
]
|
319
|
+
}
|
320
|
+
http_version:
|
321
|
+
recorded_at: Tue, 19 Aug 2014 07:14:06 GMT
|
322
|
+
- request:
|
323
|
+
method: get
|
324
|
+
uri: https://api.contentful.com/spaces/sueu9bzev6qn/entries?limit=2&skip=1
|
325
|
+
body:
|
326
|
+
encoding: US-ASCII
|
327
|
+
string: ''
|
328
|
+
headers:
|
329
|
+
User-Agent:
|
330
|
+
- RubyContenfulManagementGem/0.0.2
|
331
|
+
Authorization:
|
332
|
+
- Bearer <ACCESS_TOKEN>
|
333
|
+
Content-Type:
|
334
|
+
- application/vnd.contentful.management.v1+json
|
335
|
+
Host:
|
336
|
+
- api.contentful.com
|
337
|
+
response:
|
338
|
+
status:
|
339
|
+
code: 200
|
340
|
+
message: OK
|
341
|
+
headers:
|
342
|
+
Server:
|
343
|
+
- nginx
|
344
|
+
Date:
|
345
|
+
- Tue, 19 Aug 2014 07:14:06 GMT
|
346
|
+
Content-Type:
|
347
|
+
- application/vnd.contentful.management.v1+json
|
348
|
+
Content-Length:
|
349
|
+
- '3367'
|
350
|
+
Connection:
|
351
|
+
- keep-alive
|
352
|
+
X-Powered-By:
|
353
|
+
- Express
|
354
|
+
Cf-Space-Id:
|
355
|
+
- sueu9bzev6qn
|
356
|
+
Etag:
|
357
|
+
- '"242dbc94158aec93e75eba7be65201cb"'
|
358
|
+
Access-Control-Allow-Origin:
|
359
|
+
- "*"
|
360
|
+
Access-Control-Allow-Headers:
|
361
|
+
- 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
|
362
|
+
Access-Control-Allow-Methods:
|
363
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
364
|
+
"^access-Control-Expose-Headers":
|
365
|
+
- Etag
|
366
|
+
Access-Control-Max-Age:
|
367
|
+
- '1728000'
|
368
|
+
body:
|
369
|
+
encoding: UTF-8
|
370
|
+
string: |
|
371
|
+
{
|
372
|
+
"sys": {
|
373
|
+
"type": "Array"
|
374
|
+
},
|
375
|
+
"total": 4,
|
376
|
+
"skip": 1,
|
377
|
+
"limit": 2,
|
378
|
+
"items": [
|
379
|
+
{
|
380
|
+
"fields": {
|
381
|
+
"name": {
|
382
|
+
"en-US": "beer12"
|
383
|
+
},
|
384
|
+
"description": {
|
385
|
+
"en-US": "beer1"
|
386
|
+
},
|
387
|
+
"abv": {
|
388
|
+
"en-US": 72
|
389
|
+
},
|
390
|
+
"brewery_id": {
|
391
|
+
"en-US": {
|
392
|
+
"sys": {
|
393
|
+
"type": "Link",
|
394
|
+
"linkType": "Entry",
|
395
|
+
"id": "3ualVj4mVa6a8ioSymky8O"
|
396
|
+
}
|
397
|
+
}
|
398
|
+
}
|
399
|
+
},
|
400
|
+
"sys": {
|
401
|
+
"id": "55avWNaDtSMGmm6I8ci0m0",
|
402
|
+
"type": "Entry",
|
403
|
+
"createdAt": "2014-08-08T12:51:52.323Z",
|
404
|
+
"createdBy": {
|
405
|
+
"sys": {
|
406
|
+
"type": "Link",
|
407
|
+
"linkType": "User",
|
408
|
+
"id": "0fn5fOWn4WsKFyYla1gI5h"
|
409
|
+
}
|
410
|
+
},
|
411
|
+
"space": {
|
412
|
+
"sys": {
|
413
|
+
"type": "Link",
|
414
|
+
"linkType": "Space",
|
415
|
+
"id": "sueu9bzev6qn"
|
416
|
+
}
|
417
|
+
},
|
418
|
+
"contentType": {
|
419
|
+
"sys": {
|
420
|
+
"type": "Link",
|
421
|
+
"linkType": "ContentType",
|
422
|
+
"id": "CnHpfo8pEc4AyOsuAo0Oa"
|
423
|
+
}
|
424
|
+
},
|
425
|
+
"firstPublishedAt": "2014-08-08T12:51:57.642Z",
|
426
|
+
"publishedCounter": 1,
|
427
|
+
"publishedAt": "2014-08-08T12:51:57.642Z",
|
428
|
+
"publishedBy": {
|
429
|
+
"sys": {
|
430
|
+
"type": "Link",
|
431
|
+
"linkType": "User",
|
432
|
+
"id": "0fn5fOWn4WsKFyYla1gI5h"
|
433
|
+
}
|
434
|
+
},
|
435
|
+
"publishedVersion": 1,
|
436
|
+
"version": 2,
|
437
|
+
"updatedAt": "2014-08-08T12:51:57.647Z",
|
438
|
+
"updatedBy": {
|
439
|
+
"sys": {
|
440
|
+
"type": "Link",
|
441
|
+
"linkType": "User",
|
442
|
+
"id": "0fn5fOWn4WsKFyYla1gI5h"
|
443
|
+
}
|
444
|
+
}
|
445
|
+
}
|
446
|
+
},
|
447
|
+
{
|
448
|
+
"fields": {
|
449
|
+
"name": {
|
450
|
+
"en-US": "beer13"
|
451
|
+
},
|
452
|
+
"description": {
|
453
|
+
"en-US": "beer1"
|
454
|
+
},
|
455
|
+
"abv": {
|
456
|
+
"en-US": 73
|
457
|
+
},
|
458
|
+
"brewery_id": {
|
459
|
+
"en-US": {
|
460
|
+
"sys": {
|
461
|
+
"type": "Link",
|
462
|
+
"linkType": "Entry",
|
463
|
+
"id": "3ualVj4mVa6a8ioSymky8O"
|
464
|
+
}
|
465
|
+
}
|
466
|
+
}
|
467
|
+
},
|
468
|
+
"sys": {
|
469
|
+
"id": "4ueRXRp5hKcyEsoSK2cqQ8",
|
470
|
+
"type": "Entry",
|
471
|
+
"createdAt": "2014-08-08T12:51:53.582Z",
|
472
|
+
"createdBy": {
|
473
|
+
"sys": {
|
474
|
+
"type": "Link",
|
475
|
+
"linkType": "User",
|
476
|
+
"id": "0fn5fOWn4WsKFyYla1gI5h"
|
477
|
+
}
|
478
|
+
},
|
479
|
+
"space": {
|
480
|
+
"sys": {
|
481
|
+
"type": "Link",
|
482
|
+
"linkType": "Space",
|
483
|
+
"id": "sueu9bzev6qn"
|
484
|
+
}
|
485
|
+
},
|
486
|
+
"contentType": {
|
487
|
+
"sys": {
|
488
|
+
"type": "Link",
|
489
|
+
"linkType": "ContentType",
|
490
|
+
"id": "CnHpfo8pEc4AyOsuAo0Oa"
|
491
|
+
}
|
492
|
+
},
|
493
|
+
"firstPublishedAt": "2014-08-08T12:51:58.711Z",
|
494
|
+
"publishedCounter": 1,
|
495
|
+
"publishedAt": "2014-08-08T12:51:58.711Z",
|
496
|
+
"publishedBy": {
|
497
|
+
"sys": {
|
498
|
+
"type": "Link",
|
499
|
+
"linkType": "User",
|
500
|
+
"id": "0fn5fOWn4WsKFyYla1gI5h"
|
501
|
+
}
|
502
|
+
},
|
503
|
+
"publishedVersion": 1,
|
504
|
+
"version": 2,
|
505
|
+
"updatedAt": "2014-08-08T12:51:58.715Z",
|
506
|
+
"updatedBy": {
|
507
|
+
"sys": {
|
508
|
+
"type": "Link",
|
509
|
+
"linkType": "User",
|
510
|
+
"id": "0fn5fOWn4WsKFyYla1gI5h"
|
511
|
+
}
|
512
|
+
}
|
513
|
+
}
|
514
|
+
}
|
515
|
+
]
|
516
|
+
}
|
517
|
+
http_version:
|
518
|
+
recorded_at: Tue, 19 Aug 2014 07:14:07 GMT
|
519
|
+
- request:
|
520
|
+
method: get
|
521
|
+
uri: https://api.contentful.com/spaces/sueu9bzev6qn/entries?limit=2&skip=3
|
522
|
+
body:
|
523
|
+
encoding: US-ASCII
|
524
|
+
string: ''
|
525
|
+
headers:
|
526
|
+
User-Agent:
|
527
|
+
- RubyContenfulManagementGem/0.0.2
|
528
|
+
Authorization:
|
529
|
+
- Bearer <ACCESS_TOKEN>
|
530
|
+
Content-Type:
|
531
|
+
- application/vnd.contentful.management.v1+json
|
532
|
+
Host:
|
533
|
+
- api.contentful.com
|
534
|
+
response:
|
535
|
+
status:
|
536
|
+
code: 200
|
537
|
+
message: OK
|
538
|
+
headers:
|
539
|
+
Server:
|
540
|
+
- nginx
|
541
|
+
Date:
|
542
|
+
- Tue, 19 Aug 2014 07:14:07 GMT
|
543
|
+
Content-Type:
|
544
|
+
- application/vnd.contentful.management.v1+json
|
545
|
+
Content-Length:
|
546
|
+
- '1730'
|
547
|
+
Connection:
|
548
|
+
- keep-alive
|
549
|
+
X-Powered-By:
|
550
|
+
- Express
|
551
|
+
Cf-Space-Id:
|
552
|
+
- sueu9bzev6qn
|
553
|
+
Etag:
|
554
|
+
- '"ef2def1223c82802be43c4bf040ea2b0"'
|
555
|
+
Access-Control-Allow-Origin:
|
556
|
+
- "*"
|
557
|
+
Access-Control-Allow-Headers:
|
558
|
+
- 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
|
559
|
+
Access-Control-Allow-Methods:
|
560
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
561
|
+
"^access-Control-Expose-Headers":
|
562
|
+
- Etag
|
563
|
+
Access-Control-Max-Age:
|
564
|
+
- '1728000'
|
565
|
+
body:
|
566
|
+
encoding: UTF-8
|
567
|
+
string: |
|
568
|
+
{
|
569
|
+
"sys": {
|
570
|
+
"type": "Array"
|
571
|
+
},
|
572
|
+
"total": 4,
|
573
|
+
"skip": 3,
|
574
|
+
"limit": 2,
|
575
|
+
"items": [
|
576
|
+
{
|
577
|
+
"fields": {
|
578
|
+
"name": {
|
579
|
+
"en-US": "beer1"
|
580
|
+
},
|
581
|
+
"description": {
|
582
|
+
"en-US": "beer1"
|
583
|
+
},
|
584
|
+
"abv": {
|
585
|
+
"en-US": 7
|
586
|
+
},
|
587
|
+
"brewery_id": {
|
588
|
+
"en-US": {
|
589
|
+
"sys": {
|
590
|
+
"type": "Link",
|
591
|
+
"linkType": "Entry",
|
592
|
+
"id": "3ualVj4mVa6a8ioSymky8O"
|
593
|
+
}
|
594
|
+
}
|
595
|
+
}
|
596
|
+
},
|
597
|
+
"sys": {
|
598
|
+
"id": "5Pjv3QaEtaSGQIYiyYq4Ig",
|
599
|
+
"type": "Entry",
|
600
|
+
"createdAt": "2014-08-08T12:51:51.101Z",
|
601
|
+
"createdBy": {
|
602
|
+
"sys": {
|
603
|
+
"type": "Link",
|
604
|
+
"linkType": "User",
|
605
|
+
"id": "0fn5fOWn4WsKFyYla1gI5h"
|
606
|
+
}
|
607
|
+
},
|
608
|
+
"space": {
|
609
|
+
"sys": {
|
610
|
+
"type": "Link",
|
611
|
+
"linkType": "Space",
|
612
|
+
"id": "sueu9bzev6qn"
|
613
|
+
}
|
614
|
+
},
|
615
|
+
"contentType": {
|
616
|
+
"sys": {
|
617
|
+
"type": "Link",
|
618
|
+
"linkType": "ContentType",
|
619
|
+
"id": "CnHpfo8pEc4AyOsuAo0Oa"
|
620
|
+
}
|
621
|
+
},
|
622
|
+
"firstPublishedAt": "2014-08-08T12:51:56.592Z",
|
623
|
+
"publishedCounter": 1,
|
624
|
+
"publishedAt": "2014-08-08T12:51:56.592Z",
|
625
|
+
"publishedBy": {
|
626
|
+
"sys": {
|
627
|
+
"type": "Link",
|
628
|
+
"linkType": "User",
|
629
|
+
"id": "0fn5fOWn4WsKFyYla1gI5h"
|
630
|
+
}
|
631
|
+
},
|
632
|
+
"publishedVersion": 1,
|
633
|
+
"version": 2,
|
634
|
+
"updatedAt": "2014-08-08T12:51:56.596Z",
|
635
|
+
"updatedBy": {
|
636
|
+
"sys": {
|
637
|
+
"type": "Link",
|
638
|
+
"linkType": "User",
|
639
|
+
"id": "0fn5fOWn4WsKFyYla1gI5h"
|
640
|
+
}
|
641
|
+
}
|
642
|
+
}
|
643
|
+
}
|
644
|
+
]
|
645
|
+
}
|
646
|
+
http_version:
|
647
|
+
recorded_at: Tue, 19 Aug 2014 07:14:08 GMT
|
648
|
+
recorded_with: VCR 2.9.2
|