contentful-management 0.0.1.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (188) hide show
  1. data/.gitignore +24 -0
  2. data/.reek +3 -0
  3. data/.rspec +3 -0
  4. data/.rubocop.yml +16 -0
  5. data/.travis.yml +9 -0
  6. data/CHANGELOG.md +2 -0
  7. data/Gemfile +13 -0
  8. data/LICENSE.txt +22 -0
  9. data/README.md +408 -0
  10. data/Rakefile +37 -0
  11. data/bin/cma-console +8 -0
  12. data/contentful-management.gemspec +33 -0
  13. data/examples/blog.rb +82 -0
  14. data/examples/content_types.rb +45 -0
  15. data/examples/create_space.rb +35 -0
  16. data/lib/contentful/management.rb +12 -0
  17. data/lib/contentful/management/array.rb +35 -0
  18. data/lib/contentful/management/asset.rb +163 -0
  19. data/lib/contentful/management/client.rb +160 -0
  20. data/lib/contentful/management/content_type.rb +180 -0
  21. data/lib/contentful/management/dynamic_entry.rb +71 -0
  22. data/lib/contentful/management/entry.rb +213 -0
  23. data/lib/contentful/management/error.rb +62 -0
  24. data/lib/contentful/management/field.rb +34 -0
  25. data/lib/contentful/management/file.rb +15 -0
  26. data/lib/contentful/management/http_client.rb +22 -0
  27. data/lib/contentful/management/link.rb +23 -0
  28. data/lib/contentful/management/locale.rb +48 -0
  29. data/lib/contentful/management/location.rb +15 -0
  30. data/lib/contentful/management/request.rb +82 -0
  31. data/lib/contentful/management/resource.rb +166 -0
  32. data/lib/contentful/management/resource/array_like.rb +37 -0
  33. data/lib/contentful/management/resource/fields.rb +69 -0
  34. data/lib/contentful/management/resource/refresher.rb +21 -0
  35. data/lib/contentful/management/resource/system_properties.rb +56 -0
  36. data/lib/contentful/management/resource_builder.rb +269 -0
  37. data/lib/contentful/management/response.rb +72 -0
  38. data/lib/contentful/management/space.rb +159 -0
  39. data/lib/contentful/management/support.rb +24 -0
  40. data/lib/contentful/management/version.rb +6 -0
  41. data/spec/fixtures/vcr_cassettes/array_page_1.yml +1337 -0
  42. data/spec/fixtures/vcr_cassettes/asset/all.yml +611 -0
  43. data/spec/fixtures/vcr_cassettes/asset/archive.yml +228 -0
  44. data/spec/fixtures/vcr_cassettes/asset/archive_published.yml +177 -0
  45. data/spec/fixtures/vcr_cassettes/asset/archived_false.yml +228 -0
  46. data/spec/fixtures/vcr_cassettes/asset/archived_true.yml +228 -0
  47. data/spec/fixtures/vcr_cassettes/asset/create.yml +150 -0
  48. data/spec/fixtures/vcr_cassettes/asset/create_with_already_used_id.yml +56 -0
  49. data/spec/fixtures/vcr_cassettes/asset/create_with_custom_id.yml +150 -0
  50. data/spec/fixtures/vcr_cassettes/asset/destroy.yml +159 -0
  51. data/spec/fixtures/vcr_cassettes/asset/destroy_published.yml +175 -0
  52. data/spec/fixtures/vcr_cassettes/asset/find.yml +108 -0
  53. data/spec/fixtures/vcr_cassettes/asset/find_not_found.yml +64 -0
  54. data/spec/fixtures/vcr_cassettes/asset/image_url.yml +133 -0
  55. data/spec/fixtures/vcr_cassettes/asset/locale.yml +110 -0
  56. data/spec/fixtures/vcr_cassettes/asset/publish.yml +228 -0
  57. data/spec/fixtures/vcr_cassettes/asset/publish_already_published.yml +176 -0
  58. data/spec/fixtures/vcr_cassettes/asset/published_false.yml +228 -0
  59. data/spec/fixtures/vcr_cassettes/asset/published_true.yml +226 -0
  60. data/spec/fixtures/vcr_cassettes/asset/save_update.yml +242 -0
  61. data/spec/fixtures/vcr_cassettes/asset/set_locale.yml +110 -0
  62. data/spec/fixtures/vcr_cassettes/asset/unarchive.yml +228 -0
  63. data/spec/fixtures/vcr_cassettes/asset/unarchive_already_unarchive.yml +168 -0
  64. data/spec/fixtures/vcr_cassettes/asset/unarchive_already_unarchived.yml +168 -0
  65. data/spec/fixtures/vcr_cassettes/asset/unpublish.yml +228 -0
  66. data/spec/fixtures/vcr_cassettes/asset/unpublish_already_unpublished.yml +168 -0
  67. data/spec/fixtures/vcr_cassettes/asset/update_file.yml +207 -0
  68. data/spec/fixtures/vcr_cassettes/asset/update_to_specified_locale.yml +224 -0
  69. data/spec/fixtures/vcr_cassettes/asset/update_with_default_locale_without_file.yml +214 -0
  70. data/spec/fixtures/vcr_cassettes/content_type/activate.yml +246 -0
  71. data/spec/fixtures/vcr_cassettes/content_type/activate_with_invalid_version.yml +186 -0
  72. data/spec/fixtures/vcr_cassettes/content_type/activated_false.yml +246 -0
  73. data/spec/fixtures/vcr_cassettes/content_type/activated_true.yml +257 -0
  74. data/spec/fixtures/vcr_cassettes/content_type/all.yml +190 -0
  75. data/spec/fixtures/vcr_cassettes/content_type/create.yml +87 -0
  76. data/spec/fixtures/vcr_cassettes/content_type/create_content_type_with_id.yml +87 -0
  77. data/spec/fixtures/vcr_cassettes/content_type/create_with_Array_field.yml +94 -0
  78. data/spec/fixtures/vcr_cassettes/content_type/create_with_Boolean_field.yml +94 -0
  79. data/spec/fixtures/vcr_cassettes/content_type/create_with_Date_field.yml +94 -0
  80. data/spec/fixtures/vcr_cassettes/content_type/create_with_Integer_field.yml +94 -0
  81. data/spec/fixtures/vcr_cassettes/content_type/create_with_Link_field.yml +95 -0
  82. data/spec/fixtures/vcr_cassettes/content_type/create_with_Location_field.yml +94 -0
  83. data/spec/fixtures/vcr_cassettes/content_type/create_with_Number_field.yml +94 -0
  84. data/spec/fixtures/vcr_cassettes/content_type/create_with_Object_field.yml +94 -0
  85. data/spec/fixtures/vcr_cassettes/content_type/create_with_Symbol_field.yml +94 -0
  86. data/spec/fixtures/vcr_cassettes/content_type/create_with_Text_field.yml +94 -0
  87. data/spec/fixtures/vcr_cassettes/content_type/deactivate.yml +246 -0
  88. data/spec/fixtures/vcr_cassettes/content_type/deactivate_already_deactivated.yml +176 -0
  89. data/spec/fixtures/vcr_cassettes/content_type/deactivate_with_entries.yml +236 -0
  90. data/spec/fixtures/vcr_cassettes/content_type/deactivate_with_version_change.yml +248 -0
  91. data/spec/fixtures/vcr_cassettes/content_type/destroy.yml +148 -0
  92. data/spec/fixtures/vcr_cassettes/content_type/destroy_activated.yml +164 -0
  93. data/spec/fixtures/vcr_cassettes/content_type/entry/create.yml +1344 -0
  94. data/spec/fixtures/vcr_cassettes/content_type/entry/create_with_camel_case_id_to_multiple_locales.yml +235 -0
  95. data/spec/fixtures/vcr_cassettes/content_type/entry/create_with_entries.yml +398 -0
  96. data/spec/fixtures/vcr_cassettes/content_type/entry/create_with_entries_for_multiple_locales.yml +3157 -0
  97. data/spec/fixtures/vcr_cassettes/content_type/entry/create_with_multiple_locales.yml +230 -0
  98. data/spec/fixtures/vcr_cassettes/content_type/fields/add.yml +345 -0
  99. data/spec/fixtures/vcr_cassettes/content_type/fields/create.yml +353 -0
  100. data/spec/fixtures/vcr_cassettes/content_type/fields/create_array_with_params.yml +228 -0
  101. data/spec/fixtures/vcr_cassettes/content_type/fields/create_with_params.yml +221 -0
  102. data/spec/fixtures/vcr_cassettes/content_type/fields/destroy.yml +349 -0
  103. data/spec/fixtures/vcr_cassettes/content_type/fields/update_field.yml +358 -0
  104. data/spec/fixtures/vcr_cassettes/content_type/find.yml +180 -0
  105. data/spec/fixtures/vcr_cassettes/content_type/find_not_found.yml +64 -0
  106. data/spec/fixtures/vcr_cassettes/content_type/save_new.yml +876 -0
  107. data/spec/fixtures/vcr_cassettes/content_type/save_updated.yml +345 -0
  108. data/spec/fixtures/vcr_cassettes/content_type/save_with_added_field.yml +217 -0
  109. data/spec/fixtures/vcr_cassettes/content_type/update.yml +175 -0
  110. data/spec/fixtures/vcr_cassettes/content_type/update_change_field_name.yml +222 -0
  111. data/spec/fixtures/vcr_cassettes/content_type/update_remove_field.yml +231 -0
  112. data/spec/fixtures/vcr_cassettes/content_type/update_with_fields.yml +222 -0
  113. data/spec/fixtures/vcr_cassettes/content_type/update_with_one_new_field.yml +251 -0
  114. data/spec/fixtures/vcr_cassettes/entry/all.yml +139 -0
  115. data/spec/fixtures/vcr_cassettes/entry/archive.yml +222 -0
  116. data/spec/fixtures/vcr_cassettes/entry/archive_published.yml +187 -0
  117. data/spec/fixtures/vcr_cassettes/entry/archived_false.yml +178 -0
  118. data/spec/fixtures/vcr_cassettes/entry/archived_true.yml +248 -0
  119. data/spec/fixtures/vcr_cassettes/entry/create.yml +245 -0
  120. data/spec/fixtures/vcr_cassettes/entry/create_test.yml +150 -0
  121. data/spec/fixtures/vcr_cassettes/entry/create_with_asset.yml +403 -0
  122. data/spec/fixtures/vcr_cassettes/entry/create_with_assets.yml +419 -0
  123. data/spec/fixtures/vcr_cassettes/entry/create_with_entries.yml +418 -0
  124. data/spec/fixtures/vcr_cassettes/entry/create_with_entry.yml +493 -0
  125. data/spec/fixtures/vcr_cassettes/entry/create_with_location.yml +259 -0
  126. data/spec/fixtures/vcr_cassettes/entry/create_with_symbols.yml +271 -0
  127. data/spec/fixtures/vcr_cassettes/entry/destory_published.yml +172 -0
  128. data/spec/fixtures/vcr_cassettes/entry/destroy.yml +156 -0
  129. data/spec/fixtures/vcr_cassettes/entry/find.yml +129 -0
  130. data/spec/fixtures/vcr_cassettes/entry/find_not_found.yml +64 -0
  131. data/spec/fixtures/vcr_cassettes/entry/publish.yml +248 -0
  132. data/spec/fixtures/vcr_cassettes/entry/publish_already_published.yml +186 -0
  133. data/spec/fixtures/vcr_cassettes/entry/published_false.yml +248 -0
  134. data/spec/fixtures/vcr_cassettes/entry/published_true.yml +257 -0
  135. data/spec/fixtures/vcr_cassettes/entry/save_update.yml +211 -0
  136. data/spec/fixtures/vcr_cassettes/entry/unarchive.yml +248 -0
  137. data/spec/fixtures/vcr_cassettes/entry/unarchive_already_unarchived.yml +178 -0
  138. data/spec/fixtures/vcr_cassettes/entry/unpublish.yml +248 -0
  139. data/spec/fixtures/vcr_cassettes/entry/unpublish_already_unpublished.yml +178 -0
  140. data/spec/fixtures/vcr_cassettes/entry/update.yml +626 -0
  141. data/spec/fixtures/vcr_cassettes/entry/update_unlocalized_field.yml +308 -0
  142. data/spec/fixtures/vcr_cassettes/entry/update_with_custom_locale.yml +332 -0
  143. data/spec/fixtures/vcr_cassettes/get_request.yml +37 -0
  144. data/spec/fixtures/vcr_cassettes/locale/all_for_space.yml +321 -0
  145. data/spec/fixtures/vcr_cassettes/locale/create_for_space.yml +95 -0
  146. data/spec/fixtures/vcr_cassettes/locale/find.yml +95 -0
  147. data/spec/fixtures/vcr_cassettes/locale/find_for_space_not_found.yml +67 -0
  148. data/spec/fixtures/vcr_cassettes/space/all.yml +1201 -0
  149. data/spec/fixtures/vcr_cassettes/space/asset/all.yml +475 -0
  150. data/spec/fixtures/vcr_cassettes/space/asset/assets.yml +826 -0
  151. data/spec/fixtures/vcr_cassettes/space/asset/create.yml +508 -0
  152. data/spec/fixtures/vcr_cassettes/space/asset/create_with_multiple_locales.yml +1062 -0
  153. data/spec/fixtures/vcr_cassettes/space/asset/find.yml +634 -0
  154. data/spec/fixtures/vcr_cassettes/space/content_type/all.yml +470 -0
  155. data/spec/fixtures/vcr_cassettes/space/content_type/content_types.yml +341 -0
  156. data/spec/fixtures/vcr_cassettes/space/content_type/create.yml +425 -0
  157. data/spec/fixtures/vcr_cassettes/space/content_type/find.yml +493 -0
  158. data/spec/fixtures/vcr_cassettes/space/create.yml +85 -0
  159. data/spec/fixtures/vcr_cassettes/space/create_when_limit_has_been_reached.yml +67 -0
  160. data/spec/fixtures/vcr_cassettes/space/create_with_unknown_organization.yml +65 -0
  161. data/spec/fixtures/vcr_cassettes/space/create_without_organization.yml +83 -0
  162. data/spec/fixtures/vcr_cassettes/space/destory.yml +196 -0
  163. data/spec/fixtures/vcr_cassettes/space/entry/all.yml +634 -0
  164. data/spec/fixtures/vcr_cassettes/space/entry/entries.yml +498 -0
  165. data/spec/fixtures/vcr_cassettes/space/entry/find.yml +624 -0
  166. data/spec/fixtures/vcr_cassettes/space/find.yml +270 -0
  167. data/spec/fixtures/vcr_cassettes/space/find_not_found.yml +67 -0
  168. data/spec/fixtures/vcr_cassettes/space/locale/all.yml +690 -0
  169. data/spec/fixtures/vcr_cassettes/space/locale/create.yml +572 -0
  170. data/spec/fixtures/vcr_cassettes/space/locale/create_with_the_same_code.yml +585 -0
  171. data/spec/fixtures/vcr_cassettes/space/locale/find.yml +572 -0
  172. data/spec/fixtures/vcr_cassettes/space/locale/find_not_found.yml +580 -0
  173. data/spec/fixtures/vcr_cassettes/space/locale/locales.yml +480 -0
  174. data/spec/fixtures/vcr_cassettes/space/locale/update.yml +700 -0
  175. data/spec/fixtures/vcr_cassettes/space/save_new_space.yml +67 -0
  176. data/spec/fixtures/vcr_cassettes/space/save_update_space.yml +352 -0
  177. data/spec/fixtures/vcr_cassettes/space/update.yml +350 -0
  178. data/spec/fixtures/vcr_cassettes/space/update_with_the_same_data.yml +350 -0
  179. data/spec/lib/contentful/management/array_spec.rb +59 -0
  180. data/spec/lib/contentful/management/asset_spec.rb +321 -0
  181. data/spec/lib/contentful/management/client_spec.rb +80 -0
  182. data/spec/lib/contentful/management/content_type_spec.rb +455 -0
  183. data/spec/lib/contentful/management/entry_spec.rb +308 -0
  184. data/spec/lib/contentful/management/locale_spec.rb +53 -0
  185. data/spec/lib/contentful/management/space_spec.rb +317 -0
  186. data/spec/spec_helper.rb +10 -0
  187. data/spec/support/vcr.rb +17 -0
  188. metadata +554 -0
@@ -0,0 +1,611 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.contentful.com/spaces/yr5m0jky5hsh/assets
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
+ - Thu, 31 Jul 2014 07:26:16 GMT
29
+ Content-Type:
30
+ - application/vnd.contentful.management.v1+json
31
+ Content-Length:
32
+ - '13736'
33
+ Connection:
34
+ - keep-alive
35
+ X-Powered-By:
36
+ - Express
37
+ Cf-Space-Id:
38
+ - yr5m0jky5hsh
39
+ Etag:
40
+ - '"13b8d616784ecfdb2cbec022dabff594"'
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": 11,
59
+ "skip": 0,
60
+ "limit": 100,
61
+ "items": [
62
+ {
63
+ "fields": {
64
+ "title": {
65
+ "en-US": "CodeQuest"
66
+ },
67
+ "description": {
68
+ "en-US": "Logo of Codequest"
69
+ },
70
+ "file": {
71
+ "en-US": {
72
+ "contentType": "image/jpeg",
73
+ "fileName": "codequest.jpg",
74
+ "details": {
75
+ "image": {
76
+ "width": 90,
77
+ "height": 90
78
+ },
79
+ "size": 7094
80
+ },
81
+ "url": "//images.contentful.com/yr5m0jky5hsh/4k8mYw2MzS6kYG0eGq0Yi0/e6cf326343b25955363ef0df00dca63c/codequest.jpg"
82
+ }
83
+ }
84
+ },
85
+ "sys": {
86
+ "id": "4k8mYw2MzS6kYG0eGq0Yi0",
87
+ "type": "Asset",
88
+ "createdAt": "2014-07-30T12:20:17.778Z",
89
+ "createdBy": {
90
+ "sys": {
91
+ "type": "Link",
92
+ "linkType": "User",
93
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
94
+ }
95
+ },
96
+ "space": {
97
+ "sys": {
98
+ "type": "Link",
99
+ "linkType": "Space",
100
+ "id": "yr5m0jky5hsh"
101
+ }
102
+ },
103
+ "version": 2,
104
+ "updatedAt": "2014-07-30T12:20:19.237Z",
105
+ "updatedBy": {
106
+ "sys": {
107
+ "type": "Link",
108
+ "linkType": "User",
109
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
110
+ }
111
+ }
112
+ }
113
+ },
114
+ {
115
+ "fields": {
116
+ "title": {
117
+ "en-US": "Dog photo"
118
+ },
119
+ "description": {
120
+ "en-US": "Photo of Dog"
121
+ },
122
+ "file": {
123
+ "en-US": {
124
+ "fileName": "piesel_tTWRRK8aCP,q250.jpg",
125
+ "contentType": "image/jpeg",
126
+ "details": {
127
+ "image": {
128
+ "width": 250,
129
+ "height": 250
130
+ },
131
+ "size": 22083
132
+ },
133
+ "url": "//images.contentful.com/yr5m0jky5hsh/6zEogZjpO8cq6YOOQigiAw/09037706e5c5e6c2b910f9a4160eb697/piesel_tTWRRK8aCP_q250.jpg"
134
+ }
135
+ }
136
+ },
137
+ "sys": {
138
+ "id": "6zEogZjpO8cq6YOOQigiAw",
139
+ "type": "Asset",
140
+ "createdAt": "2014-07-30T12:14:49.380Z",
141
+ "createdBy": {
142
+ "sys": {
143
+ "type": "Link",
144
+ "linkType": "User",
145
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
146
+ }
147
+ },
148
+ "space": {
149
+ "sys": {
150
+ "type": "Link",
151
+ "linkType": "Space",
152
+ "id": "yr5m0jky5hsh"
153
+ }
154
+ },
155
+ "version": 58,
156
+ "updatedAt": "2014-07-30T12:16:37.270Z",
157
+ "updatedBy": {
158
+ "sys": {
159
+ "type": "Link",
160
+ "linkType": "User",
161
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
162
+ }
163
+ }
164
+ }
165
+ },
166
+ {
167
+ "fields": {
168
+ "title": {
169
+ "en-US": "titlebyCreateAPI"
170
+ },
171
+ "description": {
172
+ "en-US": "descByAPI"
173
+ },
174
+ "file": {
175
+ "en-US": {
176
+ "contentType": "image/jpeg",
177
+ "fileName": "pic1.jpg",
178
+ "details": {
179
+ "image": {
180
+ "width": 1280,
181
+ "height": 1920
182
+ },
183
+ "size": 2584366
184
+ },
185
+ "url": "//images.contentful.com/yr5m0jky5hsh/4PuoXXjfkseW6AgsmWgsay/f7a78500b963590688785cb473d8e2ad/pic1.jpg"
186
+ }
187
+ }
188
+ },
189
+ "sys": {
190
+ "id": "4PuoXXjfkseW6AgsmWgsay",
191
+ "type": "Asset",
192
+ "createdAt": "2014-07-30T15:51:05.053Z",
193
+ "createdBy": {
194
+ "sys": {
195
+ "type": "Link",
196
+ "linkType": "User",
197
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
198
+ }
199
+ },
200
+ "space": {
201
+ "sys": {
202
+ "type": "Link",
203
+ "linkType": "Space",
204
+ "id": "yr5m0jky5hsh"
205
+ }
206
+ },
207
+ "version": 2,
208
+ "updatedAt": "2014-07-30T15:51:07.658Z",
209
+ "updatedBy": {
210
+ "sys": {
211
+ "type": "Link",
212
+ "linkType": "User",
213
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
214
+ }
215
+ }
216
+ }
217
+ },
218
+ {
219
+ "fields": {
220
+ "title": {
221
+ "en-US": "titlebyCreateAPI"
222
+ },
223
+ "description": {
224
+ "en-US": "descByAPI"
225
+ },
226
+ "file": {
227
+ "en-US": {
228
+ "contentType": "image/jpeg",
229
+ "fileName": "pic1.jpg",
230
+ "details": {
231
+ "image": {
232
+ "width": 1280,
233
+ "height": 1920
234
+ },
235
+ "size": 2584366
236
+ },
237
+ "url": "//images.contentful.com/yr5m0jky5hsh/3PYa73pXXiAmKqm8eu4qOS/33f8a874f270bc6d148cf4ab5f8117e6/pic1.jpg"
238
+ }
239
+ }
240
+ },
241
+ "sys": {
242
+ "id": "3PYa73pXXiAmKqm8eu4qOS",
243
+ "type": "Asset",
244
+ "createdAt": "2014-07-30T15:50:36.369Z",
245
+ "createdBy": {
246
+ "sys": {
247
+ "type": "Link",
248
+ "linkType": "User",
249
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
250
+ }
251
+ },
252
+ "space": {
253
+ "sys": {
254
+ "type": "Link",
255
+ "linkType": "Space",
256
+ "id": "yr5m0jky5hsh"
257
+ }
258
+ },
259
+ "version": 2,
260
+ "updatedAt": "2014-07-30T15:50:39.098Z",
261
+ "updatedBy": {
262
+ "sys": {
263
+ "type": "Link",
264
+ "linkType": "User",
265
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
266
+ }
267
+ }
268
+ }
269
+ },
270
+ {
271
+ "fields": {
272
+ "title": {
273
+ "en-US": "3242",
274
+ "pl-PL": "swerwer"
275
+ },
276
+ "description": {
277
+ "en-US": null
278
+ },
279
+ "file": {
280
+ "en-US": null
281
+ }
282
+ },
283
+ "sys": {
284
+ "id": "codequest_id_test_custom_id",
285
+ "type": "Asset",
286
+ "createdAt": "2014-07-30T13:24:53.570Z",
287
+ "createdBy": {
288
+ "sys": {
289
+ "type": "Link",
290
+ "linkType": "User",
291
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
292
+ }
293
+ },
294
+ "space": {
295
+ "sys": {
296
+ "type": "Link",
297
+ "linkType": "Space",
298
+ "id": "yr5m0jky5hsh"
299
+ }
300
+ },
301
+ "firstPublishedAt": "2014-07-30T15:09:52.708Z",
302
+ "publishedCounter": 3,
303
+ "publishedAt": "2014-07-30T15:18:11.105Z",
304
+ "publishedBy": {
305
+ "sys": {
306
+ "type": "Link",
307
+ "linkType": "User",
308
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
309
+ }
310
+ },
311
+ "publishedVersion": 10,
312
+ "version": 12,
313
+ "updatedAt": "2014-07-30T15:18:14.641Z",
314
+ "updatedBy": {
315
+ "sys": {
316
+ "type": "Link",
317
+ "linkType": "User",
318
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
319
+ }
320
+ }
321
+ }
322
+ },
323
+ {
324
+ "fields": {},
325
+ "sys": {
326
+ "id": "2hnzRwT8NmSe6OyceIcG46",
327
+ "type": "Asset",
328
+ "createdAt": "2014-07-30T15:45:52.771Z",
329
+ "createdBy": {
330
+ "sys": {
331
+ "type": "Link",
332
+ "linkType": "User",
333
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
334
+ }
335
+ },
336
+ "space": {
337
+ "sys": {
338
+ "type": "Link",
339
+ "linkType": "Space",
340
+ "id": "yr5m0jky5hsh"
341
+ }
342
+ },
343
+ "version": 1,
344
+ "updatedAt": "2014-07-30T15:45:52.774Z",
345
+ "updatedBy": {
346
+ "sys": {
347
+ "type": "Link",
348
+ "linkType": "User",
349
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
350
+ }
351
+ }
352
+ }
353
+ },
354
+ {
355
+ "fields": {
356
+ "title": {
357
+ "en-US": "titlebyCreateAPI"
358
+ },
359
+ "description": {
360
+ "en-US": "descByAPI"
361
+ },
362
+ "file": {
363
+ "en-US": {
364
+ "contentType": "image/jpeg",
365
+ "fileName": "pic1.jpg",
366
+ "details": {
367
+ "image": {
368
+ "width": 1280,
369
+ "height": 1920
370
+ },
371
+ "size": 2584366
372
+ },
373
+ "url": "//images.contentful.com/yr5m0jky5hsh/3znNnXEhK0GyUGYysOco00/976663f77ba565f85b72a0819d405b3e/pic1.jpg"
374
+ }
375
+ }
376
+ },
377
+ "sys": {
378
+ "id": "3znNnXEhK0GyUGYysOco00",
379
+ "type": "Asset",
380
+ "createdAt": "2014-07-30T15:51:59.929Z",
381
+ "createdBy": {
382
+ "sys": {
383
+ "type": "Link",
384
+ "linkType": "User",
385
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
386
+ }
387
+ },
388
+ "space": {
389
+ "sys": {
390
+ "type": "Link",
391
+ "linkType": "Space",
392
+ "id": "yr5m0jky5hsh"
393
+ }
394
+ },
395
+ "version": 2,
396
+ "updatedAt": "2014-07-30T15:52:02.081Z",
397
+ "updatedBy": {
398
+ "sys": {
399
+ "type": "Link",
400
+ "linkType": "User",
401
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
402
+ }
403
+ }
404
+ }
405
+ },
406
+ {
407
+ "fields": {
408
+ "title": {
409
+ "en-US": "titlebyCreateAPI"
410
+ },
411
+ "description": {
412
+ "en-US": "descByAPI"
413
+ },
414
+ "file": {
415
+ "en-US": {
416
+ "contentType": "image/jpeg",
417
+ "fileName": "pic1.jpg",
418
+ "details": {
419
+ "image": {
420
+ "width": 1280,
421
+ "height": 1920
422
+ },
423
+ "size": 2584366
424
+ },
425
+ "url": "//images.contentful.com/yr5m0jky5hsh/r7o2iuDeSc4UmioOuoKq6/10316969ea571137efb2819a08b440fd/pic1.jpg"
426
+ }
427
+ }
428
+ },
429
+ "sys": {
430
+ "id": "r7o2iuDeSc4UmioOuoKq6",
431
+ "type": "Asset",
432
+ "createdAt": "2014-07-30T15:51:16.500Z",
433
+ "createdBy": {
434
+ "sys": {
435
+ "type": "Link",
436
+ "linkType": "User",
437
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
438
+ }
439
+ },
440
+ "space": {
441
+ "sys": {
442
+ "type": "Link",
443
+ "linkType": "Space",
444
+ "id": "yr5m0jky5hsh"
445
+ }
446
+ },
447
+ "version": 2,
448
+ "updatedAt": "2014-07-30T15:51:18.639Z",
449
+ "updatedBy": {
450
+ "sys": {
451
+ "type": "Link",
452
+ "linkType": "User",
453
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
454
+ }
455
+ }
456
+ }
457
+ },
458
+ {
459
+ "fields": {
460
+ "title": {
461
+ "en-US": "titlebyCreateAPI"
462
+ },
463
+ "description": {
464
+ "en-US": "descByAPI"
465
+ },
466
+ "file": {
467
+ "en-US": {
468
+ "contentType": "image/jpeg",
469
+ "fileName": "pic1.jpg",
470
+ "upload": "https://upload.wikimedia.org/wikipedia/commons/c/c7/Gasometer_Berlin_Sch%C3%B6neberg_2011.jpg"
471
+ }
472
+ }
473
+ },
474
+ "sys": {
475
+ "id": "MthdSziJG0Gy4AAQmu0qU",
476
+ "type": "Asset",
477
+ "createdAt": "2014-07-30T15:52:57.452Z",
478
+ "createdBy": {
479
+ "sys": {
480
+ "type": "Link",
481
+ "linkType": "User",
482
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
483
+ }
484
+ },
485
+ "space": {
486
+ "sys": {
487
+ "type": "Link",
488
+ "linkType": "Space",
489
+ "id": "yr5m0jky5hsh"
490
+ }
491
+ },
492
+ "version": 1,
493
+ "updatedAt": "2014-07-30T15:52:57.456Z",
494
+ "updatedBy": {
495
+ "sys": {
496
+ "type": "Link",
497
+ "linkType": "User",
498
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
499
+ }
500
+ }
501
+ }
502
+ },
503
+ {
504
+ "fields": {
505
+ "title": {
506
+ "en-US": "titlebyCreateAPI"
507
+ },
508
+ "description": {
509
+ "en-US": "descByAPI"
510
+ },
511
+ "file": {
512
+ "en-US": {
513
+ "contentType": "image/jpeg",
514
+ "fileName": "pic1.jpg",
515
+ "details": {
516
+ "image": {
517
+ "width": 1280,
518
+ "height": 1920
519
+ },
520
+ "size": 2584366
521
+ },
522
+ "url": "//images.contentful.com/yr5m0jky5hsh/5FDqplZoruAUGmiSa02asE/f5cab89aa8f9d8ca2e520d63bc356ef9/pic1.jpg"
523
+ }
524
+ }
525
+ },
526
+ "sys": {
527
+ "id": "5FDqplZoruAUGmiSa02asE",
528
+ "type": "Asset",
529
+ "createdAt": "2014-07-31T06:31:03.919Z",
530
+ "createdBy": {
531
+ "sys": {
532
+ "type": "Link",
533
+ "linkType": "User",
534
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
535
+ }
536
+ },
537
+ "space": {
538
+ "sys": {
539
+ "type": "Link",
540
+ "linkType": "Space",
541
+ "id": "yr5m0jky5hsh"
542
+ }
543
+ },
544
+ "version": 2,
545
+ "updatedAt": "2014-07-31T06:31:04.930Z",
546
+ "updatedBy": {
547
+ "sys": {
548
+ "type": "Link",
549
+ "linkType": "User",
550
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
551
+ }
552
+ }
553
+ }
554
+ },
555
+ {
556
+ "fields": {
557
+ "title": {
558
+ "en-US": "titlebyCreateAPI"
559
+ },
560
+ "description": {
561
+ "en-US": "descByAPI"
562
+ },
563
+ "file": {
564
+ "en-US": {
565
+ "contentType": "image/jpeg",
566
+ "fileName": "pic1.jpg",
567
+ "details": {
568
+ "image": {
569
+ "width": 1280,
570
+ "height": 1920
571
+ },
572
+ "size": 2584366
573
+ },
574
+ "url": "//images.contentful.com/yr5m0jky5hsh/4DmT2j54pWY8ocimkEU6qS/31a5a2dbbb0d56e35f796000e7affb6c/pic1.jpg"
575
+ }
576
+ }
577
+ },
578
+ "sys": {
579
+ "id": "4DmT2j54pWY8ocimkEU6qS",
580
+ "type": "Asset",
581
+ "createdAt": "2014-07-31T07:22:08.621Z",
582
+ "createdBy": {
583
+ "sys": {
584
+ "type": "Link",
585
+ "linkType": "User",
586
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
587
+ }
588
+ },
589
+ "space": {
590
+ "sys": {
591
+ "type": "Link",
592
+ "linkType": "Space",
593
+ "id": "yr5m0jky5hsh"
594
+ }
595
+ },
596
+ "version": 2,
597
+ "updatedAt": "2014-07-31T07:22:12.009Z",
598
+ "updatedBy": {
599
+ "sys": {
600
+ "type": "Link",
601
+ "linkType": "User",
602
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
603
+ }
604
+ }
605
+ }
606
+ }
607
+ ]
608
+ }
609
+ http_version:
610
+ recorded_at: Thu, 31 Jul 2014 07:26:17 GMT
611
+ recorded_with: VCR 2.9.2