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,279 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.contentful.com/spaces/bfsvtul0c41g/locales/0ywTmGkjR0YhmbYaSmV1CS
|
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 13:10:17 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/vnd.contentful.management.v1+json
|
31
|
+
Content-Length:
|
32
|
+
- '698'
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Status:
|
36
|
+
- 200 OK
|
37
|
+
X-Contentful-Request-Id:
|
38
|
+
- 85f-1214636521
|
39
|
+
Etag:
|
40
|
+
- '"45709e67e0ddcb9dd587c04cc8bb647e"'
|
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":"Locale",
|
61
|
+
"id":"0ywTmGkjR0YhmbYaSmV1CS",
|
62
|
+
"version":3,
|
63
|
+
"space":{
|
64
|
+
"sys":{
|
65
|
+
"type":"Link",
|
66
|
+
"linkType":"Space",
|
67
|
+
"id":"bfsvtul0c41g"
|
68
|
+
}
|
69
|
+
},
|
70
|
+
"createdBy":{
|
71
|
+
"sys":{
|
72
|
+
"type":"Link",
|
73
|
+
"linkType":"User",
|
74
|
+
"id":"1E7acJL8I5XUXAMHQt9Grs"
|
75
|
+
}
|
76
|
+
},
|
77
|
+
"createdAt":"2014-08-18T06:51:57Z",
|
78
|
+
"updatedBy":{
|
79
|
+
"sys":{
|
80
|
+
"type":"Link",
|
81
|
+
"linkType":"User",
|
82
|
+
"id":"1E7acJL8I5XUXAMHQt9Grs"
|
83
|
+
}
|
84
|
+
},
|
85
|
+
"updatedAt":"2014-08-19T13:00:19Z"
|
86
|
+
},
|
87
|
+
"name":"Polish PL",
|
88
|
+
"code":"pl-PL",
|
89
|
+
"default":false,
|
90
|
+
"contentManagementApi":true,
|
91
|
+
"publish":true,
|
92
|
+
"contentDeliveryApi":true}
|
93
|
+
http_version:
|
94
|
+
recorded_at: Tue, 19 Aug 2014 13:10:10 GMT
|
95
|
+
- request:
|
96
|
+
method: get
|
97
|
+
uri: https://api.contentful.com/spaces/bfsvtul0c41g/locales/0ywTmGkjR0YhmbYaSmV1CS
|
98
|
+
body:
|
99
|
+
encoding: US-ASCII
|
100
|
+
string: ''
|
101
|
+
headers:
|
102
|
+
User-Agent:
|
103
|
+
- RubyContenfulManagementGem/0.0.2
|
104
|
+
Authorization:
|
105
|
+
- Bearer <ACCESS_TOKEN>
|
106
|
+
Content-Type:
|
107
|
+
- application/vnd.contentful.management.v1+json
|
108
|
+
Content-Length:
|
109
|
+
- '0'
|
110
|
+
Host:
|
111
|
+
- api.contentful.com
|
112
|
+
response:
|
113
|
+
status:
|
114
|
+
code: 200
|
115
|
+
message: OK
|
116
|
+
headers:
|
117
|
+
Server:
|
118
|
+
- nginx
|
119
|
+
Date:
|
120
|
+
- Tue, 19 Aug 2014 13:10:18 GMT
|
121
|
+
Content-Type:
|
122
|
+
- application/vnd.contentful.management.v1+json
|
123
|
+
Content-Length:
|
124
|
+
- '698'
|
125
|
+
Connection:
|
126
|
+
- keep-alive
|
127
|
+
Status:
|
128
|
+
- 200 OK
|
129
|
+
X-Contentful-Request-Id:
|
130
|
+
- 85f-1214636526
|
131
|
+
Etag:
|
132
|
+
- '"45709e67e0ddcb9dd587c04cc8bb647e"'
|
133
|
+
Accept-Ranges:
|
134
|
+
- bytes
|
135
|
+
Cache-Control:
|
136
|
+
- max-age=0
|
137
|
+
Access-Control-Allow-Origin:
|
138
|
+
- "*"
|
139
|
+
Access-Control-Allow-Headers:
|
140
|
+
- 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
|
141
|
+
Access-Control-Allow-Methods:
|
142
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
143
|
+
"^access-Control-Expose-Headers":
|
144
|
+
- Etag
|
145
|
+
Access-Control-Max-Age:
|
146
|
+
- '1728000'
|
147
|
+
body:
|
148
|
+
encoding: UTF-8
|
149
|
+
string: |
|
150
|
+
{
|
151
|
+
"sys":{
|
152
|
+
"type":"Locale",
|
153
|
+
"id":"0ywTmGkjR0YhmbYaSmV1CS",
|
154
|
+
"version":3,
|
155
|
+
"space":{
|
156
|
+
"sys":{
|
157
|
+
"type":"Link",
|
158
|
+
"linkType":"Space",
|
159
|
+
"id":"bfsvtul0c41g"
|
160
|
+
}
|
161
|
+
},
|
162
|
+
"createdBy":{
|
163
|
+
"sys":{
|
164
|
+
"type":"Link",
|
165
|
+
"linkType":"User",
|
166
|
+
"id":"1E7acJL8I5XUXAMHQt9Grs"
|
167
|
+
}
|
168
|
+
},
|
169
|
+
"createdAt":"2014-08-18T06:51:57Z",
|
170
|
+
"updatedBy":{
|
171
|
+
"sys":{
|
172
|
+
"type":"Link",
|
173
|
+
"linkType":"User",
|
174
|
+
"id":"1E7acJL8I5XUXAMHQt9Grs"
|
175
|
+
}
|
176
|
+
},
|
177
|
+
"updatedAt":"2014-08-19T13:00:19Z"
|
178
|
+
},
|
179
|
+
"name":"Polish PL",
|
180
|
+
"code":"pl-PL",
|
181
|
+
"default":false,
|
182
|
+
"contentManagementApi":true,
|
183
|
+
"publish":true,
|
184
|
+
"contentDeliveryApi":true}
|
185
|
+
http_version:
|
186
|
+
recorded_at: Tue, 19 Aug 2014 13:10:11 GMT
|
187
|
+
- request:
|
188
|
+
method: put
|
189
|
+
uri: https://api.contentful.com/spaces/bfsvtul0c41g/locales/0ywTmGkjR0YhmbYaSmV1CS
|
190
|
+
body:
|
191
|
+
encoding: UTF-8
|
192
|
+
string: '{"name":"Polish PL"}'
|
193
|
+
headers:
|
194
|
+
User-Agent:
|
195
|
+
- RubyContenfulManagementGem/0.0.2
|
196
|
+
Authorization:
|
197
|
+
- Bearer <ACCESS_TOKEN>
|
198
|
+
Content-Type:
|
199
|
+
- application/vnd.contentful.management.v1+json
|
200
|
+
X-Contentful-Version:
|
201
|
+
- '3'
|
202
|
+
Host:
|
203
|
+
- api.contentful.com
|
204
|
+
response:
|
205
|
+
status:
|
206
|
+
code: 200
|
207
|
+
message: OK
|
208
|
+
headers:
|
209
|
+
Server:
|
210
|
+
- nginx
|
211
|
+
Date:
|
212
|
+
- Tue, 19 Aug 2014 13:10:19 GMT
|
213
|
+
Content-Type:
|
214
|
+
- application/vnd.contentful.management.v1+json
|
215
|
+
Content-Length:
|
216
|
+
- '698'
|
217
|
+
Connection:
|
218
|
+
- keep-alive
|
219
|
+
Status:
|
220
|
+
- 200 OK
|
221
|
+
X-Contentful-Request-Id:
|
222
|
+
- 85f-1214636535
|
223
|
+
Etag:
|
224
|
+
- '"45709e67e0ddcb9dd587c04cc8bb647e"'
|
225
|
+
Accept-Ranges:
|
226
|
+
- bytes
|
227
|
+
Cache-Control:
|
228
|
+
- max-age=0
|
229
|
+
Access-Control-Allow-Origin:
|
230
|
+
- "*"
|
231
|
+
Access-Control-Allow-Headers:
|
232
|
+
- 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
|
233
|
+
Access-Control-Allow-Methods:
|
234
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
235
|
+
"^access-Control-Expose-Headers":
|
236
|
+
- Etag
|
237
|
+
Access-Control-Max-Age:
|
238
|
+
- '1728000'
|
239
|
+
body:
|
240
|
+
encoding: UTF-8
|
241
|
+
string: |
|
242
|
+
{
|
243
|
+
"sys":{
|
244
|
+
"type":"Locale",
|
245
|
+
"id":"0ywTmGkjR0YhmbYaSmV1CS",
|
246
|
+
"version":3,
|
247
|
+
"space":{
|
248
|
+
"sys":{
|
249
|
+
"type":"Link",
|
250
|
+
"linkType":"Space",
|
251
|
+
"id":"bfsvtul0c41g"
|
252
|
+
}
|
253
|
+
},
|
254
|
+
"createdBy":{
|
255
|
+
"sys":{
|
256
|
+
"type":"Link",
|
257
|
+
"linkType":"User",
|
258
|
+
"id":"1E7acJL8I5XUXAMHQt9Grs"
|
259
|
+
}
|
260
|
+
},
|
261
|
+
"createdAt":"2014-08-18T06:51:57Z",
|
262
|
+
"updatedBy":{
|
263
|
+
"sys":{
|
264
|
+
"type":"Link",
|
265
|
+
"linkType":"User",
|
266
|
+
"id":"1E7acJL8I5XUXAMHQt9Grs"
|
267
|
+
}
|
268
|
+
},
|
269
|
+
"updatedAt":"2014-08-19T13:00:19Z"
|
270
|
+
},
|
271
|
+
"name":"Polish PL",
|
272
|
+
"code":"pl-PL",
|
273
|
+
"default":false,
|
274
|
+
"contentManagementApi":true,
|
275
|
+
"publish":true,
|
276
|
+
"contentDeliveryApi":true}
|
277
|
+
http_version:
|
278
|
+
recorded_at: Tue, 19 Aug 2014 13:10:12 GMT
|
279
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,355 @@
|
|
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
|
+
- Mon, 18 Aug 2014 10:30: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-1336821923
|
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: Mon, 18 Aug 2014 10:30:17 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
|
+
- Mon, 18 Aug 2014 10:30:15 GMT
|
109
|
+
Content-Type:
|
110
|
+
- application/vnd.contentful.management.v1+json
|
111
|
+
Content-Length:
|
112
|
+
- '3803'
|
113
|
+
Connection:
|
114
|
+
- keep-alive
|
115
|
+
X-Powered-By:
|
116
|
+
- Express
|
117
|
+
Cf-Space-Id:
|
118
|
+
- bfsvtul0c41g
|
119
|
+
Etag:
|
120
|
+
- '"f8683c81df6a0f04b760d45a4691c0d1"'
|
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
|
+
"displayField": "post_title",
|
144
|
+
"name": "Post",
|
145
|
+
"description": "",
|
146
|
+
"fields": [
|
147
|
+
{
|
148
|
+
"id": "post_title",
|
149
|
+
"name": "Title",
|
150
|
+
"type": "Text",
|
151
|
+
"localized": true,
|
152
|
+
"uiid": "4c2845dis5c"
|
153
|
+
},
|
154
|
+
{
|
155
|
+
"id": "post_author",
|
156
|
+
"name": "Author",
|
157
|
+
"type": "Text",
|
158
|
+
"localized": true,
|
159
|
+
"uiid": "33civwoz2m8"
|
160
|
+
},
|
161
|
+
{
|
162
|
+
"id": "post_body",
|
163
|
+
"name": "Body",
|
164
|
+
"type": "Text",
|
165
|
+
"localized": true,
|
166
|
+
"uiid": "4j1mezqb11c"
|
167
|
+
},
|
168
|
+
{
|
169
|
+
"id": "post_title_image",
|
170
|
+
"name": "Title Image",
|
171
|
+
"type": "Link",
|
172
|
+
"linkType": "Asset",
|
173
|
+
"required": true,
|
174
|
+
"localized": true,
|
175
|
+
"uiid": "2kxgld064g0"
|
176
|
+
},
|
177
|
+
{
|
178
|
+
"id": "post_second_image",
|
179
|
+
"name": "Second Image",
|
180
|
+
"type": "Link",
|
181
|
+
"linkType": "Asset",
|
182
|
+
"localized": true,
|
183
|
+
"uiid": "4enlmvd4ow0"
|
184
|
+
},
|
185
|
+
{
|
186
|
+
"id": "post_category_id",
|
187
|
+
"name": "Category",
|
188
|
+
"type": "Link",
|
189
|
+
"linkType": "Entry",
|
190
|
+
"uiid": "3nqbmf37k00"
|
191
|
+
}
|
192
|
+
],
|
193
|
+
"sys": {
|
194
|
+
"id": "post_content_type",
|
195
|
+
"type": "ContentType",
|
196
|
+
"createdAt": "2014-08-18T06:52:03.545Z",
|
197
|
+
"createdBy": {
|
198
|
+
"sys": {
|
199
|
+
"type": "Link",
|
200
|
+
"linkType": "User",
|
201
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
202
|
+
}
|
203
|
+
},
|
204
|
+
"space": {
|
205
|
+
"sys": {
|
206
|
+
"type": "Link",
|
207
|
+
"linkType": "Space",
|
208
|
+
"id": "bfsvtul0c41g"
|
209
|
+
}
|
210
|
+
},
|
211
|
+
"firstPublishedAt": "2014-08-18T06:52:10.462Z",
|
212
|
+
"publishedCounter": 1,
|
213
|
+
"publishedAt": "2014-08-18T06:52:10.462Z",
|
214
|
+
"publishedBy": {
|
215
|
+
"sys": {
|
216
|
+
"type": "Link",
|
217
|
+
"linkType": "User",
|
218
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
219
|
+
}
|
220
|
+
},
|
221
|
+
"publishedVersion": 8,
|
222
|
+
"version": 10,
|
223
|
+
"updatedAt": "2014-08-18T06:52:58.404Z",
|
224
|
+
"updatedBy": {
|
225
|
+
"sys": {
|
226
|
+
"type": "Link",
|
227
|
+
"linkType": "User",
|
228
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
229
|
+
}
|
230
|
+
}
|
231
|
+
}
|
232
|
+
},
|
233
|
+
{
|
234
|
+
"displayField": "name",
|
235
|
+
"name": "Category",
|
236
|
+
"description": "",
|
237
|
+
"fields": [
|
238
|
+
{
|
239
|
+
"id": "name",
|
240
|
+
"name": "Name",
|
241
|
+
"type": "Text",
|
242
|
+
"localized": true
|
243
|
+
},
|
244
|
+
{
|
245
|
+
"id": "description",
|
246
|
+
"name": "Description",
|
247
|
+
"type": "Text",
|
248
|
+
"localized": true
|
249
|
+
}
|
250
|
+
],
|
251
|
+
"sys": {
|
252
|
+
"id": "category_content_type",
|
253
|
+
"type": "ContentType",
|
254
|
+
"createdAt": "2014-08-18T06:51:59.560Z",
|
255
|
+
"createdBy": {
|
256
|
+
"sys": {
|
257
|
+
"type": "Link",
|
258
|
+
"linkType": "User",
|
259
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
260
|
+
}
|
261
|
+
},
|
262
|
+
"space": {
|
263
|
+
"sys": {
|
264
|
+
"type": "Link",
|
265
|
+
"linkType": "Space",
|
266
|
+
"id": "bfsvtul0c41g"
|
267
|
+
}
|
268
|
+
},
|
269
|
+
"firstPublishedAt": "2014-08-18T06:52:02.517Z",
|
270
|
+
"publishedCounter": 1,
|
271
|
+
"publishedAt": "2014-08-18T06:52:02.517Z",
|
272
|
+
"publishedBy": {
|
273
|
+
"sys": {
|
274
|
+
"type": "Link",
|
275
|
+
"linkType": "User",
|
276
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
277
|
+
}
|
278
|
+
},
|
279
|
+
"publishedVersion": 4,
|
280
|
+
"version": 5,
|
281
|
+
"updatedAt": "2014-08-18T06:52:02.524Z",
|
282
|
+
"updatedBy": {
|
283
|
+
"sys": {
|
284
|
+
"type": "Link",
|
285
|
+
"linkType": "User",
|
286
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
287
|
+
}
|
288
|
+
}
|
289
|
+
}
|
290
|
+
}
|
291
|
+
]
|
292
|
+
}
|
293
|
+
http_version:
|
294
|
+
recorded_at: Mon, 18 Aug 2014 10:30:17 GMT
|
295
|
+
- request:
|
296
|
+
method: get
|
297
|
+
uri: https://api.contentful.com/spaces/bfsvtul0c41g/assets?limit=5&skip=3
|
298
|
+
body:
|
299
|
+
encoding: US-ASCII
|
300
|
+
string: ''
|
301
|
+
headers:
|
302
|
+
User-Agent:
|
303
|
+
- RubyContenfulManagementGem/0.0.2
|
304
|
+
Authorization:
|
305
|
+
- Bearer <ACCESS_TOKEN>
|
306
|
+
Content-Type:
|
307
|
+
- application/vnd.contentful.management.v1+json
|
308
|
+
Host:
|
309
|
+
- api.contentful.com
|
310
|
+
response:
|
311
|
+
status:
|
312
|
+
code: 200
|
313
|
+
message: OK
|
314
|
+
headers:
|
315
|
+
Server:
|
316
|
+
- nginx
|
317
|
+
Date:
|
318
|
+
- Mon, 18 Aug 2014 10:30:15 GMT
|
319
|
+
Content-Type:
|
320
|
+
- application/vnd.contentful.management.v1+json
|
321
|
+
Content-Length:
|
322
|
+
- '95'
|
323
|
+
Connection:
|
324
|
+
- keep-alive
|
325
|
+
X-Powered-By:
|
326
|
+
- Express
|
327
|
+
Cf-Space-Id:
|
328
|
+
- bfsvtul0c41g
|
329
|
+
Etag:
|
330
|
+
- '"28d589b05909ca06cec8e4b423d52dc2"'
|
331
|
+
Access-Control-Allow-Origin:
|
332
|
+
- "*"
|
333
|
+
Access-Control-Allow-Headers:
|
334
|
+
- 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
|
335
|
+
Access-Control-Allow-Methods:
|
336
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
337
|
+
"^access-Control-Expose-Headers":
|
338
|
+
- Etag
|
339
|
+
Access-Control-Max-Age:
|
340
|
+
- '1728000'
|
341
|
+
body:
|
342
|
+
encoding: UTF-8
|
343
|
+
string: |
|
344
|
+
{
|
345
|
+
"sys": {
|
346
|
+
"type": "Array"
|
347
|
+
},
|
348
|
+
"total": 1,
|
349
|
+
"skip": 3,
|
350
|
+
"limit": 5,
|
351
|
+
"items": []
|
352
|
+
}
|
353
|
+
http_version:
|
354
|
+
recorded_at: Mon, 18 Aug 2014 10:30:18 GMT
|
355
|
+
recorded_with: VCR 2.9.2
|