contentful-management 0.0.1.pre → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. data/CHANGELOG.md +8 -0
  2. data/LICENSE.txt +17 -18
  3. data/README.md +10 -19
  4. data/examples/blog.rb +2 -0
  5. data/examples/create_space.rb +1 -1
  6. data/lib/contentful/management.rb +0 -8
  7. data/lib/contentful/management/asset.rb +41 -38
  8. data/lib/contentful/management/client.rb +8 -1
  9. data/lib/contentful/management/content_type.rb +44 -6
  10. data/lib/contentful/management/entry.rb +61 -29
  11. data/lib/contentful/management/field.rb +1 -1
  12. data/lib/contentful/management/file.rb +1 -0
  13. data/lib/contentful/management/link.rb +1 -1
  14. data/lib/contentful/management/locale.rb +24 -8
  15. data/lib/contentful/management/location.rb +1 -1
  16. data/lib/contentful/management/resource/asset_fields.rb +17 -0
  17. data/lib/contentful/management/resource/entry_fields.rb +13 -0
  18. data/lib/contentful/management/resource/fields.rb +1 -0
  19. data/lib/contentful/management/resource_builder.rb +0 -1
  20. data/lib/contentful/management/space.rb +38 -10
  21. data/lib/contentful/management/support.rb +3 -1
  22. data/lib/contentful/management/version.rb +1 -1
  23. data/spec/fixtures/vcr_cassettes/asset/publish_after_create.yml +268 -0
  24. data/spec/fixtures/vcr_cassettes/content_type/entry/all.yml +777 -0
  25. data/spec/fixtures/vcr_cassettes/entry/content_type_entires.yml +156 -0
  26. data/spec/fixtures/vcr_cassettes/entry/create_with_custom_id.yml +287 -0
  27. data/spec/fixtures/vcr_cassettes/space/{asset/assets.yml → entry/content_type_entires.yml} +369 -367
  28. data/spec/lib/contentful/management/asset_spec.rb +32 -23
  29. data/spec/lib/contentful/management/content_type_spec.rb +31 -6
  30. data/spec/lib/contentful/management/entry_spec.rb +21 -3
  31. data/spec/lib/contentful/management/space_spec.rb +26 -37
  32. metadata +22 -17
  33. data/spec/fixtures/vcr_cassettes/asset/image_url.yml +0 -133
  34. data/spec/fixtures/vcr_cassettes/space/content_type/content_types.yml +0 -341
  35. data/spec/fixtures/vcr_cassettes/space/entry/entries.yml +0 -498
  36. data/spec/fixtures/vcr_cassettes/space/locale/locales.yml +0 -480
@@ -0,0 +1,156 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.contentful.com/spaces/9lxkhjnp8gyx/entries?content_type=category_content_type
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - RubyContenfulManagementGem/0.0.1.pre
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
+ - Wed, 13 Aug 2014 08:30:04 GMT
29
+ Content-Type:
30
+ - application/vnd.contentful.management.v1+json
31
+ Content-Length:
32
+ - '2176'
33
+ Connection:
34
+ - keep-alive
35
+ X-Powered-By:
36
+ - Express
37
+ Cf-Space-Id:
38
+ - 9lxkhjnp8gyx
39
+ Etag:
40
+ - '"971ee4a299e08e65093824445f32ad78"'
41
+ Access-Control-Allow-Origin:
42
+ - "*"
43
+ Access-Control-Allow-Headers:
44
+ - 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
45
+ Access-Control-Allow-Methods:
46
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
47
+ "^access-Control-Expose-Headers":
48
+ - Etag
49
+ Access-Control-Max-Age:
50
+ - '1728000'
51
+ body:
52
+ encoding: UTF-8
53
+ string: |
54
+ {
55
+ "sys": {
56
+ "type": "Array"
57
+ },
58
+ "total": 2,
59
+ "skip": 0,
60
+ "limit": 100,
61
+ "items": [
62
+ {
63
+ "fields": {
64
+ "name": {
65
+ "en-US": "Sport"
66
+ },
67
+ "description": {
68
+ "en-US": "Sport category"
69
+ }
70
+ },
71
+ "sys": {
72
+ "id": "1CpB2YkA5q0aMywe0wmCCQ",
73
+ "type": "Entry",
74
+ "createdAt": "2014-08-13T07:08:52.842Z",
75
+ "createdBy": {
76
+ "sys": {
77
+ "type": "Link",
78
+ "linkType": "User",
79
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
80
+ }
81
+ },
82
+ "space": {
83
+ "sys": {
84
+ "type": "Link",
85
+ "linkType": "Space",
86
+ "id": "9lxkhjnp8gyx"
87
+ }
88
+ },
89
+ "contentType": {
90
+ "sys": {
91
+ "type": "Link",
92
+ "linkType": "ContentType",
93
+ "id": "category_content_type"
94
+ }
95
+ },
96
+ "version": 1,
97
+ "updatedAt": "2014-08-13T07:08:52.850Z",
98
+ "updatedBy": {
99
+ "sys": {
100
+ "type": "Link",
101
+ "linkType": "User",
102
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
103
+ }
104
+ }
105
+ }
106
+ },
107
+ {
108
+ "fields": {
109
+ "name": {
110
+ "en-US": "Categoru"
111
+ },
112
+ "description": {
113
+ "en-US": "asdasd"
114
+ }
115
+ },
116
+ "sys": {
117
+ "id": "3B7dW2mpO8SqOGaUs8kGCq",
118
+ "type": "Entry",
119
+ "createdAt": "2014-08-13T07:34:34.456Z",
120
+ "createdBy": {
121
+ "sys": {
122
+ "type": "Link",
123
+ "linkType": "User",
124
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
125
+ }
126
+ },
127
+ "space": {
128
+ "sys": {
129
+ "type": "Link",
130
+ "linkType": "Space",
131
+ "id": "9lxkhjnp8gyx"
132
+ }
133
+ },
134
+ "contentType": {
135
+ "sys": {
136
+ "type": "Link",
137
+ "linkType": "ContentType",
138
+ "id": "category_content_type"
139
+ }
140
+ },
141
+ "version": 1,
142
+ "updatedAt": "2014-08-13T07:34:34.459Z",
143
+ "updatedBy": {
144
+ "sys": {
145
+ "type": "Link",
146
+ "linkType": "User",
147
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
148
+ }
149
+ }
150
+ }
151
+ }
152
+ ]
153
+ }
154
+ http_version:
155
+ recorded_at: Wed, 13 Aug 2014 08:30:05 GMT
156
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,287 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.contentful.com/spaces/yr5m0jky5hsh/content_types/5DSpuKrl04eMAGQoQckeIq
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - RubyContenfulManagementGem/0.0.1.pre
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
+ - Wed, 06 Aug 2014 13:13:39 GMT
29
+ Content-Type:
30
+ - application/vnd.contentful.management.v1+json
31
+ Content-Length:
32
+ - '2694'
33
+ Connection:
34
+ - keep-alive
35
+ X-Powered-By:
36
+ - Express
37
+ Cf-Space-Id:
38
+ - yr5m0jky5hsh
39
+ Etag:
40
+ - '"0d232e3ca0d9eea2582d69148be0df3b"'
41
+ Access-Control-Allow-Origin:
42
+ - "*"
43
+ Access-Control-Allow-Headers:
44
+ - 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
45
+ Access-Control-Allow-Methods:
46
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
47
+ "^access-Control-Expose-Headers":
48
+ - Etag
49
+ Access-Control-Max-Age:
50
+ - '1728000'
51
+ body:
52
+ encoding: UTF-8
53
+ string: |
54
+ {
55
+ "name": "Author",
56
+ "description": "Author content",
57
+ "fields": [
58
+ {
59
+ "id": "name",
60
+ "name": "name",
61
+ "type": "Text",
62
+ "localized": true,
63
+ "uiid": "3jp09h4ba4g"
64
+ },
65
+ {
66
+ "id": "age",
67
+ "name": "age",
68
+ "type": "Integer",
69
+ "localized": true,
70
+ "uiid": "43my1e8ybr4"
71
+ },
72
+ {
73
+ "id": "city",
74
+ "name": "city",
75
+ "type": "Location",
76
+ "uiid": "45uoowshekg"
77
+ },
78
+ {
79
+ "id": "assets",
80
+ "name": "assets",
81
+ "type": "Array",
82
+ "items": {
83
+ "type": "Link",
84
+ "linkType": "Asset"
85
+ },
86
+ "localized": true,
87
+ "uiid": "4p8d3di8b28"
88
+ },
89
+ {
90
+ "id": "entries",
91
+ "name": "entries",
92
+ "type": "Array",
93
+ "items": {
94
+ "type": "Link",
95
+ "linkType": "Entry"
96
+ },
97
+ "uiid": "4t2r2mpmwow"
98
+ },
99
+ {
100
+ "id": "entry",
101
+ "name": "entry",
102
+ "type": "Link",
103
+ "linkType": "Entry",
104
+ "uiid": "2u2x6csxtkw"
105
+ },
106
+ {
107
+ "id": "asset",
108
+ "name": "asset",
109
+ "type": "Link",
110
+ "linkType": "Asset",
111
+ "uiid": "3pktxccvjeo"
112
+ },
113
+ {
114
+ "id": "bool",
115
+ "name": "bool",
116
+ "type": "Boolean",
117
+ "localized": true,
118
+ "uiid": "4p882yc9728"
119
+ },
120
+ {
121
+ "id": "symbols",
122
+ "name": "symbols",
123
+ "type": "Array",
124
+ "items": {
125
+ "type": "Symbol"
126
+ },
127
+ "uiid": "2mcqj4tdczk"
128
+ },
129
+ {
130
+ "id": "birthday",
131
+ "name": "birthday",
132
+ "type": "Date",
133
+ "uiid": "3h1dkdm8we8"
134
+ },
135
+ {
136
+ "id": "symbol",
137
+ "name": "Symbol",
138
+ "type": "Symbol",
139
+ "required": true,
140
+ "localized": true,
141
+ "uiid": "30rwyn42a68"
142
+ },
143
+ {
144
+ "id": "eye_color",
145
+ "name": "Eyes color",
146
+ "type": "Text",
147
+ "uiid": "46h9q3btwcg"
148
+ }
149
+ ],
150
+ "sys": {
151
+ "id": "5DSpuKrl04eMAGQoQckeIq",
152
+ "type": "ContentType",
153
+ "createdAt": "2014-07-30T12:35:01.110Z",
154
+ "createdBy": {
155
+ "sys": {
156
+ "type": "Link",
157
+ "linkType": "User",
158
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
159
+ }
160
+ },
161
+ "space": {
162
+ "sys": {
163
+ "type": "Link",
164
+ "linkType": "Space",
165
+ "id": "yr5m0jky5hsh"
166
+ }
167
+ },
168
+ "firstPublishedAt": "2014-07-30T12:37:42.035Z",
169
+ "publishedCounter": 9,
170
+ "publishedAt": "2014-07-31T10:21:36.870Z",
171
+ "publishedBy": {
172
+ "sys": {
173
+ "type": "Link",
174
+ "linkType": "User",
175
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
176
+ }
177
+ },
178
+ "publishedVersion": 206,
179
+ "version": 213,
180
+ "updatedAt": "2014-07-31T13:23:46.624Z",
181
+ "updatedBy": {
182
+ "sys": {
183
+ "type": "Link",
184
+ "linkType": "User",
185
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
186
+ }
187
+ }
188
+ }
189
+ }
190
+ http_version:
191
+ recorded_at: Wed, 06 Aug 2014 13:13:40 GMT
192
+ - request:
193
+ method: put
194
+ uri: https://api.contentful.com/spaces/yr5m0jky5hsh/entries/custom_id
195
+ body:
196
+ encoding: UTF-8
197
+ string: '{"fields":{"name":{"en-US":"Custom Id"}}}'
198
+ headers:
199
+ User-Agent:
200
+ - RubyContenfulManagementGem/0.0.1.pre
201
+ Authorization:
202
+ - Bearer a36504c8b5e0ef7172c313961a2359bf06bb8485a0253beeb6fa389cc781d468
203
+ Content-Type:
204
+ - application/vnd.contentful.management.v1+json
205
+ X-Contentful-Content-Type:
206
+ - 5DSpuKrl04eMAGQoQckeIq
207
+ Host:
208
+ - api.contentful.com
209
+ response:
210
+ status:
211
+ code: 201
212
+ message: Created
213
+ headers:
214
+ Server:
215
+ - nginx
216
+ Date:
217
+ - Wed, 06 Aug 2014 13:13:40 GMT
218
+ Content-Type:
219
+ - application/vnd.contentful.management.v1+json
220
+ Content-Length:
221
+ - '792'
222
+ Connection:
223
+ - keep-alive
224
+ X-Powered-By:
225
+ - Express
226
+ Cf-Space-Id:
227
+ - yr5m0jky5hsh
228
+ Etag:
229
+ - '"0a482b5175949e777c6b7ccfea067b08"'
230
+ Access-Control-Allow-Origin:
231
+ - "*"
232
+ Access-Control-Allow-Headers:
233
+ - 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
234
+ Access-Control-Allow-Methods:
235
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
236
+ "^access-Control-Expose-Headers":
237
+ - Etag
238
+ Access-Control-Max-Age:
239
+ - '1728000'
240
+ body:
241
+ encoding: UTF-8
242
+ string: |
243
+ {
244
+ "fields": {
245
+ "name": {
246
+ "en-US": "Custom Id"
247
+ }
248
+ },
249
+ "sys": {
250
+ "id": "custom_id",
251
+ "type": "Entry",
252
+ "version": 1,
253
+ "createdAt": "2014-08-06T13:13:40.788Z",
254
+ "createdBy": {
255
+ "sys": {
256
+ "type": "Link",
257
+ "linkType": "User",
258
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
259
+ }
260
+ },
261
+ "space": {
262
+ "sys": {
263
+ "type": "Link",
264
+ "linkType": "Space",
265
+ "id": "yr5m0jky5hsh"
266
+ }
267
+ },
268
+ "contentType": {
269
+ "sys": {
270
+ "type": "Link",
271
+ "linkType": "ContentType",
272
+ "id": "5DSpuKrl04eMAGQoQckeIq"
273
+ }
274
+ },
275
+ "updatedAt": "2014-08-06T13:13:40.788Z",
276
+ "updatedBy": {
277
+ "sys": {
278
+ "type": "Link",
279
+ "linkType": "User",
280
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
281
+ }
282
+ }
283
+ }
284
+ }
285
+ http_version:
286
+ recorded_at: Wed, 06 Aug 2014 13:13:41 GMT
287
+ recorded_with: VCR 2.9.2
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.contentful.com/spaces/yr5m0jky5hsh
5
+ uri: https://api.contentful.com/spaces/9lxkhjnp8gyx
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
10
  User-Agent:
11
- - RubyContenfulManagementGem/0.0.1
11
+ - RubyContenfulManagementGem/0.0.1.pre
12
12
  Authorization:
13
13
  - Bearer <ACCESS_TOKEN>
14
14
  Content-Type:
@@ -25,19 +25,19 @@ http_interactions:
25
25
  Server:
26
26
  - nginx
27
27
  Date:
28
- - Thu, 31 Jul 2014 07:16:56 GMT
28
+ - Wed, 13 Aug 2014 08:54:18 GMT
29
29
  Content-Type:
30
30
  - application/vnd.contentful.management.v1+json
31
31
  Content-Length:
32
- - '452'
32
+ - '459'
33
33
  Connection:
34
34
  - keep-alive
35
35
  Status:
36
36
  - 200 OK
37
37
  X-Contentful-Request-Id:
38
- - 85f-1334431741
38
+ - 85f-1336095002
39
39
  Etag:
40
- - '"9e4bd8a9797b7a8406a09df0926660eb"'
40
+ - '"3335d4851d21bcde70cfc6d843291e65"'
41
41
  Accept-Ranges:
42
42
  - bytes
43
43
  Cache-Control:
@@ -58,16 +58,16 @@ http_interactions:
58
58
  {
59
59
  "sys":{
60
60
  "type":"Space",
61
- "id":"yr5m0jky5hsh",
62
- "version":9,
61
+ "id":"9lxkhjnp8gyx",
62
+ "version":1,
63
63
  "createdBy":{
64
64
  "sys":{
65
65
  "type":"Link",
66
66
  "linkType":"User",
67
- "id":"0fn5fOWn4WsKFyYla1gI5h"
67
+ "id":"1E7acJL8I5XUXAMHQt9Grs"
68
68
  }
69
69
  },
70
- "createdAt":"2014-07-30T07:46:19Z",
70
+ "createdAt":"2014-08-13T07:08:06Z",
71
71
  "updatedBy":{
72
72
  "sys":{
73
73
  "type":"Link",
@@ -75,20 +75,20 @@ http_interactions:
75
75
  "id":"1E7acJL8I5XUXAMHQt9Grs"
76
76
  }
77
77
  },
78
- "updatedAt":"2014-07-31T07:14:48Z"
78
+ "updatedAt":"2014-08-13T07:08:06Z"
79
79
  },
80
- "name":"SaveNewName"}
80
+ "name":"CMA_demo_rails_app"}
81
81
  http_version:
82
- recorded_at: Thu, 31 Jul 2014 07:16:56 GMT
82
+ recorded_at: Wed, 13 Aug 2014 08:54:19 GMT
83
83
  - request:
84
84
  method: get
85
- uri: https://api.contentful.com/spaces/yr5m0jky5hsh/content_types
85
+ uri: https://api.contentful.com/spaces/9lxkhjnp8gyx/content_types
86
86
  body:
87
87
  encoding: US-ASCII
88
88
  string: ''
89
89
  headers:
90
90
  User-Agent:
91
- - RubyContenfulManagementGem/0.0.1
91
+ - RubyContenfulManagementGem/0.0.1.pre
92
92
  Authorization:
93
93
  - Bearer <ACCESS_TOKEN>
94
94
  Content-Type:
@@ -105,19 +105,19 @@ http_interactions:
105
105
  Server:
106
106
  - nginx
107
107
  Date:
108
- - Thu, 31 Jul 2014 07:16:57 GMT
108
+ - Wed, 13 Aug 2014 08:54:18 GMT
109
109
  Content-Type:
110
110
  - application/vnd.contentful.management.v1+json
111
111
  Content-Length:
112
- - '3054'
112
+ - '3870'
113
113
  Connection:
114
114
  - keep-alive
115
115
  X-Powered-By:
116
116
  - Express
117
117
  Cf-Space-Id:
118
- - yr5m0jky5hsh
118
+ - 9lxkhjnp8gyx
119
119
  Etag:
120
- - '"4c43b6e34924f7e65971295370191384"'
120
+ - '"31999bb67dbf27f847e801b118cc0f65"'
121
121
  Access-Control-Allow-Origin:
122
122
  - "*"
123
123
  Access-Control-Allow-Headers:
@@ -135,96 +135,124 @@ http_interactions:
135
135
  "sys": {
136
136
  "type": "Array"
137
137
  },
138
- "total": 1,
138
+ "total": 2,
139
139
  "skip": 0,
140
140
  "limit": 100,
141
141
  "items": [
142
142
  {
143
+ "name": "Post",
144
+ "description": "",
143
145
  "fields": [
144
146
  {
145
- "name": "name",
146
- "id": "name",
147
+ "id": "post_title",
148
+ "name": "Title",
147
149
  "type": "Text",
148
- "uiid": "3fflnrplhc0",
149
- "localized": true
150
- },
151
- {
152
- "name": "age",
153
- "id": "age",
154
- "uiid": "2t5blkc7u2o",
155
- "type": "Integer",
156
- "localized": true
150
+ "localized": true,
151
+ "uiid": "3xm829r2znk"
157
152
  },
158
153
  {
159
- "name": "city",
160
- "id": "city",
161
- "type": "Location",
162
- "uiid": "4fzl5jkm1a8",
163
- "localized": false
154
+ "id": "post_author",
155
+ "name": "Author",
156
+ "type": "Text",
157
+ "localized": true,
158
+ "uiid": "33wd7up1xc0"
164
159
  },
165
160
  {
166
- "name": "assets",
167
- "id": "assets",
168
- "uiid": "3aqrgdyesxs",
169
- "type": "Array",
170
- "items": {
171
- "type": "Link",
172
- "linkType": "Asset"
173
- },
174
- "localized": true
161
+ "id": "post_body",
162
+ "name": "Body",
163
+ "type": "Text",
164
+ "localized": true,
165
+ "uiid": "350kwutvny8"
175
166
  },
176
167
  {
177
- "name": "entries",
178
- "id": "entries",
179
- "type": "Array",
180
- "uiid": "3xi486kbchs",
181
- "items": {
182
- "type": "Link",
183
- "linkType": "Entry"
184
- }
168
+ "id": "post_title_image",
169
+ "name": "Title Image",
170
+ "type": "Link",
171
+ "linkType": "Asset",
172
+ "required": true,
173
+ "localized": true,
174
+ "uiid": "2zd0n27rx8g"
185
175
  },
186
176
  {
187
- "name": "entry",
188
- "id": "entry",
177
+ "id": "post_second_image",
178
+ "name": "Second Image",
189
179
  "type": "Link",
190
- "uiid": "3uxjdd1n5ds",
191
- "linkType": "Entry"
180
+ "linkType": "Asset",
181
+ "localized": true,
182
+ "uiid": "368ajwiokjk"
192
183
  },
193
184
  {
194
- "name": "asset",
195
- "id": "asset",
185
+ "id": "post_category_id",
186
+ "name": "Category",
196
187
  "type": "Link",
197
- "uiid": "40ilp8h1xc0",
198
- "linkType": "Asset"
188
+ "linkType": "Entry",
189
+ "uiid": "3w4whcs9bsw"
190
+ }
191
+ ],
192
+ "sys": {
193
+ "id": "post_content_type",
194
+ "type": "ContentType",
195
+ "createdAt": "2014-08-13T07:08:18.812Z",
196
+ "createdBy": {
197
+ "sys": {
198
+ "type": "Link",
199
+ "linkType": "User",
200
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
201
+ }
199
202
  },
200
- {
201
- "name": "bool",
202
- "id": "bool",
203
- "type": "Boolean",
204
- "uiid": "2i1bgmn2dj4",
205
- "localized": true
203
+ "space": {
204
+ "sys": {
205
+ "type": "Link",
206
+ "linkType": "Space",
207
+ "id": "9lxkhjnp8gyx"
208
+ }
206
209
  },
207
- {
208
- "name": "symbols",
209
- "id": "symbols",
210
- "type": "Array",
211
- "uiid": "38rbncxmzuo",
212
- "items": {
213
- "type": "Symbol"
210
+ "firstPublishedAt": "2014-08-13T07:08:25.593Z",
211
+ "publishedCounter": 2,
212
+ "publishedAt": "2014-08-13T07:19:20.404Z",
213
+ "publishedBy": {
214
+ "sys": {
215
+ "type": "Link",
216
+ "linkType": "User",
217
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
214
218
  }
215
219
  },
220
+ "publishedVersion": 11,
221
+ "version": 12,
222
+ "updatedAt": "2014-08-13T07:19:20.410Z",
223
+ "updatedBy": {
224
+ "sys": {
225
+ "type": "Link",
226
+ "linkType": "User",
227
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
228
+ }
229
+ }
230
+ },
231
+ "displayField": "post_title"
232
+ },
233
+ {
234
+ "name": "Category",
235
+ "description": "",
236
+ "fields": [
237
+ {
238
+ "id": "name",
239
+ "name": "Name",
240
+ "type": "Text",
241
+ "localized": true,
242
+ "uiid": "4mzgm0nbgn4"
243
+ },
216
244
  {
217
- "name": "birthday",
218
- "id": "birthday",
219
- "type": "Date",
220
- "uiid": "41bdwbk06bk"
245
+ "id": "description",
246
+ "name": "Description",
247
+ "type": "Text",
248
+ "localized": true,
249
+ "uiid": "482w81hlb0g"
221
250
  }
222
251
  ],
223
- "name": "Author",
224
252
  "sys": {
225
- "id": "5DSpuKrl04eMAGQoQckeIq",
253
+ "id": "category_content_type",
226
254
  "type": "ContentType",
227
- "createdAt": "2014-07-30T12:35:01.110Z",
255
+ "createdAt": "2014-08-13T07:08:14.318Z",
228
256
  "createdBy": {
229
257
  "sys": {
230
258
  "type": "Link",
@@ -236,12 +264,12 @@ http_interactions:
236
264
  "sys": {
237
265
  "type": "Link",
238
266
  "linkType": "Space",
239
- "id": "yr5m0jky5hsh"
267
+ "id": "9lxkhjnp8gyx"
240
268
  }
241
269
  },
242
- "firstPublishedAt": "2014-07-30T12:37:42.035Z",
243
- "publishedCounter": 6,
244
- "publishedAt": "2014-07-30T14:58:40.786Z",
270
+ "firstPublishedAt": "2014-08-13T07:08:17.219Z",
271
+ "publishedCounter": 2,
272
+ "publishedAt": "2014-08-13T07:19:25.771Z",
245
273
  "publishedBy": {
246
274
  "sys": {
247
275
  "type": "Link",
@@ -249,9 +277,9 @@ http_interactions:
249
277
  "id": "1E7acJL8I5XUXAMHQt9Grs"
250
278
  }
251
279
  },
252
- "publishedVersion": 177,
253
- "version": 178,
254
- "updatedAt": "2014-07-30T14:58:40.796Z",
280
+ "publishedVersion": 7,
281
+ "version": 8,
282
+ "updatedAt": "2014-08-13T07:19:25.778Z",
255
283
  "updatedBy": {
256
284
  "sys": {
257
285
  "type": "Link",
@@ -260,22 +288,21 @@ http_interactions:
260
288
  }
261
289
  }
262
290
  },
263
- "description": null,
264
291
  "displayField": "name"
265
292
  }
266
293
  ]
267
294
  }
268
295
  http_version:
269
- recorded_at: Thu, 31 Jul 2014 07:16:57 GMT
296
+ recorded_at: Wed, 13 Aug 2014 08:54:20 GMT
270
297
  - request:
271
298
  method: get
272
- uri: https://api.contentful.com/spaces/yr5m0jky5hsh/assets
299
+ uri: https://api.contentful.com/spaces/9lxkhjnp8gyx/entries
273
300
  body:
274
301
  encoding: US-ASCII
275
302
  string: ''
276
303
  headers:
277
304
  User-Agent:
278
- - RubyContenfulManagementGem/0.0.1
305
+ - RubyContenfulManagementGem/0.0.1.pre
279
306
  Authorization:
280
307
  - Bearer <ACCESS_TOKEN>
281
308
  Content-Type:
@@ -292,19 +319,19 @@ http_interactions:
292
319
  Server:
293
320
  - nginx
294
321
  Date:
295
- - Thu, 31 Jul 2014 07:16:58 GMT
322
+ - Wed, 13 Aug 2014 08:54:19 GMT
296
323
  Content-Type:
297
324
  - application/vnd.contentful.management.v1+json
298
325
  Content-Length:
299
- - '12428'
326
+ - '7498'
300
327
  Connection:
301
328
  - keep-alive
302
329
  X-Powered-By:
303
330
  - Express
304
331
  Cf-Space-Id:
305
- - yr5m0jky5hsh
332
+ - 9lxkhjnp8gyx
306
333
  Etag:
307
- - '"fda9e99688760bfb9330028bffd6947b"'
334
+ - '"87ae6d5c9041f530b97de174ab31ad59"'
308
335
  Access-Control-Allow-Origin:
309
336
  - "*"
310
337
  Access-Control-Allow-Headers:
@@ -322,37 +349,23 @@ http_interactions:
322
349
  "sys": {
323
350
  "type": "Array"
324
351
  },
325
- "total": 10,
352
+ "total": 5,
326
353
  "skip": 0,
327
354
  "limit": 100,
328
355
  "items": [
329
356
  {
330
357
  "fields": {
331
- "title": {
332
- "en-US": "CodeQuest"
358
+ "name": {
359
+ "en-US": "Sport"
333
360
  },
334
361
  "description": {
335
- "en-US": "Logo of Codequest"
336
- },
337
- "file": {
338
- "en-US": {
339
- "contentType": "image/jpeg",
340
- "fileName": "codequest.jpg",
341
- "details": {
342
- "image": {
343
- "width": 90,
344
- "height": 90
345
- },
346
- "size": 7094
347
- },
348
- "url": "//images.contentful.com/yr5m0jky5hsh/4k8mYw2MzS6kYG0eGq0Yi0/e6cf326343b25955363ef0df00dca63c/codequest.jpg"
349
- }
362
+ "en-US": "Sport category"
350
363
  }
351
364
  },
352
365
  "sys": {
353
- "id": "4k8mYw2MzS6kYG0eGq0Yi0",
354
- "type": "Asset",
355
- "createdAt": "2014-07-30T12:20:17.778Z",
366
+ "id": "1CpB2YkA5q0aMywe0wmCCQ",
367
+ "type": "Entry",
368
+ "createdAt": "2014-08-13T07:08:52.842Z",
356
369
  "createdBy": {
357
370
  "sys": {
358
371
  "type": "Link",
@@ -364,11 +377,18 @@ http_interactions:
364
377
  "sys": {
365
378
  "type": "Link",
366
379
  "linkType": "Space",
367
- "id": "yr5m0jky5hsh"
380
+ "id": "9lxkhjnp8gyx"
368
381
  }
369
382
  },
370
- "version": 2,
371
- "updatedAt": "2014-07-30T12:20:19.237Z",
383
+ "contentType": {
384
+ "sys": {
385
+ "type": "Link",
386
+ "linkType": "ContentType",
387
+ "id": "category_content_type"
388
+ }
389
+ },
390
+ "version": 1,
391
+ "updatedAt": "2014-08-13T07:08:52.850Z",
372
392
  "updatedBy": {
373
393
  "sys": {
374
394
  "type": "Link",
@@ -380,83 +400,47 @@ http_interactions:
380
400
  },
381
401
  {
382
402
  "fields": {
383
- "title": {
384
- "en-US": "Dog photo"
403
+ "post_title": {
404
+ "en-US": "post title"
385
405
  },
386
- "description": {
387
- "en-US": "Photo of Dog"
406
+ "post_author": {
407
+ "en-US": "autorek"
388
408
  },
389
- "file": {
390
- "en-US": {
391
- "fileName": "piesel_tTWRRK8aCP,q250.jpg",
392
- "contentType": "image/jpeg",
393
- "details": {
394
- "image": {
395
- "width": 250,
396
- "height": 250
397
- },
398
- "size": 22083
399
- },
400
- "url": "//images.contentful.com/yr5m0jky5hsh/6zEogZjpO8cq6YOOQigiAw/09037706e5c5e6c2b910f9a4160eb697/piesel_tTWRRK8aCP_q250.jpg"
401
- }
402
- }
403
- },
404
- "sys": {
405
- "id": "6zEogZjpO8cq6YOOQigiAw",
406
- "type": "Asset",
407
- "createdAt": "2014-07-30T12:14:49.380Z",
408
- "createdBy": {
409
- "sys": {
410
- "type": "Link",
411
- "linkType": "User",
412
- "id": "1E7acJL8I5XUXAMHQt9Grs"
413
- }
409
+ "post_body": {
410
+ "en-US": "jakeis body"
414
411
  },
415
- "space": {
416
- "sys": {
417
- "type": "Link",
418
- "linkType": "Space",
419
- "id": "yr5m0jky5hsh"
412
+ "post_title_image": {
413
+ "en-US": {
414
+ "sys": {
415
+ "type": "Link",
416
+ "linkType": "Asset",
417
+ "id": "744H01gJqM8gIECmimayk2"
418
+ }
420
419
  }
421
420
  },
422
- "version": 58,
423
- "updatedAt": "2014-07-30T12:16:37.270Z",
424
- "updatedBy": {
425
- "sys": {
426
- "type": "Link",
427
- "linkType": "User",
428
- "id": "1E7acJL8I5XUXAMHQt9Grs"
421
+ "post_second_image": {
422
+ "en-US": {
423
+ "sys": {
424
+ "type": "Link",
425
+ "linkType": "Asset",
426
+ "id": "70Wy1nAI3SkIim6esyI2YS"
427
+ }
429
428
  }
430
- }
431
- }
432
- },
433
- {
434
- "fields": {
435
- "title": {
436
- "en-US": "titlebyCreateAPI"
437
- },
438
- "description": {
439
- "en-US": "descByAPI"
440
429
  },
441
- "file": {
430
+ "post_category_id": {
442
431
  "en-US": {
443
- "contentType": "image/jpeg",
444
- "fileName": "pic1.jpg",
445
- "details": {
446
- "image": {
447
- "width": 1280,
448
- "height": 1920
449
- },
450
- "size": 2584366
451
- },
452
- "url": "//images.contentful.com/yr5m0jky5hsh/4PuoXXjfkseW6AgsmWgsay/f7a78500b963590688785cb473d8e2ad/pic1.jpg"
432
+ "sys": {
433
+ "type": "Link",
434
+ "linkType": "Entry",
435
+ "id": "1CpB2YkA5q0aMywe0wmCCQ"
436
+ }
453
437
  }
454
438
  }
455
439
  },
456
440
  "sys": {
457
- "id": "4PuoXXjfkseW6AgsmWgsay",
458
- "type": "Asset",
459
- "createdAt": "2014-07-30T15:51:05.053Z",
441
+ "id": "35IvG8CVSMKA26kyAqgYU8",
442
+ "type": "Entry",
443
+ "createdAt": "2014-08-13T07:18:58.745Z",
460
444
  "createdBy": {
461
445
  "sys": {
462
446
  "type": "Link",
@@ -468,11 +452,18 @@ http_interactions:
468
452
  "sys": {
469
453
  "type": "Link",
470
454
  "linkType": "Space",
471
- "id": "yr5m0jky5hsh"
455
+ "id": "9lxkhjnp8gyx"
456
+ }
457
+ },
458
+ "contentType": {
459
+ "sys": {
460
+ "type": "Link",
461
+ "linkType": "ContentType",
462
+ "id": "post_content_type"
472
463
  }
473
464
  },
474
- "version": 2,
475
- "updatedAt": "2014-07-30T15:51:07.658Z",
465
+ "version": 1,
466
+ "updatedAt": "2014-08-13T07:18:58.749Z",
476
467
  "updatedBy": {
477
468
  "sys": {
478
469
  "type": "Link",
@@ -484,31 +475,47 @@ http_interactions:
484
475
  },
485
476
  {
486
477
  "fields": {
487
- "title": {
488
- "en-US": "titlebyCreateAPI"
478
+ "post_title": {
479
+ "en-US": "Jakis tytul"
489
480
  },
490
- "description": {
491
- "en-US": "descByAPI"
481
+ "post_author": {
482
+ "en-US": "autor444"
483
+ },
484
+ "post_body": {
485
+ "en-US": "zawartosc postaa...."
486
+ },
487
+ "post_title_image": {
488
+ "en-US": {
489
+ "sys": {
490
+ "type": "Link",
491
+ "linkType": "Asset",
492
+ "id": "744H01gJqM8gIECmimayk2"
493
+ }
494
+ }
492
495
  },
493
- "file": {
496
+ "post_second_image": {
494
497
  "en-US": {
495
- "contentType": "image/jpeg",
496
- "fileName": "pic1.jpg",
497
- "details": {
498
- "image": {
499
- "width": 1280,
500
- "height": 1920
501
- },
502
- "size": 2584366
503
- },
504
- "url": "//images.contentful.com/yr5m0jky5hsh/3PYa73pXXiAmKqm8eu4qOS/33f8a874f270bc6d148cf4ab5f8117e6/pic1.jpg"
498
+ "sys": {
499
+ "type": "Link",
500
+ "linkType": "Asset",
501
+ "id": "70Wy1nAI3SkIim6esyI2YS"
502
+ }
503
+ }
504
+ },
505
+ "post_category_id": {
506
+ "en-US": {
507
+ "sys": {
508
+ "type": "Link",
509
+ "linkType": "Entry",
510
+ "id": "1CpB2YkA5q0aMywe0wmCCQ"
511
+ }
505
512
  }
506
513
  }
507
514
  },
508
515
  "sys": {
509
- "id": "3PYa73pXXiAmKqm8eu4qOS",
510
- "type": "Asset",
511
- "createdAt": "2014-07-30T15:50:36.369Z",
516
+ "id": "5e5shqEhza8QaEIsOAasqM",
517
+ "type": "Entry",
518
+ "createdAt": "2014-08-13T07:27:45.279Z",
512
519
  "createdBy": {
513
520
  "sys": {
514
521
  "type": "Link",
@@ -520,11 +527,18 @@ http_interactions:
520
527
  "sys": {
521
528
  "type": "Link",
522
529
  "linkType": "Space",
523
- "id": "yr5m0jky5hsh"
530
+ "id": "9lxkhjnp8gyx"
524
531
  }
525
532
  },
526
- "version": 2,
527
- "updatedAt": "2014-07-30T15:50:39.098Z",
533
+ "contentType": {
534
+ "sys": {
535
+ "type": "Link",
536
+ "linkType": "ContentType",
537
+ "id": "post_content_type"
538
+ }
539
+ },
540
+ "version": 1,
541
+ "updatedAt": "2014-08-13T07:27:45.283Z",
528
542
  "updatedBy": {
529
543
  "sys": {
530
544
  "type": "Link",
@@ -536,21 +550,17 @@ http_interactions:
536
550
  },
537
551
  {
538
552
  "fields": {
539
- "title": {
540
- "en-US": "3242",
541
- "pl-PL": "swerwer"
553
+ "name": {
554
+ "en-US": "Categoru"
542
555
  },
543
556
  "description": {
544
- "en-US": null
545
- },
546
- "file": {
547
- "en-US": null
557
+ "en-US": "asdasd"
548
558
  }
549
559
  },
550
560
  "sys": {
551
- "id": "codequest_id_test_custom_id",
552
- "type": "Asset",
553
- "createdAt": "2014-07-30T13:24:53.570Z",
561
+ "id": "3B7dW2mpO8SqOGaUs8kGCq",
562
+ "type": "Entry",
563
+ "createdAt": "2014-08-13T07:34:34.456Z",
554
564
  "createdBy": {
555
565
  "sys": {
556
566
  "type": "Link",
@@ -562,53 +572,18 @@ http_interactions:
562
572
  "sys": {
563
573
  "type": "Link",
564
574
  "linkType": "Space",
565
- "id": "yr5m0jky5hsh"
575
+ "id": "9lxkhjnp8gyx"
566
576
  }
567
577
  },
568
- "firstPublishedAt": "2014-07-30T15:09:52.708Z",
569
- "publishedCounter": 3,
570
- "publishedAt": "2014-07-30T15:18:11.105Z",
571
- "publishedBy": {
578
+ "contentType": {
572
579
  "sys": {
573
580
  "type": "Link",
574
- "linkType": "User",
575
- "id": "1E7acJL8I5XUXAMHQt9Grs"
576
- }
577
- },
578
- "publishedVersion": 10,
579
- "version": 12,
580
- "updatedAt": "2014-07-30T15:18:14.641Z",
581
- "updatedBy": {
582
- "sys": {
583
- "type": "Link",
584
- "linkType": "User",
585
- "id": "1E7acJL8I5XUXAMHQt9Grs"
586
- }
587
- }
588
- }
589
- },
590
- {
591
- "fields": {},
592
- "sys": {
593
- "id": "2hnzRwT8NmSe6OyceIcG46",
594
- "type": "Asset",
595
- "createdAt": "2014-07-30T15:45:52.771Z",
596
- "createdBy": {
597
- "sys": {
598
- "type": "Link",
599
- "linkType": "User",
600
- "id": "1E7acJL8I5XUXAMHQt9Grs"
601
- }
602
- },
603
- "space": {
604
- "sys": {
605
- "type": "Link",
606
- "linkType": "Space",
607
- "id": "yr5m0jky5hsh"
581
+ "linkType": "ContentType",
582
+ "id": "category_content_type"
608
583
  }
609
584
  },
610
585
  "version": 1,
611
- "updatedAt": "2014-07-30T15:45:52.774Z",
586
+ "updatedAt": "2014-08-13T07:34:34.459Z",
612
587
  "updatedBy": {
613
588
  "sys": {
614
589
  "type": "Link",
@@ -620,83 +595,47 @@ http_interactions:
620
595
  },
621
596
  {
622
597
  "fields": {
623
- "title": {
624
- "en-US": "titlebyCreateAPI"
598
+ "post_title": {
599
+ "en-US": "Jakis tytulsss"
625
600
  },
626
- "description": {
627
- "en-US": "descByAPI"
601
+ "post_author": {
602
+ "en-US": "autorek"
628
603
  },
629
- "file": {
630
- "en-US": {
631
- "contentType": "image/jpeg",
632
- "fileName": "pic1.jpg",
633
- "details": {
634
- "image": {
635
- "width": 1280,
636
- "height": 1920
637
- },
638
- "size": 2584366
639
- },
640
- "url": "//images.contentful.com/yr5m0jky5hsh/3znNnXEhK0GyUGYysOco00/976663f77ba565f85b72a0819d405b3e/pic1.jpg"
641
- }
642
- }
643
- },
644
- "sys": {
645
- "id": "3znNnXEhK0GyUGYysOco00",
646
- "type": "Asset",
647
- "createdAt": "2014-07-30T15:51:59.929Z",
648
- "createdBy": {
649
- "sys": {
650
- "type": "Link",
651
- "linkType": "User",
652
- "id": "1E7acJL8I5XUXAMHQt9Grs"
653
- }
604
+ "post_body": {
605
+ "en-US": "zawartosc postaa...."
654
606
  },
655
- "space": {
656
- "sys": {
657
- "type": "Link",
658
- "linkType": "Space",
659
- "id": "yr5m0jky5hsh"
607
+ "post_title_image": {
608
+ "en-US": {
609
+ "sys": {
610
+ "type": "Link",
611
+ "linkType": "Asset",
612
+ "id": "70Wy1nAI3SkIim6esyI2YS"
613
+ }
660
614
  }
661
615
  },
662
- "version": 2,
663
- "updatedAt": "2014-07-30T15:52:02.081Z",
664
- "updatedBy": {
665
- "sys": {
666
- "type": "Link",
667
- "linkType": "User",
668
- "id": "1E7acJL8I5XUXAMHQt9Grs"
616
+ "post_second_image": {
617
+ "en-US": {
618
+ "sys": {
619
+ "type": "Link",
620
+ "linkType": "Asset",
621
+ "id": "70Wy1nAI3SkIim6esyI2YS"
622
+ }
669
623
  }
670
- }
671
- }
672
- },
673
- {
674
- "fields": {
675
- "title": {
676
- "en-US": "titlebyCreateAPI"
677
624
  },
678
- "description": {
679
- "en-US": "descByAPI"
680
- },
681
- "file": {
625
+ "post_category_id": {
682
626
  "en-US": {
683
- "contentType": "image/jpeg",
684
- "fileName": "pic1.jpg",
685
- "details": {
686
- "image": {
687
- "width": 1280,
688
- "height": 1920
689
- },
690
- "size": 2584366
691
- },
692
- "url": "//images.contentful.com/yr5m0jky5hsh/r7o2iuDeSc4UmioOuoKq6/10316969ea571137efb2819a08b440fd/pic1.jpg"
627
+ "sys": {
628
+ "type": "Link",
629
+ "linkType": "Entry",
630
+ "id": "35IvG8CVSMKA26kyAqgYU8"
631
+ }
693
632
  }
694
633
  }
695
634
  },
696
635
  "sys": {
697
- "id": "r7o2iuDeSc4UmioOuoKq6",
698
- "type": "Asset",
699
- "createdAt": "2014-07-30T15:51:16.500Z",
636
+ "id": "1ja0cmUA6SQygoaUWkU2kO",
637
+ "type": "Entry",
638
+ "createdAt": "2014-08-13T07:38:25.508Z",
700
639
  "createdBy": {
701
640
  "sys": {
702
641
  "type": "Link",
@@ -708,11 +647,18 @@ http_interactions:
708
647
  "sys": {
709
648
  "type": "Link",
710
649
  "linkType": "Space",
711
- "id": "yr5m0jky5hsh"
650
+ "id": "9lxkhjnp8gyx"
651
+ }
652
+ },
653
+ "contentType": {
654
+ "sys": {
655
+ "type": "Link",
656
+ "linkType": "ContentType",
657
+ "id": "post_content_type"
712
658
  }
713
659
  },
714
- "version": 2,
715
- "updatedAt": "2014-07-30T15:51:18.639Z",
660
+ "version": 1,
661
+ "updatedAt": "2014-08-13T07:38:25.511Z",
716
662
  "updatedBy": {
717
663
  "sys": {
718
664
  "type": "Link",
@@ -721,27 +667,83 @@ http_interactions:
721
667
  }
722
668
  }
723
669
  }
724
- },
670
+ }
671
+ ]
672
+ }
673
+ http_version:
674
+ recorded_at: Wed, 13 Aug 2014 08:54:20 GMT
675
+ - request:
676
+ method: get
677
+ uri: https://api.contentful.com/spaces/9lxkhjnp8gyx/entries?content_type=category_content_type
678
+ body:
679
+ encoding: US-ASCII
680
+ string: ''
681
+ headers:
682
+ User-Agent:
683
+ - RubyContenfulManagementGem/0.0.1.pre
684
+ Authorization:
685
+ - Bearer <ACCESS_TOKEN>
686
+ Content-Type:
687
+ - application/vnd.contentful.management.v1+json
688
+ Content-Length:
689
+ - '0'
690
+ Host:
691
+ - api.contentful.com
692
+ response:
693
+ status:
694
+ code: 200
695
+ message: OK
696
+ headers:
697
+ Server:
698
+ - nginx
699
+ Date:
700
+ - Wed, 13 Aug 2014 08:54:20 GMT
701
+ Content-Type:
702
+ - application/vnd.contentful.management.v1+json
703
+ Content-Length:
704
+ - '2176'
705
+ Connection:
706
+ - keep-alive
707
+ X-Powered-By:
708
+ - Express
709
+ Cf-Space-Id:
710
+ - 9lxkhjnp8gyx
711
+ Etag:
712
+ - '"971ee4a299e08e65093824445f32ad78"'
713
+ Access-Control-Allow-Origin:
714
+ - "*"
715
+ Access-Control-Allow-Headers:
716
+ - 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
717
+ Access-Control-Allow-Methods:
718
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
719
+ "^access-Control-Expose-Headers":
720
+ - Etag
721
+ Access-Control-Max-Age:
722
+ - '1728000'
723
+ body:
724
+ encoding: UTF-8
725
+ string: |
726
+ {
727
+ "sys": {
728
+ "type": "Array"
729
+ },
730
+ "total": 2,
731
+ "skip": 0,
732
+ "limit": 100,
733
+ "items": [
725
734
  {
726
735
  "fields": {
727
- "title": {
728
- "en-US": "titlebyCreateAPI"
736
+ "name": {
737
+ "en-US": "Sport"
729
738
  },
730
739
  "description": {
731
- "en-US": "descByAPI"
732
- },
733
- "file": {
734
- "en-US": {
735
- "contentType": "image/jpeg",
736
- "fileName": "pic1.jpg",
737
- "upload": "https://upload.wikimedia.org/wikipedia/commons/c/c7/Gasometer_Berlin_Sch%C3%B6neberg_2011.jpg"
738
- }
740
+ "en-US": "Sport category"
739
741
  }
740
742
  },
741
743
  "sys": {
742
- "id": "MthdSziJG0Gy4AAQmu0qU",
743
- "type": "Asset",
744
- "createdAt": "2014-07-30T15:52:57.452Z",
744
+ "id": "1CpB2YkA5q0aMywe0wmCCQ",
745
+ "type": "Entry",
746
+ "createdAt": "2014-08-13T07:08:52.842Z",
745
747
  "createdBy": {
746
748
  "sys": {
747
749
  "type": "Link",
@@ -753,11 +755,18 @@ http_interactions:
753
755
  "sys": {
754
756
  "type": "Link",
755
757
  "linkType": "Space",
756
- "id": "yr5m0jky5hsh"
758
+ "id": "9lxkhjnp8gyx"
759
+ }
760
+ },
761
+ "contentType": {
762
+ "sys": {
763
+ "type": "Link",
764
+ "linkType": "ContentType",
765
+ "id": "category_content_type"
757
766
  }
758
767
  },
759
768
  "version": 1,
760
- "updatedAt": "2014-07-30T15:52:57.456Z",
769
+ "updatedAt": "2014-08-13T07:08:52.850Z",
761
770
  "updatedBy": {
762
771
  "sys": {
763
772
  "type": "Link",
@@ -769,31 +778,17 @@ http_interactions:
769
778
  },
770
779
  {
771
780
  "fields": {
772
- "title": {
773
- "en-US": "titlebyCreateAPI"
781
+ "name": {
782
+ "en-US": "Categoru"
774
783
  },
775
784
  "description": {
776
- "en-US": "descByAPI"
777
- },
778
- "file": {
779
- "en-US": {
780
- "contentType": "image/jpeg",
781
- "fileName": "pic1.jpg",
782
- "details": {
783
- "image": {
784
- "width": 1280,
785
- "height": 1920
786
- },
787
- "size": 2584366
788
- },
789
- "url": "//images.contentful.com/yr5m0jky5hsh/5FDqplZoruAUGmiSa02asE/f5cab89aa8f9d8ca2e520d63bc356ef9/pic1.jpg"
790
- }
785
+ "en-US": "asdasd"
791
786
  }
792
787
  },
793
788
  "sys": {
794
- "id": "5FDqplZoruAUGmiSa02asE",
795
- "type": "Asset",
796
- "createdAt": "2014-07-31T06:31:03.919Z",
789
+ "id": "3B7dW2mpO8SqOGaUs8kGCq",
790
+ "type": "Entry",
791
+ "createdAt": "2014-08-13T07:34:34.456Z",
797
792
  "createdBy": {
798
793
  "sys": {
799
794
  "type": "Link",
@@ -805,11 +800,18 @@ http_interactions:
805
800
  "sys": {
806
801
  "type": "Link",
807
802
  "linkType": "Space",
808
- "id": "yr5m0jky5hsh"
803
+ "id": "9lxkhjnp8gyx"
809
804
  }
810
805
  },
811
- "version": 2,
812
- "updatedAt": "2014-07-31T06:31:04.930Z",
806
+ "contentType": {
807
+ "sys": {
808
+ "type": "Link",
809
+ "linkType": "ContentType",
810
+ "id": "category_content_type"
811
+ }
812
+ },
813
+ "version": 1,
814
+ "updatedAt": "2014-08-13T07:34:34.459Z",
813
815
  "updatedBy": {
814
816
  "sys": {
815
817
  "type": "Link",
@@ -822,5 +824,5 @@ http_interactions:
822
824
  ]
823
825
  }
824
826
  http_version:
825
- recorded_at: Thu, 31 Jul 2014 07:16:58 GMT
827
+ recorded_at: Wed, 13 Aug 2014 08:54:21 GMT
826
828
  recorded_with: VCR 2.9.2