contentful-management 0.0.1.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +24 -0
- data/.reek +3 -0
- data/.rspec +3 -0
- data/.rubocop.yml +16 -0
- data/.travis.yml +9 -0
- data/CHANGELOG.md +2 -0
- data/Gemfile +13 -0
- data/LICENSE.txt +22 -0
- data/README.md +408 -0
- data/Rakefile +37 -0
- data/bin/cma-console +8 -0
- data/contentful-management.gemspec +33 -0
- data/examples/blog.rb +82 -0
- data/examples/content_types.rb +45 -0
- data/examples/create_space.rb +35 -0
- data/lib/contentful/management.rb +12 -0
- data/lib/contentful/management/array.rb +35 -0
- data/lib/contentful/management/asset.rb +163 -0
- data/lib/contentful/management/client.rb +160 -0
- data/lib/contentful/management/content_type.rb +180 -0
- data/lib/contentful/management/dynamic_entry.rb +71 -0
- data/lib/contentful/management/entry.rb +213 -0
- data/lib/contentful/management/error.rb +62 -0
- data/lib/contentful/management/field.rb +34 -0
- data/lib/contentful/management/file.rb +15 -0
- data/lib/contentful/management/http_client.rb +22 -0
- data/lib/contentful/management/link.rb +23 -0
- data/lib/contentful/management/locale.rb +48 -0
- data/lib/contentful/management/location.rb +15 -0
- data/lib/contentful/management/request.rb +82 -0
- data/lib/contentful/management/resource.rb +166 -0
- data/lib/contentful/management/resource/array_like.rb +37 -0
- data/lib/contentful/management/resource/fields.rb +69 -0
- data/lib/contentful/management/resource/refresher.rb +21 -0
- data/lib/contentful/management/resource/system_properties.rb +56 -0
- data/lib/contentful/management/resource_builder.rb +269 -0
- data/lib/contentful/management/response.rb +72 -0
- data/lib/contentful/management/space.rb +159 -0
- data/lib/contentful/management/support.rb +24 -0
- data/lib/contentful/management/version.rb +6 -0
- data/spec/fixtures/vcr_cassettes/array_page_1.yml +1337 -0
- data/spec/fixtures/vcr_cassettes/asset/all.yml +611 -0
- data/spec/fixtures/vcr_cassettes/asset/archive.yml +228 -0
- data/spec/fixtures/vcr_cassettes/asset/archive_published.yml +177 -0
- data/spec/fixtures/vcr_cassettes/asset/archived_false.yml +228 -0
- data/spec/fixtures/vcr_cassettes/asset/archived_true.yml +228 -0
- data/spec/fixtures/vcr_cassettes/asset/create.yml +150 -0
- data/spec/fixtures/vcr_cassettes/asset/create_with_already_used_id.yml +56 -0
- data/spec/fixtures/vcr_cassettes/asset/create_with_custom_id.yml +150 -0
- data/spec/fixtures/vcr_cassettes/asset/destroy.yml +159 -0
- data/spec/fixtures/vcr_cassettes/asset/destroy_published.yml +175 -0
- data/spec/fixtures/vcr_cassettes/asset/find.yml +108 -0
- data/spec/fixtures/vcr_cassettes/asset/find_not_found.yml +64 -0
- data/spec/fixtures/vcr_cassettes/asset/image_url.yml +133 -0
- data/spec/fixtures/vcr_cassettes/asset/locale.yml +110 -0
- data/spec/fixtures/vcr_cassettes/asset/publish.yml +228 -0
- data/spec/fixtures/vcr_cassettes/asset/publish_already_published.yml +176 -0
- data/spec/fixtures/vcr_cassettes/asset/published_false.yml +228 -0
- data/spec/fixtures/vcr_cassettes/asset/published_true.yml +226 -0
- data/spec/fixtures/vcr_cassettes/asset/save_update.yml +242 -0
- data/spec/fixtures/vcr_cassettes/asset/set_locale.yml +110 -0
- data/spec/fixtures/vcr_cassettes/asset/unarchive.yml +228 -0
- data/spec/fixtures/vcr_cassettes/asset/unarchive_already_unarchive.yml +168 -0
- data/spec/fixtures/vcr_cassettes/asset/unarchive_already_unarchived.yml +168 -0
- data/spec/fixtures/vcr_cassettes/asset/unpublish.yml +228 -0
- data/spec/fixtures/vcr_cassettes/asset/unpublish_already_unpublished.yml +168 -0
- data/spec/fixtures/vcr_cassettes/asset/update_file.yml +207 -0
- data/spec/fixtures/vcr_cassettes/asset/update_to_specified_locale.yml +224 -0
- data/spec/fixtures/vcr_cassettes/asset/update_with_default_locale_without_file.yml +214 -0
- data/spec/fixtures/vcr_cassettes/content_type/activate.yml +246 -0
- data/spec/fixtures/vcr_cassettes/content_type/activate_with_invalid_version.yml +186 -0
- data/spec/fixtures/vcr_cassettes/content_type/activated_false.yml +246 -0
- data/spec/fixtures/vcr_cassettes/content_type/activated_true.yml +257 -0
- data/spec/fixtures/vcr_cassettes/content_type/all.yml +190 -0
- data/spec/fixtures/vcr_cassettes/content_type/create.yml +87 -0
- data/spec/fixtures/vcr_cassettes/content_type/create_content_type_with_id.yml +87 -0
- data/spec/fixtures/vcr_cassettes/content_type/create_with_Array_field.yml +94 -0
- data/spec/fixtures/vcr_cassettes/content_type/create_with_Boolean_field.yml +94 -0
- data/spec/fixtures/vcr_cassettes/content_type/create_with_Date_field.yml +94 -0
- data/spec/fixtures/vcr_cassettes/content_type/create_with_Integer_field.yml +94 -0
- data/spec/fixtures/vcr_cassettes/content_type/create_with_Link_field.yml +95 -0
- data/spec/fixtures/vcr_cassettes/content_type/create_with_Location_field.yml +94 -0
- data/spec/fixtures/vcr_cassettes/content_type/create_with_Number_field.yml +94 -0
- data/spec/fixtures/vcr_cassettes/content_type/create_with_Object_field.yml +94 -0
- data/spec/fixtures/vcr_cassettes/content_type/create_with_Symbol_field.yml +94 -0
- data/spec/fixtures/vcr_cassettes/content_type/create_with_Text_field.yml +94 -0
- data/spec/fixtures/vcr_cassettes/content_type/deactivate.yml +246 -0
- data/spec/fixtures/vcr_cassettes/content_type/deactivate_already_deactivated.yml +176 -0
- data/spec/fixtures/vcr_cassettes/content_type/deactivate_with_entries.yml +236 -0
- data/spec/fixtures/vcr_cassettes/content_type/deactivate_with_version_change.yml +248 -0
- data/spec/fixtures/vcr_cassettes/content_type/destroy.yml +148 -0
- data/spec/fixtures/vcr_cassettes/content_type/destroy_activated.yml +164 -0
- data/spec/fixtures/vcr_cassettes/content_type/entry/create.yml +1344 -0
- data/spec/fixtures/vcr_cassettes/content_type/entry/create_with_camel_case_id_to_multiple_locales.yml +235 -0
- data/spec/fixtures/vcr_cassettes/content_type/entry/create_with_entries.yml +398 -0
- data/spec/fixtures/vcr_cassettes/content_type/entry/create_with_entries_for_multiple_locales.yml +3157 -0
- data/spec/fixtures/vcr_cassettes/content_type/entry/create_with_multiple_locales.yml +230 -0
- data/spec/fixtures/vcr_cassettes/content_type/fields/add.yml +345 -0
- data/spec/fixtures/vcr_cassettes/content_type/fields/create.yml +353 -0
- data/spec/fixtures/vcr_cassettes/content_type/fields/create_array_with_params.yml +228 -0
- data/spec/fixtures/vcr_cassettes/content_type/fields/create_with_params.yml +221 -0
- data/spec/fixtures/vcr_cassettes/content_type/fields/destroy.yml +349 -0
- data/spec/fixtures/vcr_cassettes/content_type/fields/update_field.yml +358 -0
- data/spec/fixtures/vcr_cassettes/content_type/find.yml +180 -0
- data/spec/fixtures/vcr_cassettes/content_type/find_not_found.yml +64 -0
- data/spec/fixtures/vcr_cassettes/content_type/save_new.yml +876 -0
- data/spec/fixtures/vcr_cassettes/content_type/save_updated.yml +345 -0
- data/spec/fixtures/vcr_cassettes/content_type/save_with_added_field.yml +217 -0
- data/spec/fixtures/vcr_cassettes/content_type/update.yml +175 -0
- data/spec/fixtures/vcr_cassettes/content_type/update_change_field_name.yml +222 -0
- data/spec/fixtures/vcr_cassettes/content_type/update_remove_field.yml +231 -0
- data/spec/fixtures/vcr_cassettes/content_type/update_with_fields.yml +222 -0
- data/spec/fixtures/vcr_cassettes/content_type/update_with_one_new_field.yml +251 -0
- data/spec/fixtures/vcr_cassettes/entry/all.yml +139 -0
- data/spec/fixtures/vcr_cassettes/entry/archive.yml +222 -0
- data/spec/fixtures/vcr_cassettes/entry/archive_published.yml +187 -0
- data/spec/fixtures/vcr_cassettes/entry/archived_false.yml +178 -0
- data/spec/fixtures/vcr_cassettes/entry/archived_true.yml +248 -0
- data/spec/fixtures/vcr_cassettes/entry/create.yml +245 -0
- data/spec/fixtures/vcr_cassettes/entry/create_test.yml +150 -0
- data/spec/fixtures/vcr_cassettes/entry/create_with_asset.yml +403 -0
- data/spec/fixtures/vcr_cassettes/entry/create_with_assets.yml +419 -0
- data/spec/fixtures/vcr_cassettes/entry/create_with_entries.yml +418 -0
- data/spec/fixtures/vcr_cassettes/entry/create_with_entry.yml +493 -0
- data/spec/fixtures/vcr_cassettes/entry/create_with_location.yml +259 -0
- data/spec/fixtures/vcr_cassettes/entry/create_with_symbols.yml +271 -0
- data/spec/fixtures/vcr_cassettes/entry/destory_published.yml +172 -0
- data/spec/fixtures/vcr_cassettes/entry/destroy.yml +156 -0
- data/spec/fixtures/vcr_cassettes/entry/find.yml +129 -0
- data/spec/fixtures/vcr_cassettes/entry/find_not_found.yml +64 -0
- data/spec/fixtures/vcr_cassettes/entry/publish.yml +248 -0
- data/spec/fixtures/vcr_cassettes/entry/publish_already_published.yml +186 -0
- data/spec/fixtures/vcr_cassettes/entry/published_false.yml +248 -0
- data/spec/fixtures/vcr_cassettes/entry/published_true.yml +257 -0
- data/spec/fixtures/vcr_cassettes/entry/save_update.yml +211 -0
- data/spec/fixtures/vcr_cassettes/entry/unarchive.yml +248 -0
- data/spec/fixtures/vcr_cassettes/entry/unarchive_already_unarchived.yml +178 -0
- data/spec/fixtures/vcr_cassettes/entry/unpublish.yml +248 -0
- data/spec/fixtures/vcr_cassettes/entry/unpublish_already_unpublished.yml +178 -0
- data/spec/fixtures/vcr_cassettes/entry/update.yml +626 -0
- data/spec/fixtures/vcr_cassettes/entry/update_unlocalized_field.yml +308 -0
- data/spec/fixtures/vcr_cassettes/entry/update_with_custom_locale.yml +332 -0
- data/spec/fixtures/vcr_cassettes/get_request.yml +37 -0
- data/spec/fixtures/vcr_cassettes/locale/all_for_space.yml +321 -0
- data/spec/fixtures/vcr_cassettes/locale/create_for_space.yml +95 -0
- data/spec/fixtures/vcr_cassettes/locale/find.yml +95 -0
- data/spec/fixtures/vcr_cassettes/locale/find_for_space_not_found.yml +67 -0
- data/spec/fixtures/vcr_cassettes/space/all.yml +1201 -0
- data/spec/fixtures/vcr_cassettes/space/asset/all.yml +475 -0
- data/spec/fixtures/vcr_cassettes/space/asset/assets.yml +826 -0
- data/spec/fixtures/vcr_cassettes/space/asset/create.yml +508 -0
- data/spec/fixtures/vcr_cassettes/space/asset/create_with_multiple_locales.yml +1062 -0
- data/spec/fixtures/vcr_cassettes/space/asset/find.yml +634 -0
- data/spec/fixtures/vcr_cassettes/space/content_type/all.yml +470 -0
- data/spec/fixtures/vcr_cassettes/space/content_type/content_types.yml +341 -0
- data/spec/fixtures/vcr_cassettes/space/content_type/create.yml +425 -0
- data/spec/fixtures/vcr_cassettes/space/content_type/find.yml +493 -0
- data/spec/fixtures/vcr_cassettes/space/create.yml +85 -0
- data/spec/fixtures/vcr_cassettes/space/create_when_limit_has_been_reached.yml +67 -0
- data/spec/fixtures/vcr_cassettes/space/create_with_unknown_organization.yml +65 -0
- data/spec/fixtures/vcr_cassettes/space/create_without_organization.yml +83 -0
- data/spec/fixtures/vcr_cassettes/space/destory.yml +196 -0
- data/spec/fixtures/vcr_cassettes/space/entry/all.yml +634 -0
- data/spec/fixtures/vcr_cassettes/space/entry/entries.yml +498 -0
- data/spec/fixtures/vcr_cassettes/space/entry/find.yml +624 -0
- data/spec/fixtures/vcr_cassettes/space/find.yml +270 -0
- data/spec/fixtures/vcr_cassettes/space/find_not_found.yml +67 -0
- data/spec/fixtures/vcr_cassettes/space/locale/all.yml +690 -0
- data/spec/fixtures/vcr_cassettes/space/locale/create.yml +572 -0
- data/spec/fixtures/vcr_cassettes/space/locale/create_with_the_same_code.yml +585 -0
- data/spec/fixtures/vcr_cassettes/space/locale/find.yml +572 -0
- data/spec/fixtures/vcr_cassettes/space/locale/find_not_found.yml +580 -0
- data/spec/fixtures/vcr_cassettes/space/locale/locales.yml +480 -0
- data/spec/fixtures/vcr_cassettes/space/locale/update.yml +700 -0
- data/spec/fixtures/vcr_cassettes/space/save_new_space.yml +67 -0
- data/spec/fixtures/vcr_cassettes/space/save_update_space.yml +352 -0
- data/spec/fixtures/vcr_cassettes/space/update.yml +350 -0
- data/spec/fixtures/vcr_cassettes/space/update_with_the_same_data.yml +350 -0
- data/spec/lib/contentful/management/array_spec.rb +59 -0
- data/spec/lib/contentful/management/asset_spec.rb +321 -0
- data/spec/lib/contentful/management/client_spec.rb +80 -0
- data/spec/lib/contentful/management/content_type_spec.rb +455 -0
- data/spec/lib/contentful/management/entry_spec.rb +308 -0
- data/spec/lib/contentful/management/locale_spec.rb +53 -0
- data/spec/lib/contentful/management/space_spec.rb +317 -0
- data/spec/spec_helper.rb +10 -0
- data/spec/support/vcr.rb +17 -0
- metadata +554 -0
@@ -0,0 +1,1062 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.contentful.com/spaces/yr5m0jky5hsh
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- RubyContenfulManagementGem/0.0.1
|
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
|
+
- Fri, 01 Aug 2014 13:17:00 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/vnd.contentful.management.v1+json
|
31
|
+
Content-Length:
|
32
|
+
- '451'
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Status:
|
36
|
+
- 200 OK
|
37
|
+
X-Contentful-Request-Id:
|
38
|
+
- 85f-1334620875
|
39
|
+
Etag:
|
40
|
+
- '"d4c68b318e3d8e9caef04be009d6c4b7"'
|
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":"yr5m0jky5hsh",
|
62
|
+
"version":10,
|
63
|
+
"createdBy":{
|
64
|
+
"sys":{
|
65
|
+
"type":"Link",
|
66
|
+
"linkType":"User",
|
67
|
+
"id":"0fn5fOWn4WsKFyYla1gI5h"
|
68
|
+
}
|
69
|
+
},
|
70
|
+
"createdAt":"2014-07-30T07:46:19Z",
|
71
|
+
"updatedBy":{
|
72
|
+
"sys":{
|
73
|
+
"type":"Link",
|
74
|
+
"linkType":"User",
|
75
|
+
"id":"1E7acJL8I5XUXAMHQt9Grs"
|
76
|
+
}
|
77
|
+
},
|
78
|
+
"updatedAt":"2014-07-31T07:26:59Z"
|
79
|
+
},
|
80
|
+
"name":"BlogSpace"}
|
81
|
+
http_version:
|
82
|
+
recorded_at: Fri, 01 Aug 2014 13:17:00 GMT
|
83
|
+
- request:
|
84
|
+
method: get
|
85
|
+
uri: https://api.contentful.com/spaces/yr5m0jky5hsh/content_types
|
86
|
+
body:
|
87
|
+
encoding: US-ASCII
|
88
|
+
string: ''
|
89
|
+
headers:
|
90
|
+
User-Agent:
|
91
|
+
- RubyContenfulManagementGem/0.0.1
|
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
|
+
- Fri, 01 Aug 2014 13:17:00 GMT
|
109
|
+
Content-Type:
|
110
|
+
- application/vnd.contentful.management.v1+json
|
111
|
+
Content-Length:
|
112
|
+
- '8630'
|
113
|
+
Connection:
|
114
|
+
- keep-alive
|
115
|
+
X-Powered-By:
|
116
|
+
- Express
|
117
|
+
Cf-Space-Id:
|
118
|
+
- yr5m0jky5hsh
|
119
|
+
Etag:
|
120
|
+
- '"7a4f5c97b83b62117203abbd5b67796e"'
|
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": 4,
|
139
|
+
"skip": 0,
|
140
|
+
"limit": 100,
|
141
|
+
"items": [
|
142
|
+
{
|
143
|
+
"name": "Author",
|
144
|
+
"description": "Author content",
|
145
|
+
"fields": [
|
146
|
+
{
|
147
|
+
"id": "name",
|
148
|
+
"name": "name",
|
149
|
+
"type": "Text",
|
150
|
+
"localized": true,
|
151
|
+
"uiid": "3jp09h4ba4g"
|
152
|
+
},
|
153
|
+
{
|
154
|
+
"id": "age",
|
155
|
+
"name": "age",
|
156
|
+
"type": "Integer",
|
157
|
+
"localized": true,
|
158
|
+
"uiid": "43my1e8ybr4"
|
159
|
+
},
|
160
|
+
{
|
161
|
+
"id": "city",
|
162
|
+
"name": "city",
|
163
|
+
"type": "Location",
|
164
|
+
"uiid": "45uoowshekg"
|
165
|
+
},
|
166
|
+
{
|
167
|
+
"id": "assets",
|
168
|
+
"name": "assets",
|
169
|
+
"type": "Array",
|
170
|
+
"items": {
|
171
|
+
"type": "Link",
|
172
|
+
"linkType": "Asset"
|
173
|
+
},
|
174
|
+
"localized": true,
|
175
|
+
"uiid": "4p8d3di8b28"
|
176
|
+
},
|
177
|
+
{
|
178
|
+
"id": "entries",
|
179
|
+
"name": "entries",
|
180
|
+
"type": "Array",
|
181
|
+
"items": {
|
182
|
+
"type": "Link",
|
183
|
+
"linkType": "Entry"
|
184
|
+
},
|
185
|
+
"uiid": "4t2r2mpmwow"
|
186
|
+
},
|
187
|
+
{
|
188
|
+
"id": "entry",
|
189
|
+
"name": "entry",
|
190
|
+
"type": "Link",
|
191
|
+
"linkType": "Entry",
|
192
|
+
"uiid": "2u2x6csxtkw"
|
193
|
+
},
|
194
|
+
{
|
195
|
+
"id": "asset",
|
196
|
+
"name": "asset",
|
197
|
+
"type": "Link",
|
198
|
+
"linkType": "Asset",
|
199
|
+
"uiid": "3pktxccvjeo"
|
200
|
+
},
|
201
|
+
{
|
202
|
+
"id": "bool",
|
203
|
+
"name": "bool",
|
204
|
+
"type": "Boolean",
|
205
|
+
"localized": true,
|
206
|
+
"uiid": "4p882yc9728"
|
207
|
+
},
|
208
|
+
{
|
209
|
+
"id": "symbols",
|
210
|
+
"name": "symbols",
|
211
|
+
"type": "Array",
|
212
|
+
"items": {
|
213
|
+
"type": "Symbol"
|
214
|
+
},
|
215
|
+
"uiid": "2mcqj4tdczk"
|
216
|
+
},
|
217
|
+
{
|
218
|
+
"id": "birthday",
|
219
|
+
"name": "birthday",
|
220
|
+
"type": "Date",
|
221
|
+
"uiid": "3h1dkdm8we8"
|
222
|
+
},
|
223
|
+
{
|
224
|
+
"id": "symbol",
|
225
|
+
"name": "Symbol",
|
226
|
+
"type": "Symbol",
|
227
|
+
"required": true,
|
228
|
+
"localized": true,
|
229
|
+
"uiid": "30rwyn42a68"
|
230
|
+
},
|
231
|
+
{
|
232
|
+
"id": "eye_color",
|
233
|
+
"name": "Eyes color",
|
234
|
+
"type": "Text",
|
235
|
+
"uiid": "46h9q3btwcg"
|
236
|
+
}
|
237
|
+
],
|
238
|
+
"sys": {
|
239
|
+
"id": "5DSpuKrl04eMAGQoQckeIq",
|
240
|
+
"type": "ContentType",
|
241
|
+
"createdAt": "2014-07-30T12:35:01.110Z",
|
242
|
+
"createdBy": {
|
243
|
+
"sys": {
|
244
|
+
"type": "Link",
|
245
|
+
"linkType": "User",
|
246
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
247
|
+
}
|
248
|
+
},
|
249
|
+
"space": {
|
250
|
+
"sys": {
|
251
|
+
"type": "Link",
|
252
|
+
"linkType": "Space",
|
253
|
+
"id": "yr5m0jky5hsh"
|
254
|
+
}
|
255
|
+
},
|
256
|
+
"firstPublishedAt": "2014-07-30T12:37:42.035Z",
|
257
|
+
"publishedCounter": 9,
|
258
|
+
"publishedAt": "2014-07-31T10:21:36.870Z",
|
259
|
+
"publishedBy": {
|
260
|
+
"sys": {
|
261
|
+
"type": "Link",
|
262
|
+
"linkType": "User",
|
263
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
264
|
+
}
|
265
|
+
},
|
266
|
+
"publishedVersion": 206,
|
267
|
+
"version": 213,
|
268
|
+
"updatedAt": "2014-07-31T13:23:46.624Z",
|
269
|
+
"updatedBy": {
|
270
|
+
"sys": {
|
271
|
+
"type": "Link",
|
272
|
+
"linkType": "User",
|
273
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
274
|
+
}
|
275
|
+
}
|
276
|
+
}
|
277
|
+
},
|
278
|
+
{
|
279
|
+
"fields": [
|
280
|
+
{
|
281
|
+
"name": "post_title",
|
282
|
+
"id": "post_title",
|
283
|
+
"type": "Text",
|
284
|
+
"uiid": "3y811ua4gsg",
|
285
|
+
"localized": true
|
286
|
+
},
|
287
|
+
{
|
288
|
+
"name": "post_body",
|
289
|
+
"id": "post_body",
|
290
|
+
"type": "Text",
|
291
|
+
"uiid": "2wcy8gvpn28",
|
292
|
+
"localized": true
|
293
|
+
},
|
294
|
+
{
|
295
|
+
"name": "post_code",
|
296
|
+
"id": "post_code",
|
297
|
+
"type": "Symbol",
|
298
|
+
"uiid": "42ip6svqlts",
|
299
|
+
"localized": true
|
300
|
+
},
|
301
|
+
{
|
302
|
+
"name": "post_created",
|
303
|
+
"id": "post_created",
|
304
|
+
"type": "Date",
|
305
|
+
"uiid": "3qb1v37yebk"
|
306
|
+
}
|
307
|
+
],
|
308
|
+
"name": "Post",
|
309
|
+
"sys": {
|
310
|
+
"id": "4EnwylPOikyMGUIy8uQgQY",
|
311
|
+
"type": "ContentType",
|
312
|
+
"createdAt": "2014-07-31T08:46:36.678Z",
|
313
|
+
"createdBy": {
|
314
|
+
"sys": {
|
315
|
+
"type": "Link",
|
316
|
+
"linkType": "User",
|
317
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
318
|
+
}
|
319
|
+
},
|
320
|
+
"space": {
|
321
|
+
"sys": {
|
322
|
+
"type": "Link",
|
323
|
+
"linkType": "Space",
|
324
|
+
"id": "yr5m0jky5hsh"
|
325
|
+
}
|
326
|
+
},
|
327
|
+
"firstPublishedAt": "2014-07-31T08:51:14.655Z",
|
328
|
+
"publishedCounter": 6,
|
329
|
+
"publishedAt": "2014-08-01T09:23:05.507Z",
|
330
|
+
"publishedBy": {
|
331
|
+
"sys": {
|
332
|
+
"type": "Link",
|
333
|
+
"linkType": "User",
|
334
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
335
|
+
}
|
336
|
+
},
|
337
|
+
"publishedVersion": 214,
|
338
|
+
"version": 215,
|
339
|
+
"updatedAt": "2014-08-01T09:23:05.513Z",
|
340
|
+
"updatedBy": {
|
341
|
+
"sys": {
|
342
|
+
"type": "Link",
|
343
|
+
"linkType": "User",
|
344
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
345
|
+
}
|
346
|
+
}
|
347
|
+
},
|
348
|
+
"description": "Content with Post fields",
|
349
|
+
"displayField": "postTitl"
|
350
|
+
},
|
351
|
+
{
|
352
|
+
"name": "Blog",
|
353
|
+
"description": "Blog's content type",
|
354
|
+
"fields": [
|
355
|
+
{
|
356
|
+
"id": "blog_name",
|
357
|
+
"name": "blog_name",
|
358
|
+
"type": "Text",
|
359
|
+
"uiid": "4j6nspw3bb4"
|
360
|
+
},
|
361
|
+
{
|
362
|
+
"id": "blog_entries",
|
363
|
+
"name": "Entries",
|
364
|
+
"type": "Array",
|
365
|
+
"items": {
|
366
|
+
"type": "Link",
|
367
|
+
"linkType": "Entry"
|
368
|
+
},
|
369
|
+
"localized": true,
|
370
|
+
"uiid": "4fb61794mio"
|
371
|
+
}
|
372
|
+
],
|
373
|
+
"sys": {
|
374
|
+
"id": "6xzrdCr33OMAeIYUgs6UKi",
|
375
|
+
"type": "ContentType",
|
376
|
+
"createdAt": "2014-07-31T10:33:50.934Z",
|
377
|
+
"createdBy": {
|
378
|
+
"sys": {
|
379
|
+
"type": "Link",
|
380
|
+
"linkType": "User",
|
381
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
382
|
+
}
|
383
|
+
},
|
384
|
+
"space": {
|
385
|
+
"sys": {
|
386
|
+
"type": "Link",
|
387
|
+
"linkType": "Space",
|
388
|
+
"id": "yr5m0jky5hsh"
|
389
|
+
}
|
390
|
+
},
|
391
|
+
"firstPublishedAt": "2014-07-31T10:34:14.463Z",
|
392
|
+
"publishedCounter": 3,
|
393
|
+
"publishedAt": "2014-08-01T09:23:53.039Z",
|
394
|
+
"publishedBy": {
|
395
|
+
"sys": {
|
396
|
+
"type": "Link",
|
397
|
+
"linkType": "User",
|
398
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
399
|
+
}
|
400
|
+
},
|
401
|
+
"publishedVersion": 50,
|
402
|
+
"version": 51,
|
403
|
+
"updatedAt": "2014-08-01T09:23:53.043Z",
|
404
|
+
"updatedBy": {
|
405
|
+
"sys": {
|
406
|
+
"type": "Link",
|
407
|
+
"linkType": "User",
|
408
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
409
|
+
}
|
410
|
+
}
|
411
|
+
}
|
412
|
+
},
|
413
|
+
{
|
414
|
+
"fields": [
|
415
|
+
{
|
416
|
+
"name": "car_mark",
|
417
|
+
"id": "carMark",
|
418
|
+
"type": "Text",
|
419
|
+
"uiid": "2tak96o94ow",
|
420
|
+
"localized": true
|
421
|
+
},
|
422
|
+
{
|
423
|
+
"name": "car_city_plate",
|
424
|
+
"id": "carCityPlate",
|
425
|
+
"type": "Symbol",
|
426
|
+
"uiid": "4gqwj4k6k8w",
|
427
|
+
"localized": true
|
428
|
+
},
|
429
|
+
{
|
430
|
+
"name": "car_capacity",
|
431
|
+
"id": "carCapacity",
|
432
|
+
"type": "Number",
|
433
|
+
"uiid": "2ms8n1w14ao",
|
434
|
+
"localized": true
|
435
|
+
},
|
436
|
+
{
|
437
|
+
"name": "car_photo",
|
438
|
+
"id": "carPhoto",
|
439
|
+
"type": "Link",
|
440
|
+
"uiid": "33wtzyo9e68",
|
441
|
+
"linkType": "Asset",
|
442
|
+
"localized": true
|
443
|
+
}
|
444
|
+
],
|
445
|
+
"name": "Car",
|
446
|
+
"sys": {
|
447
|
+
"id": "4esHTHIVgc0uWkiwGwOsa6",
|
448
|
+
"type": "ContentType",
|
449
|
+
"createdAt": "2014-08-01T10:30:19.224Z",
|
450
|
+
"createdBy": {
|
451
|
+
"sys": {
|
452
|
+
"type": "Link",
|
453
|
+
"linkType": "User",
|
454
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
455
|
+
}
|
456
|
+
},
|
457
|
+
"space": {
|
458
|
+
"sys": {
|
459
|
+
"type": "Link",
|
460
|
+
"linkType": "Space",
|
461
|
+
"id": "yr5m0jky5hsh"
|
462
|
+
}
|
463
|
+
},
|
464
|
+
"firstPublishedAt": "2014-08-01T10:32:26.083Z",
|
465
|
+
"publishedCounter": 2,
|
466
|
+
"publishedAt": "2014-08-01T11:14:19.463Z",
|
467
|
+
"publishedBy": {
|
468
|
+
"sys": {
|
469
|
+
"type": "Link",
|
470
|
+
"linkType": "User",
|
471
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
472
|
+
}
|
473
|
+
},
|
474
|
+
"publishedVersion": 85,
|
475
|
+
"version": 86,
|
476
|
+
"updatedAt": "2014-08-01T11:14:19.470Z",
|
477
|
+
"updatedBy": {
|
478
|
+
"sys": {
|
479
|
+
"type": "Link",
|
480
|
+
"linkType": "User",
|
481
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
482
|
+
}
|
483
|
+
}
|
484
|
+
},
|
485
|
+
"description": "Car content type",
|
486
|
+
"displayField": "carMark"
|
487
|
+
}
|
488
|
+
]
|
489
|
+
}
|
490
|
+
http_version:
|
491
|
+
recorded_at: Fri, 01 Aug 2014 13:17:01 GMT
|
492
|
+
- request:
|
493
|
+
method: get
|
494
|
+
uri: https://api.contentful.com/spaces/yr5m0jky5hsh/assets
|
495
|
+
body:
|
496
|
+
encoding: US-ASCII
|
497
|
+
string: ''
|
498
|
+
headers:
|
499
|
+
User-Agent:
|
500
|
+
- RubyContenfulManagementGem/0.0.1
|
501
|
+
Authorization:
|
502
|
+
- Bearer <ACCESS_TOKEN>
|
503
|
+
Content-Type:
|
504
|
+
- application/vnd.contentful.management.v1+json
|
505
|
+
Content-Length:
|
506
|
+
- '0'
|
507
|
+
Host:
|
508
|
+
- api.contentful.com
|
509
|
+
response:
|
510
|
+
status:
|
511
|
+
code: 200
|
512
|
+
message: OK
|
513
|
+
headers:
|
514
|
+
Server:
|
515
|
+
- nginx
|
516
|
+
Date:
|
517
|
+
- Fri, 01 Aug 2014 13:17:01 GMT
|
518
|
+
Content-Type:
|
519
|
+
- application/vnd.contentful.management.v1+json
|
520
|
+
Content-Length:
|
521
|
+
- '8113'
|
522
|
+
Connection:
|
523
|
+
- keep-alive
|
524
|
+
X-Powered-By:
|
525
|
+
- Express
|
526
|
+
Cf-Space-Id:
|
527
|
+
- yr5m0jky5hsh
|
528
|
+
Etag:
|
529
|
+
- '"9fe1bcdb9c2fa913a48aa3d275157551"'
|
530
|
+
Access-Control-Allow-Origin:
|
531
|
+
- "*"
|
532
|
+
Access-Control-Allow-Headers:
|
533
|
+
- 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
|
534
|
+
Access-Control-Allow-Methods:
|
535
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
536
|
+
"^access-Control-Expose-Headers":
|
537
|
+
- Etag
|
538
|
+
Access-Control-Max-Age:
|
539
|
+
- '1728000'
|
540
|
+
body:
|
541
|
+
encoding: UTF-8
|
542
|
+
string: |
|
543
|
+
{
|
544
|
+
"sys": {
|
545
|
+
"type": "Array"
|
546
|
+
},
|
547
|
+
"total": 5,
|
548
|
+
"skip": 0,
|
549
|
+
"limit": 100,
|
550
|
+
"items": [
|
551
|
+
{
|
552
|
+
"fields": {
|
553
|
+
"title": {
|
554
|
+
"en-US": "CodeQuest"
|
555
|
+
},
|
556
|
+
"description": {
|
557
|
+
"en-US": "Logo of Codequest"
|
558
|
+
},
|
559
|
+
"file": {
|
560
|
+
"en-US": {
|
561
|
+
"contentType": "image/jpeg",
|
562
|
+
"fileName": "codequest.jpg",
|
563
|
+
"details": {
|
564
|
+
"image": {
|
565
|
+
"width": 90,
|
566
|
+
"height": 90
|
567
|
+
},
|
568
|
+
"size": 7094
|
569
|
+
},
|
570
|
+
"url": "//images.contentful.com/yr5m0jky5hsh/4k8mYw2MzS6kYG0eGq0Yi0/e6cf326343b25955363ef0df00dca63c/codequest.jpg"
|
571
|
+
}
|
572
|
+
}
|
573
|
+
},
|
574
|
+
"sys": {
|
575
|
+
"id": "4k8mYw2MzS6kYG0eGq0Yi0",
|
576
|
+
"type": "Asset",
|
577
|
+
"createdAt": "2014-07-30T12:20:17.778Z",
|
578
|
+
"createdBy": {
|
579
|
+
"sys": {
|
580
|
+
"type": "Link",
|
581
|
+
"linkType": "User",
|
582
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
583
|
+
}
|
584
|
+
},
|
585
|
+
"space": {
|
586
|
+
"sys": {
|
587
|
+
"type": "Link",
|
588
|
+
"linkType": "Space",
|
589
|
+
"id": "yr5m0jky5hsh"
|
590
|
+
}
|
591
|
+
},
|
592
|
+
"version": 2,
|
593
|
+
"updatedAt": "2014-07-30T12:20:19.237Z",
|
594
|
+
"updatedBy": {
|
595
|
+
"sys": {
|
596
|
+
"type": "Link",
|
597
|
+
"linkType": "User",
|
598
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
599
|
+
}
|
600
|
+
}
|
601
|
+
}
|
602
|
+
},
|
603
|
+
{
|
604
|
+
"fields": {
|
605
|
+
"title": {
|
606
|
+
"en-US": "Dog photo"
|
607
|
+
},
|
608
|
+
"description": {
|
609
|
+
"en-US": "Photo of Dog"
|
610
|
+
},
|
611
|
+
"file": {
|
612
|
+
"en-US": {
|
613
|
+
"fileName": "piesel_tTWRRK8aCP,q250.jpg",
|
614
|
+
"contentType": "image/jpeg",
|
615
|
+
"details": {
|
616
|
+
"image": {
|
617
|
+
"width": 250,
|
618
|
+
"height": 250
|
619
|
+
},
|
620
|
+
"size": 22083
|
621
|
+
},
|
622
|
+
"url": "//images.contentful.com/yr5m0jky5hsh/6zEogZjpO8cq6YOOQigiAw/09037706e5c5e6c2b910f9a4160eb697/piesel_tTWRRK8aCP_q250.jpg"
|
623
|
+
}
|
624
|
+
}
|
625
|
+
},
|
626
|
+
"sys": {
|
627
|
+
"id": "6zEogZjpO8cq6YOOQigiAw",
|
628
|
+
"type": "Asset",
|
629
|
+
"createdAt": "2014-07-30T12:14:49.380Z",
|
630
|
+
"createdBy": {
|
631
|
+
"sys": {
|
632
|
+
"type": "Link",
|
633
|
+
"linkType": "User",
|
634
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
635
|
+
}
|
636
|
+
},
|
637
|
+
"space": {
|
638
|
+
"sys": {
|
639
|
+
"type": "Link",
|
640
|
+
"linkType": "Space",
|
641
|
+
"id": "yr5m0jky5hsh"
|
642
|
+
}
|
643
|
+
},
|
644
|
+
"version": 58,
|
645
|
+
"updatedAt": "2014-07-30T12:16:37.270Z",
|
646
|
+
"updatedBy": {
|
647
|
+
"sys": {
|
648
|
+
"type": "Link",
|
649
|
+
"linkType": "User",
|
650
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
651
|
+
}
|
652
|
+
}
|
653
|
+
}
|
654
|
+
},
|
655
|
+
{
|
656
|
+
"fields": {
|
657
|
+
"title": {
|
658
|
+
"en-US": "titlebyCreateAPI_custom_id"
|
659
|
+
},
|
660
|
+
"description": {
|
661
|
+
"en-US": "descByAPI_custom_id"
|
662
|
+
},
|
663
|
+
"file": {
|
664
|
+
"en-US": {
|
665
|
+
"contentType": "image/jpeg",
|
666
|
+
"fileName": "codequest.jpg",
|
667
|
+
"details": {
|
668
|
+
"image": {
|
669
|
+
"width": 90,
|
670
|
+
"height": 90
|
671
|
+
},
|
672
|
+
"size": 7094
|
673
|
+
},
|
674
|
+
"url": "//images.contentful.com/yr5m0jky5hsh/codequest_id_test_custom/8c9205380d47c5fdd9a9f01acfc23aa0/codequest.jpg"
|
675
|
+
}
|
676
|
+
}
|
677
|
+
},
|
678
|
+
"sys": {
|
679
|
+
"id": "codequest_id_test_custom",
|
680
|
+
"type": "Asset",
|
681
|
+
"createdAt": "2014-07-31T07:38:09.232Z",
|
682
|
+
"createdBy": {
|
683
|
+
"sys": {
|
684
|
+
"type": "Link",
|
685
|
+
"linkType": "User",
|
686
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
687
|
+
}
|
688
|
+
},
|
689
|
+
"space": {
|
690
|
+
"sys": {
|
691
|
+
"type": "Link",
|
692
|
+
"linkType": "Space",
|
693
|
+
"id": "yr5m0jky5hsh"
|
694
|
+
}
|
695
|
+
},
|
696
|
+
"firstPublishedAt": "2014-07-31T13:21:14.146Z",
|
697
|
+
"publishedCounter": 1,
|
698
|
+
"version": 4,
|
699
|
+
"updatedAt": "2014-07-31T13:21:38.397Z",
|
700
|
+
"updatedBy": {
|
701
|
+
"sys": {
|
702
|
+
"type": "Link",
|
703
|
+
"linkType": "User",
|
704
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
705
|
+
}
|
706
|
+
}
|
707
|
+
}
|
708
|
+
},
|
709
|
+
{
|
710
|
+
"fields": {
|
711
|
+
"title": {
|
712
|
+
"en-US": "Company logo",
|
713
|
+
"pl": "Firmowe logo"
|
714
|
+
},
|
715
|
+
"description": {
|
716
|
+
"en-US": "Company logo",
|
717
|
+
"pl": "Logo firmy Codequest"
|
718
|
+
},
|
719
|
+
"file": {
|
720
|
+
"en-US": {
|
721
|
+
"fileName": "codequest.jpg",
|
722
|
+
"contentType": "image/jpeg",
|
723
|
+
"details": {
|
724
|
+
"image": {
|
725
|
+
"width": 90,
|
726
|
+
"height": 90
|
727
|
+
},
|
728
|
+
"size": 7094
|
729
|
+
},
|
730
|
+
"url": "//images.contentful.com/yr5m0jky5hsh/35Kt2tInIsoauo8sC82q04/3c84f80a23e1f3ac7717a7a9be59e8d0/codequest.jpg"
|
731
|
+
},
|
732
|
+
"pl": {
|
733
|
+
"fileName": "codequest.jpg",
|
734
|
+
"contentType": "image/jpeg",
|
735
|
+
"details": {
|
736
|
+
"image": {
|
737
|
+
"width": 90,
|
738
|
+
"height": 90
|
739
|
+
},
|
740
|
+
"size": 7094
|
741
|
+
},
|
742
|
+
"url": "//images.contentful.com/yr5m0jky5hsh/35Kt2tInIsoauo8sC82q04/96228bd042f66a29b071c047350d0f4e/codequest.jpg"
|
743
|
+
}
|
744
|
+
}
|
745
|
+
},
|
746
|
+
"sys": {
|
747
|
+
"id": "35Kt2tInIsoauo8sC82q04",
|
748
|
+
"type": "Asset",
|
749
|
+
"createdAt": "2014-07-31T12:57:45.481Z",
|
750
|
+
"createdBy": {
|
751
|
+
"sys": {
|
752
|
+
"type": "Link",
|
753
|
+
"linkType": "User",
|
754
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
755
|
+
}
|
756
|
+
},
|
757
|
+
"space": {
|
758
|
+
"sys": {
|
759
|
+
"type": "Link",
|
760
|
+
"linkType": "Space",
|
761
|
+
"id": "yr5m0jky5hsh"
|
762
|
+
}
|
763
|
+
},
|
764
|
+
"firstPublishedAt": "2014-08-01T12:09:35.071Z",
|
765
|
+
"publishedCounter": 1,
|
766
|
+
"publishedAt": "2014-08-01T12:09:35.071Z",
|
767
|
+
"publishedBy": {
|
768
|
+
"sys": {
|
769
|
+
"type": "Link",
|
770
|
+
"linkType": "User",
|
771
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
772
|
+
}
|
773
|
+
},
|
774
|
+
"publishedVersion": 15,
|
775
|
+
"version": 16,
|
776
|
+
"updatedAt": "2014-08-01T12:09:35.075Z",
|
777
|
+
"updatedBy": {
|
778
|
+
"sys": {
|
779
|
+
"type": "Link",
|
780
|
+
"linkType": "User",
|
781
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
782
|
+
}
|
783
|
+
}
|
784
|
+
}
|
785
|
+
},
|
786
|
+
{
|
787
|
+
"fields": {
|
788
|
+
"title": {
|
789
|
+
"en-US": "Logo of Codeqest comapny",
|
790
|
+
"pl": "Firmowe logo"
|
791
|
+
},
|
792
|
+
"description": {
|
793
|
+
"en-US": "Company logo codequest",
|
794
|
+
"pl": "Logo firmy Codequest"
|
795
|
+
},
|
796
|
+
"file": {
|
797
|
+
"en-US": {
|
798
|
+
"contentType": "image/jpeg",
|
799
|
+
"fileName": "codequest.jpg",
|
800
|
+
"details": {
|
801
|
+
"image": {
|
802
|
+
"width": 90,
|
803
|
+
"height": 90
|
804
|
+
},
|
805
|
+
"size": 7094
|
806
|
+
},
|
807
|
+
"url": "//images.contentful.com/yr5m0jky5hsh/3mXl8vsv7y2s2wIgYyCKAY/61a6cd844fba7dcb333b8bfa89ab3948/codequest.jpg"
|
808
|
+
},
|
809
|
+
"pl": {
|
810
|
+
"contentType": "image/jpeg",
|
811
|
+
"fileName": "codequest.jpg",
|
812
|
+
"details": {
|
813
|
+
"image": {
|
814
|
+
"width": 90,
|
815
|
+
"height": 90
|
816
|
+
},
|
817
|
+
"size": 7094
|
818
|
+
},
|
819
|
+
"url": "//images.contentful.com/yr5m0jky5hsh/3mXl8vsv7y2s2wIgYyCKAY/efc40d137bf5e8699120bf2af109dcc9/codequest.jpg"
|
820
|
+
}
|
821
|
+
}
|
822
|
+
},
|
823
|
+
"sys": {
|
824
|
+
"id": "3mXl8vsv7y2s2wIgYyCKAY",
|
825
|
+
"type": "Asset",
|
826
|
+
"createdAt": "2014-08-01T13:16:21.493Z",
|
827
|
+
"createdBy": {
|
828
|
+
"sys": {
|
829
|
+
"type": "Link",
|
830
|
+
"linkType": "User",
|
831
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
832
|
+
}
|
833
|
+
},
|
834
|
+
"space": {
|
835
|
+
"sys": {
|
836
|
+
"type": "Link",
|
837
|
+
"linkType": "Space",
|
838
|
+
"id": "yr5m0jky5hsh"
|
839
|
+
}
|
840
|
+
},
|
841
|
+
"version": 3,
|
842
|
+
"updatedAt": "2014-08-01T13:16:23.074Z",
|
843
|
+
"updatedBy": {
|
844
|
+
"sys": {
|
845
|
+
"type": "Link",
|
846
|
+
"linkType": "User",
|
847
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
848
|
+
}
|
849
|
+
}
|
850
|
+
}
|
851
|
+
}
|
852
|
+
]
|
853
|
+
}
|
854
|
+
http_version:
|
855
|
+
recorded_at: Fri, 01 Aug 2014 13:17:01 GMT
|
856
|
+
- request:
|
857
|
+
method: post
|
858
|
+
uri: https://api.contentful.com/spaces/yr5m0jky5hsh/assets/
|
859
|
+
body:
|
860
|
+
encoding: UTF-8
|
861
|
+
string: '{"fields":{"title":{"en-US":"Logo of Codequest comapny","pl":"Firmowe
|
862
|
+
logo"},"description":{"en-US":"Company logo codequest","pl":"Logo firmy Codequest"},"file":{"en-US":{"contentType":"image/jpeg","fileName":"codequest.jpg","upload":"http://static.goldenline.pl/firm_logo/082/firm_225106_22f37f_small.jpg"},"pl":{"contentType":"image/jpeg","fileName":"codequest.jpg","upload":"http://static.goldenline.pl/firm_logo/082/firm_225106_22f37f_small.jpg"}}}}'
|
863
|
+
headers:
|
864
|
+
User-Agent:
|
865
|
+
- RubyContenfulManagementGem/0.0.1
|
866
|
+
Authorization:
|
867
|
+
- Bearer <ACCESS_TOKEN>
|
868
|
+
Content-Type:
|
869
|
+
- application/vnd.contentful.management.v1+json
|
870
|
+
Host:
|
871
|
+
- api.contentful.com
|
872
|
+
response:
|
873
|
+
status:
|
874
|
+
code: 201
|
875
|
+
message: Created
|
876
|
+
headers:
|
877
|
+
Server:
|
878
|
+
- nginx
|
879
|
+
Date:
|
880
|
+
- Fri, 01 Aug 2014 13:17:02 GMT
|
881
|
+
Content-Type:
|
882
|
+
- application/vnd.contentful.management.v1+json
|
883
|
+
Content-Length:
|
884
|
+
- '1204'
|
885
|
+
Connection:
|
886
|
+
- keep-alive
|
887
|
+
X-Powered-By:
|
888
|
+
- Express
|
889
|
+
Cf-Space-Id:
|
890
|
+
- yr5m0jky5hsh
|
891
|
+
Etag:
|
892
|
+
- '"91ae3a57f300a8faa4047d5c0c46c11c"'
|
893
|
+
Access-Control-Allow-Origin:
|
894
|
+
- "*"
|
895
|
+
Access-Control-Allow-Headers:
|
896
|
+
- 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
|
897
|
+
Access-Control-Allow-Methods:
|
898
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
899
|
+
"^access-Control-Expose-Headers":
|
900
|
+
- Etag
|
901
|
+
Access-Control-Max-Age:
|
902
|
+
- '1728000'
|
903
|
+
body:
|
904
|
+
encoding: UTF-8
|
905
|
+
string: |
|
906
|
+
{
|
907
|
+
"fields": {
|
908
|
+
"title": {
|
909
|
+
"en-US": "Logo of Codequest comapny",
|
910
|
+
"pl": "Firmowe logo"
|
911
|
+
},
|
912
|
+
"description": {
|
913
|
+
"en-US": "Company logo codequest",
|
914
|
+
"pl": "Logo firmy Codequest"
|
915
|
+
},
|
916
|
+
"file": {
|
917
|
+
"en-US": {
|
918
|
+
"contentType": "image/jpeg",
|
919
|
+
"fileName": "codequest.jpg",
|
920
|
+
"upload": "http://static.goldenline.pl/firm_logo/082/firm_225106_22f37f_small.jpg"
|
921
|
+
},
|
922
|
+
"pl": {
|
923
|
+
"contentType": "image/jpeg",
|
924
|
+
"fileName": "codequest.jpg",
|
925
|
+
"upload": "http://static.goldenline.pl/firm_logo/082/firm_225106_22f37f_small.jpg"
|
926
|
+
}
|
927
|
+
}
|
928
|
+
},
|
929
|
+
"sys": {
|
930
|
+
"id": "1fNn0ZFohOKi42ewiwoGyo",
|
931
|
+
"type": "Asset",
|
932
|
+
"version": 1,
|
933
|
+
"createdAt": "2014-08-01T13:17:02.208Z",
|
934
|
+
"createdBy": {
|
935
|
+
"sys": {
|
936
|
+
"type": "Link",
|
937
|
+
"linkType": "User",
|
938
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
939
|
+
}
|
940
|
+
},
|
941
|
+
"space": {
|
942
|
+
"sys": {
|
943
|
+
"type": "Link",
|
944
|
+
"linkType": "Space",
|
945
|
+
"id": "yr5m0jky5hsh"
|
946
|
+
}
|
947
|
+
},
|
948
|
+
"updatedAt": "2014-08-01T13:17:02.208Z",
|
949
|
+
"updatedBy": {
|
950
|
+
"sys": {
|
951
|
+
"type": "Link",
|
952
|
+
"linkType": "User",
|
953
|
+
"id": "1E7acJL8I5XUXAMHQt9Grs"
|
954
|
+
}
|
955
|
+
}
|
956
|
+
}
|
957
|
+
}
|
958
|
+
http_version:
|
959
|
+
recorded_at: Fri, 01 Aug 2014 13:17:02 GMT
|
960
|
+
- request:
|
961
|
+
method: put
|
962
|
+
uri: https://api.contentful.com/spaces/yr5m0jky5hsh/assets/1fNn0ZFohOKi42ewiwoGyo/files/en-US/process
|
963
|
+
body:
|
964
|
+
encoding: US-ASCII
|
965
|
+
string: ''
|
966
|
+
headers:
|
967
|
+
User-Agent:
|
968
|
+
- RubyContenfulManagementGem/0.0.1
|
969
|
+
Authorization:
|
970
|
+
- Bearer <ACCESS_TOKEN>
|
971
|
+
Content-Type:
|
972
|
+
- application/vnd.contentful.management.v1+json
|
973
|
+
X-Contentful-Version:
|
974
|
+
- '1'
|
975
|
+
Content-Length:
|
976
|
+
- '0'
|
977
|
+
Host:
|
978
|
+
- api.contentful.com
|
979
|
+
response:
|
980
|
+
status:
|
981
|
+
code: 204
|
982
|
+
message: No Content
|
983
|
+
headers:
|
984
|
+
Server:
|
985
|
+
- nginx
|
986
|
+
Date:
|
987
|
+
- Fri, 01 Aug 2014 13:17:02 GMT
|
988
|
+
Content-Type:
|
989
|
+
- application/vnd.contentful.management.v1+json
|
990
|
+
Connection:
|
991
|
+
- keep-alive
|
992
|
+
X-Powered-By:
|
993
|
+
- Express
|
994
|
+
Cf-Space-Id:
|
995
|
+
- yr5m0jky5hsh
|
996
|
+
Access-Control-Allow-Origin:
|
997
|
+
- "*"
|
998
|
+
Access-Control-Allow-Headers:
|
999
|
+
- 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
|
1000
|
+
Access-Control-Allow-Methods:
|
1001
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
1002
|
+
"^access-Control-Expose-Headers":
|
1003
|
+
- Etag
|
1004
|
+
Access-Control-Max-Age:
|
1005
|
+
- '1728000'
|
1006
|
+
body:
|
1007
|
+
encoding: UTF-8
|
1008
|
+
string: ''
|
1009
|
+
http_version:
|
1010
|
+
recorded_at: Fri, 01 Aug 2014 13:17:03 GMT
|
1011
|
+
- request:
|
1012
|
+
method: put
|
1013
|
+
uri: https://api.contentful.com/spaces/yr5m0jky5hsh/assets/1fNn0ZFohOKi42ewiwoGyo/files/pl/process
|
1014
|
+
body:
|
1015
|
+
encoding: US-ASCII
|
1016
|
+
string: ''
|
1017
|
+
headers:
|
1018
|
+
User-Agent:
|
1019
|
+
- RubyContenfulManagementGem/0.0.1
|
1020
|
+
Authorization:
|
1021
|
+
- Bearer <ACCESS_TOKEN>
|
1022
|
+
Content-Type:
|
1023
|
+
- application/vnd.contentful.management.v1+json
|
1024
|
+
X-Contentful-Version:
|
1025
|
+
- '1'
|
1026
|
+
Content-Length:
|
1027
|
+
- '0'
|
1028
|
+
Host:
|
1029
|
+
- api.contentful.com
|
1030
|
+
response:
|
1031
|
+
status:
|
1032
|
+
code: 204
|
1033
|
+
message: No Content
|
1034
|
+
headers:
|
1035
|
+
Server:
|
1036
|
+
- nginx
|
1037
|
+
Date:
|
1038
|
+
- Fri, 01 Aug 2014 13:17:03 GMT
|
1039
|
+
Content-Type:
|
1040
|
+
- application/vnd.contentful.management.v1+json
|
1041
|
+
Connection:
|
1042
|
+
- keep-alive
|
1043
|
+
X-Powered-By:
|
1044
|
+
- Express
|
1045
|
+
Cf-Space-Id:
|
1046
|
+
- yr5m0jky5hsh
|
1047
|
+
Access-Control-Allow-Origin:
|
1048
|
+
- "*"
|
1049
|
+
Access-Control-Allow-Headers:
|
1050
|
+
- 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
|
1051
|
+
Access-Control-Allow-Methods:
|
1052
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
1053
|
+
"^access-Control-Expose-Headers":
|
1054
|
+
- Etag
|
1055
|
+
Access-Control-Max-Age:
|
1056
|
+
- '1728000'
|
1057
|
+
body:
|
1058
|
+
encoding: UTF-8
|
1059
|
+
string: ''
|
1060
|
+
http_version:
|
1061
|
+
recorded_at: Fri, 01 Aug 2014 13:17:03 GMT
|
1062
|
+
recorded_with: VCR 2.9.2
|