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,95 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.contentful.com/spaces/n6spjc167pc2/locales/0X5xcjckv6RMrd9Trae81p
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
+ - Mon, 14 Jul 2014 07:44:57 GMT
29
+ Content-Type:
30
+ - application/vnd.contentful.management.v1+json
31
+ Content-Length:
32
+ - '703'
33
+ Connection:
34
+ - keep-alive
35
+ Status:
36
+ - 200 OK
37
+ X-Contentful-Request-Id:
38
+ - 85f-1209864303
39
+ Etag:
40
+ - '"84473d86f0e8887dd6b44d2ffe155176"'
41
+ Accept-Ranges:
42
+ - bytes
43
+ Cache-Control:
44
+ - max-age=0
45
+ Access-Control-Allow-Origin:
46
+ - "*"
47
+ Access-Control-Allow-Headers:
48
+ - Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization
49
+ Access-Control-Allow-Methods:
50
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
51
+ "^access-Control-Expose-Headers":
52
+ - Etag
53
+ Access-Control-Max-Age:
54
+ - '1728000'
55
+ body:
56
+ encoding: UTF-8
57
+ string: |
58
+ {
59
+ "sys":{
60
+ "type":"Locale",
61
+ "id":"0X5xcjckv6RMrd9Trae81p",
62
+ "version":6,
63
+ "space":{
64
+ "sys":{
65
+ "type":"Link",
66
+ "linkType":"Space",
67
+ "id":"n6spjc167pc2"
68
+ }
69
+ },
70
+ "createdBy":{
71
+ "sys":{
72
+ "type":"Link",
73
+ "linkType":"User",
74
+ "id":"1E7acJL8I5XUXAMHQt9Grs"
75
+ }
76
+ },
77
+ "createdAt":"2014-07-11T10:43:30Z",
78
+ "updatedBy":{
79
+ "sys":{
80
+ "type":"Link",
81
+ "linkType":"User",
82
+ "id":"1E7acJL8I5XUXAMHQt9Grs"
83
+ }
84
+ },
85
+ "updatedAt":"2014-07-11T13:29:23Z"
86
+ },
87
+ "name":"testNewLocaleName",
88
+ "code":"pl",
89
+ "default":false,
90
+ "contentManagementApi":true,
91
+ "publish":true,
92
+ "contentDeliveryApi":true}
93
+ http_version:
94
+ recorded_at: Mon, 14 Jul 2014 07:44:57 GMT
95
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,67 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.contentful.com/spaces/n6spjc167pc2/locales/not_exist
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: 404
23
+ message: Not Found
24
+ headers:
25
+ Server:
26
+ - nginx
27
+ Date:
28
+ - Mon, 14 Jul 2014 07:52:50 GMT
29
+ Content-Type:
30
+ - application/vnd.contentful.management.v1+json
31
+ Content-Length:
32
+ - '137'
33
+ Connection:
34
+ - keep-alive
35
+ Status:
36
+ - 404 Not Found
37
+ X-Contentful-Request-Id:
38
+ - 85f-1209864561
39
+ X-Ua-Compatible:
40
+ - IE=Edge,chrome=1
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":"Error",
61
+ "id":"NotFound"
62
+ },
63
+ "requestId":"85f-1209864561",
64
+ "message":"The resource could not be found."}
65
+ http_version:
66
+ recorded_at: Mon, 14 Jul 2014 07:52:50 GMT
67
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,1201 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.contentful.com/spaces
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 06:48:40 GMT
29
+ Content-Type:
30
+ - application/vnd.contentful.management.v1+json
31
+ Content-Length:
32
+ - '3419'
33
+ Connection:
34
+ - keep-alive
35
+ Status:
36
+ - 200 OK
37
+ X-Contentful-Request-Id:
38
+ - 85f-1334430544
39
+ Etag:
40
+ - '"744804a09b122823d4d20d6d6bb04fcb"'
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":"Array"
61
+ },
62
+ "items":[
63
+ {
64
+ "sys":{
65
+ "type":"Space",
66
+ "id":"l6a1rhnfkzbm",
67
+ "version":1,
68
+ "createdBy":{
69
+ "sys":{
70
+ "type":"Link",
71
+ "linkType":"User",
72
+ "id":"1E7acJL8I5XUXAMHQt9Grs"
73
+ }
74
+ },
75
+ "createdAt":"2014-07-04T13:15:37Z",
76
+ "updatedBy":{
77
+ "sys":{
78
+ "type":"Link",
79
+ "linkType":"User",
80
+ "id":"1E7acJL8I5XUXAMHQt9Grs"
81
+ }
82
+ },
83
+ "updatedAt":"2014-07-04T13:15:37Z"
84
+ },
85
+ "name":"Playground",
86
+ "tutorial":true
87
+ },
88
+ {
89
+ "sys":{
90
+ "type":"Space",
91
+ "id":"n6spjc167pc2",
92
+ "version":13,
93
+ "createdBy":{
94
+ "sys":{
95
+ "type":"Link",
96
+ "linkType":"User",
97
+ "id":"1E7acJL8I5XUXAMHQt9Grs"
98
+ }
99
+ },
100
+ "createdAt":"2014-07-09T11:04:14Z",
101
+ "updatedBy":{
102
+ "sys":{
103
+ "type":"Link",
104
+ "linkType":"User",
105
+ "id":"1E7acJL8I5XUXAMHQt9Grs"
106
+ }
107
+ },
108
+ "updatedAt":"2014-07-31T06:42:35Z"
109
+ },
110
+ "name":"NewNameSpace"
111
+ },
112
+ {
113
+ "sys":{
114
+ "type":"Space",
115
+ "id":"yr5m0jky5hsh",
116
+ "version":7,
117
+ "createdBy":{
118
+ "sys":{
119
+ "type":"Link",
120
+ "linkType":"User",
121
+ "id":"0fn5fOWn4WsKFyYla1gI5h"
122
+ }
123
+ },
124
+ "createdAt":"2014-07-30T07:46:19Z",
125
+ "updatedBy":{
126
+ "sys":{
127
+ "type":"Link",
128
+ "linkType":"User",
129
+ "id":"1E7acJL8I5XUXAMHQt9Grs"
130
+ }
131
+ },
132
+ "updatedAt":"2014-07-30T13:03:22Z"
133
+ },
134
+ "name":"BlogSpace"
135
+ },
136
+ {
137
+ "sys":{
138
+ "type":"Space",
139
+ "id":"904vipyggmr0",
140
+ "version":1,
141
+ "createdBy":{
142
+ "sys":{
143
+ "type":"Link",
144
+ "linkType":"User",
145
+ "id":"1E7acJL8I5XUXAMHQt9Grs"
146
+ }
147
+ },
148
+ "createdAt":"2014-07-30T09:27:02Z",
149
+ "updatedBy":{
150
+ "sys":{
151
+ "type":"Link",
152
+ "linkType":"User",
153
+ "id":"1E7acJL8I5XUXAMHQt9Grs"
154
+ }
155
+ },
156
+ "updatedAt":"2014-07-30T09:27:02Z"
157
+ },
158
+ "name":"My Test Space"
159
+ },
160
+ {
161
+ "sys":{
162
+ "type":"Space",
163
+ "id":"1db9wmjkhf78",
164
+ "version":1,
165
+ "createdBy":{
166
+ "sys":{
167
+ "type":"Link",
168
+ "linkType":"User",
169
+ "id":"1E7acJL8I5XUXAMHQt9Grs"
170
+ }
171
+ },
172
+ "createdAt":"2014-07-30T09:28:50Z",
173
+ "updatedBy":{
174
+ "sys":{
175
+ "type":"Link",
176
+ "linkType":"User",
177
+ "id":"1E7acJL8I5XUXAMHQt9Grs"
178
+ }
179
+ },
180
+ "updatedAt":"2014-07-30T09:28:51Z"
181
+ },
182
+ "name":"My Test Space"
183
+ },
184
+ {
185
+ "sys":{
186
+ "type":"Space",
187
+ "id":"cbvgg8sz6wyh",
188
+ "version":1,
189
+ "createdBy":{
190
+ "sys":{
191
+ "type":"Link",
192
+ "linkType":"User",
193
+ "id":"1E7acJL8I5XUXAMHQt9Grs"
194
+ }
195
+ },
196
+ "createdAt":"2014-07-30T09:29:21Z",
197
+ "updatedBy":{
198
+ "sys":{
199
+ "type":"Link",
200
+ "linkType":"User",
201
+ "id":"1E7acJL8I5XUXAMHQt9Grs"
202
+ }
203
+ },
204
+ "updatedAt":"2014-07-30T09:29:21Z"
205
+ },
206
+ "name":"My Test Space"
207
+ }
208
+ ],
209
+ "total":6,
210
+ "limit":25,
211
+ "skip":0}
212
+ http_version:
213
+ recorded_at: Thu, 31 Jul 2014 06:48:40 GMT
214
+ - request:
215
+ method: get
216
+ uri: https://api.contentful.com/spaces/l6a1rhnfkzbm/content_types
217
+ body:
218
+ encoding: US-ASCII
219
+ string: ''
220
+ headers:
221
+ User-Agent:
222
+ - RubyContenfulManagementGem/0.0.1
223
+ Authorization:
224
+ - Bearer <ACCESS_TOKEN>
225
+ Content-Type:
226
+ - application/vnd.contentful.management.v1+json
227
+ Content-Length:
228
+ - '0'
229
+ Host:
230
+ - api.contentful.com
231
+ response:
232
+ status:
233
+ code: 200
234
+ message: OK
235
+ headers:
236
+ Server:
237
+ - nginx
238
+ Date:
239
+ - Thu, 31 Jul 2014 06:48:40 GMT
240
+ Content-Type:
241
+ - application/vnd.contentful.management.v1+json
242
+ Content-Length:
243
+ - '1933'
244
+ Connection:
245
+ - keep-alive
246
+ X-Powered-By:
247
+ - Express
248
+ Cf-Space-Id:
249
+ - l6a1rhnfkzbm
250
+ Etag:
251
+ - '"311ac8c5ed89cece451c254973ececa5"'
252
+ Access-Control-Allow-Origin:
253
+ - "*"
254
+ Access-Control-Allow-Headers:
255
+ - 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
256
+ Access-Control-Allow-Methods:
257
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
258
+ "^access-Control-Expose-Headers":
259
+ - Etag
260
+ Access-Control-Max-Age:
261
+ - '1728000'
262
+ body:
263
+ encoding: UTF-8
264
+ string: |
265
+ {
266
+ "sys": {
267
+ "type": "Array"
268
+ },
269
+ "total": 1,
270
+ "skip": 0,
271
+ "limit": 100,
272
+ "items": [
273
+ {
274
+ "fields": [
275
+ {
276
+ "name": "Username",
277
+ "id": "username",
278
+ "type": "Text",
279
+ "uiid": "3wognc1mtj4"
280
+ },
281
+ {
282
+ "name": "Birthday",
283
+ "id": "birthday",
284
+ "type": "Date",
285
+ "uiid": "2qivbxie6tc"
286
+ },
287
+ {
288
+ "name": "Eye color",
289
+ "id": "eyeColor",
290
+ "type": "Object",
291
+ "uiid": "4ajqyjynmkg",
292
+ "disabled": false
293
+ },
294
+ {
295
+ "name": "Photo",
296
+ "id": "photo",
297
+ "type": "Link",
298
+ "uiid": "2m691fsu5mo",
299
+ "linkType": "Asset",
300
+ "validations": []
301
+ }
302
+ ],
303
+ "name": "PiotrekCodeQuest",
304
+ "sys": {
305
+ "id": "4pbVYE1kkMwEoKywekEwwg",
306
+ "type": "ContentType",
307
+ "createdAt": "2014-07-05T10:37:13.492Z",
308
+ "createdBy": {
309
+ "sys": {
310
+ "type": "Link",
311
+ "linkType": "User",
312
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
313
+ }
314
+ },
315
+ "space": {
316
+ "sys": {
317
+ "type": "Link",
318
+ "linkType": "Space",
319
+ "id": "l6a1rhnfkzbm"
320
+ }
321
+ },
322
+ "firstPublishedAt": "2014-07-05T10:41:31.485Z",
323
+ "publishedCounter": 2,
324
+ "publishedAt": "2014-07-05T10:48:23.983Z",
325
+ "publishedBy": {
326
+ "sys": {
327
+ "type": "Link",
328
+ "linkType": "User",
329
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
330
+ }
331
+ },
332
+ "publishedVersion": 139,
333
+ "version": 140,
334
+ "updatedAt": "2014-07-05T10:48:23.988Z",
335
+ "updatedBy": {
336
+ "sys": {
337
+ "type": "Link",
338
+ "linkType": "User",
339
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
340
+ }
341
+ }
342
+ },
343
+ "description": "Testing contentful...",
344
+ "displayField": "username"
345
+ }
346
+ ]
347
+ }
348
+ http_version:
349
+ recorded_at: Thu, 31 Jul 2014 06:48:40 GMT
350
+ - request:
351
+ method: get
352
+ uri: https://api.contentful.com/spaces/n6spjc167pc2/content_types
353
+ body:
354
+ encoding: US-ASCII
355
+ string: ''
356
+ headers:
357
+ User-Agent:
358
+ - RubyContenfulManagementGem/0.0.1
359
+ Authorization:
360
+ - Bearer <ACCESS_TOKEN>
361
+ Content-Type:
362
+ - application/vnd.contentful.management.v1+json
363
+ Content-Length:
364
+ - '0'
365
+ Host:
366
+ - api.contentful.com
367
+ response:
368
+ status:
369
+ code: 200
370
+ message: OK
371
+ headers:
372
+ Server:
373
+ - nginx
374
+ Date:
375
+ - Thu, 31 Jul 2014 06:48:41 GMT
376
+ Content-Type:
377
+ - application/vnd.contentful.management.v1+json
378
+ Content-Length:
379
+ - '10227'
380
+ Connection:
381
+ - keep-alive
382
+ X-Powered-By:
383
+ - Express
384
+ Cf-Space-Id:
385
+ - n6spjc167pc2
386
+ Etag:
387
+ - '"aa6a8c371bba040d15223e1307a8f92a"'
388
+ Access-Control-Allow-Origin:
389
+ - "*"
390
+ Access-Control-Allow-Headers:
391
+ - 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
392
+ Access-Control-Allow-Methods:
393
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
394
+ "^access-Control-Expose-Headers":
395
+ - Etag
396
+ Access-Control-Max-Age:
397
+ - '1728000'
398
+ body:
399
+ encoding: UTF-8
400
+ string: |
401
+ {
402
+ "sys": {
403
+ "type": "Array"
404
+ },
405
+ "total": 6,
406
+ "skip": 0,
407
+ "limit": 100,
408
+ "items": [
409
+ {
410
+ "fields": [
411
+ {
412
+ "name": "text",
413
+ "id": "text",
414
+ "type": "Text",
415
+ "uiid": "3o0tc4nuv40",
416
+ "localized": true
417
+ },
418
+ {
419
+ "name": "numer",
420
+ "id": "numer",
421
+ "type": "Integer",
422
+ "uiid": "48v3t1f8xs0",
423
+ "localized": true
424
+ },
425
+ {
426
+ "name": "asset",
427
+ "id": "asset",
428
+ "type": "Link",
429
+ "uiid": "2ic3kjpcsg0",
430
+ "linkType": "Asset"
431
+ }
432
+ ],
433
+ "name": "ttesttest",
434
+ "sys": {
435
+ "id": "4Xf5GFNR2geAkQQomOa6Ik",
436
+ "type": "ContentType",
437
+ "createdAt": "2014-07-22T07:47:11.938Z",
438
+ "createdBy": {
439
+ "sys": {
440
+ "type": "Link",
441
+ "linkType": "User",
442
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
443
+ }
444
+ },
445
+ "space": {
446
+ "sys": {
447
+ "type": "Link",
448
+ "linkType": "Space",
449
+ "id": "n6spjc167pc2"
450
+ }
451
+ },
452
+ "firstPublishedAt": "2014-07-22T07:48:02.222Z",
453
+ "publishedCounter": 1,
454
+ "publishedAt": "2014-07-22T07:48:02.222Z",
455
+ "publishedBy": {
456
+ "sys": {
457
+ "type": "Link",
458
+ "linkType": "User",
459
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
460
+ }
461
+ },
462
+ "publishedVersion": 38,
463
+ "version": 39,
464
+ "updatedAt": "2014-07-22T07:48:02.227Z",
465
+ "updatedBy": {
466
+ "sys": {
467
+ "type": "Link",
468
+ "linkType": "User",
469
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
470
+ }
471
+ }
472
+ },
473
+ "description": "ttesttestdesc",
474
+ "displayField": "tex"
475
+ },
476
+ {
477
+ "name": "TestingContentType",
478
+ "description": "someTests",
479
+ "fields": [
480
+ {
481
+ "name": "name",
482
+ "id": "name",
483
+ "uiid": "4dk8vydh05c",
484
+ "type": "Text",
485
+ "localized": true
486
+ },
487
+ {
488
+ "name": "number",
489
+ "id": "number",
490
+ "uiid": "3m7igqmwbgg",
491
+ "type": "Integer",
492
+ "localized": true
493
+ },
494
+ {
495
+ "name": "file",
496
+ "id": "file",
497
+ "uiid": "4gmlkz2dslc",
498
+ "type": "Link",
499
+ "linkType": "Asset",
500
+ "localized": true
501
+ },
502
+ {
503
+ "id": "my_array_field",
504
+ "name": "My Array Field",
505
+ "type": "Array",
506
+ "items": {
507
+ "type": "Link",
508
+ "linkType": "Entry"
509
+ },
510
+ "uiid": "2s0iacnggsg"
511
+ }
512
+ ],
513
+ "sys": {
514
+ "id": "LE3x1rgCgU6QO0guSEm64",
515
+ "type": "ContentType",
516
+ "createdAt": "2014-07-10T13:57:51.634Z",
517
+ "createdBy": {
518
+ "sys": {
519
+ "type": "Link",
520
+ "linkType": "User",
521
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
522
+ }
523
+ },
524
+ "space": {
525
+ "sys": {
526
+ "type": "Link",
527
+ "linkType": "Space",
528
+ "id": "n6spjc167pc2"
529
+ }
530
+ },
531
+ "firstPublishedAt": "2014-07-10T13:58:20.920Z",
532
+ "publishedCounter": 2,
533
+ "publishedAt": "2014-07-21T11:27:19.105Z",
534
+ "publishedBy": {
535
+ "sys": {
536
+ "type": "Link",
537
+ "linkType": "User",
538
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
539
+ }
540
+ },
541
+ "publishedVersion": 77,
542
+ "version": 80,
543
+ "updatedAt": "2014-07-22T09:14:59.694Z",
544
+ "updatedBy": {
545
+ "sys": {
546
+ "type": "Link",
547
+ "linkType": "User",
548
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
549
+ }
550
+ }
551
+ },
552
+ "displayField": "name"
553
+ },
554
+ {
555
+ "fields": [
556
+ {
557
+ "name": "name",
558
+ "id": "name",
559
+ "type": "Text",
560
+ "uiid": "2uzhsxi0r9c",
561
+ "localized": true
562
+ },
563
+ {
564
+ "name": "symbol",
565
+ "id": "symbol",
566
+ "type": "Symbol",
567
+ "uiid": "2xlhnoyrgu8"
568
+ },
569
+ {
570
+ "name": "number",
571
+ "id": "number",
572
+ "type": "Integer",
573
+ "uiid": "3uqp6c33xmo"
574
+ },
575
+ {
576
+ "name": "bool",
577
+ "id": "bool",
578
+ "type": "Boolean",
579
+ "uiid": "4vw89vv8jk0",
580
+ "localized": true
581
+ },
582
+ {
583
+ "name": "date",
584
+ "id": "date",
585
+ "type": "Date",
586
+ "uiid": "3cgmylszk00"
587
+ },
588
+ {
589
+ "name": "location",
590
+ "id": "location",
591
+ "type": "Location",
592
+ "uiid": "2x8qeasvrb4",
593
+ "localized": true
594
+ },
595
+ {
596
+ "name": "entrytest_multi",
597
+ "id": "entrytest",
598
+ "type": "Array",
599
+ "uiid": "3n9ykr5ds00",
600
+ "items": {
601
+ "type": "Link",
602
+ "linkType": "Entry"
603
+ },
604
+ "localized": true,
605
+ "disabled": false
606
+ },
607
+ {
608
+ "name": "entrytest_single",
609
+ "id": "entrytestSingle",
610
+ "type": "Link",
611
+ "uiid": "2xhpzp3negw",
612
+ "linkType": "Entry"
613
+ },
614
+ {
615
+ "name": "asset",
616
+ "id": "asset",
617
+ "type": "Link",
618
+ "uiid": "4p5gxtphr0g",
619
+ "linkType": "Asset",
620
+ "localized": true
621
+ },
622
+ {
623
+ "name": "assets",
624
+ "id": "assets",
625
+ "uiid": "4mm8rtna7ls",
626
+ "type": "Array",
627
+ "items": {
628
+ "type": "Link",
629
+ "linkType": "Asset"
630
+ }
631
+ },
632
+ {
633
+ "name": "symbols",
634
+ "id": "symbols",
635
+ "type": "Array",
636
+ "uiid": "2oimrhac4jk",
637
+ "items": {
638
+ "type": "Symbol"
639
+ }
640
+ }
641
+ ],
642
+ "name": "ContToEntries",
643
+ "sys": {
644
+ "id": "3cVKt1esC4a0WgQsMeOyMW",
645
+ "type": "ContentType",
646
+ "createdAt": "2014-07-22T14:26:22.821Z",
647
+ "createdBy": {
648
+ "sys": {
649
+ "type": "Link",
650
+ "linkType": "User",
651
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
652
+ }
653
+ },
654
+ "space": {
655
+ "sys": {
656
+ "type": "Link",
657
+ "linkType": "Space",
658
+ "id": "n6spjc167pc2"
659
+ }
660
+ },
661
+ "firstPublishedAt": "2014-07-22T14:28:35.999Z",
662
+ "publishedCounter": 9,
663
+ "publishedAt": "2014-07-24T13:44:40.047Z",
664
+ "publishedBy": {
665
+ "sys": {
666
+ "type": "Link",
667
+ "linkType": "User",
668
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
669
+ }
670
+ },
671
+ "publishedVersion": 216,
672
+ "version": 217,
673
+ "updatedAt": "2014-07-24T13:44:40.054Z",
674
+ "updatedBy": {
675
+ "sys": {
676
+ "type": "Link",
677
+ "linkType": "User",
678
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
679
+ }
680
+ }
681
+ },
682
+ "description": "Add new entries by API",
683
+ "displayField": "name"
684
+ },
685
+ {
686
+ "name": "Post",
687
+ "description": "",
688
+ "fields": [
689
+ {
690
+ "id": "post_title",
691
+ "name": "Post Title",
692
+ "type": "Text",
693
+ "required": false,
694
+ "localized": true,
695
+ "uiid": "2vg5he0xbeo"
696
+ },
697
+ {
698
+ "id": "post_author",
699
+ "name": "Post Author",
700
+ "type": "Text",
701
+ "required": false,
702
+ "localized": true,
703
+ "uiid": "4kft9qp9kao"
704
+ },
705
+ {
706
+ "id": "post_body",
707
+ "name": "Post Body",
708
+ "type": "Text",
709
+ "localized": true,
710
+ "uiid": "2zg6lzrdqtc"
711
+ }
712
+ ],
713
+ "sys": {
714
+ "id": "2z4MCokfNecisIIwKIWsOg",
715
+ "type": "ContentType",
716
+ "createdAt": "2014-07-29T14:15:41.420Z",
717
+ "createdBy": {
718
+ "sys": {
719
+ "type": "Link",
720
+ "linkType": "User",
721
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
722
+ }
723
+ },
724
+ "space": {
725
+ "sys": {
726
+ "type": "Link",
727
+ "linkType": "Space",
728
+ "id": "n6spjc167pc2"
729
+ }
730
+ },
731
+ "version": 5,
732
+ "updatedAt": "2014-07-29T14:16:10.571Z",
733
+ "updatedBy": {
734
+ "sys": {
735
+ "type": "Link",
736
+ "linkType": "User",
737
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
738
+ }
739
+ }
740
+ }
741
+ },
742
+ {
743
+ "name": "Category",
744
+ "description": "",
745
+ "fields": [
746
+ {
747
+ "id": "category_name",
748
+ "name": "Category Name",
749
+ "type": "Text",
750
+ "required": false,
751
+ "localized": true,
752
+ "uiid": "3vablh5gpvk"
753
+ },
754
+ {
755
+ "id": "category_description",
756
+ "name": "Category Description",
757
+ "type": "Text",
758
+ "localized": true,
759
+ "uiid": "4vdhf4axnnk"
760
+ }
761
+ ],
762
+ "sys": {
763
+ "id": "5N8oxLtaqQEWGO6IAagMwA",
764
+ "type": "ContentType",
765
+ "createdAt": "2014-07-29T14:14:36.058Z",
766
+ "createdBy": {
767
+ "sys": {
768
+ "type": "Link",
769
+ "linkType": "User",
770
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
771
+ }
772
+ },
773
+ "space": {
774
+ "sys": {
775
+ "type": "Link",
776
+ "linkType": "Space",
777
+ "id": "n6spjc167pc2"
778
+ }
779
+ },
780
+ "version": 4,
781
+ "updatedAt": "2014-07-29T14:15:00.135Z",
782
+ "updatedBy": {
783
+ "sys": {
784
+ "type": "Link",
785
+ "linkType": "User",
786
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
787
+ }
788
+ }
789
+ }
790
+ },
791
+ {
792
+ "name": "TestingContentType",
793
+ "description": null,
794
+ "fields": [],
795
+ "sys": {
796
+ "id": "1DvqU3pwFieqc88qEYugg",
797
+ "type": "ContentType",
798
+ "createdAt": "2014-07-31T06:42:31.222Z",
799
+ "createdBy": {
800
+ "sys": {
801
+ "type": "Link",
802
+ "linkType": "User",
803
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
804
+ }
805
+ },
806
+ "space": {
807
+ "sys": {
808
+ "type": "Link",
809
+ "linkType": "Space",
810
+ "id": "n6spjc167pc2"
811
+ }
812
+ },
813
+ "version": 1,
814
+ "updatedAt": "2014-07-31T06:42:31.226Z",
815
+ "updatedBy": {
816
+ "sys": {
817
+ "type": "Link",
818
+ "linkType": "User",
819
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
820
+ }
821
+ }
822
+ }
823
+ }
824
+ ]
825
+ }
826
+ http_version:
827
+ recorded_at: Thu, 31 Jul 2014 06:48:41 GMT
828
+ - request:
829
+ method: get
830
+ uri: https://api.contentful.com/spaces/yr5m0jky5hsh/content_types
831
+ body:
832
+ encoding: US-ASCII
833
+ string: ''
834
+ headers:
835
+ User-Agent:
836
+ - RubyContenfulManagementGem/0.0.1
837
+ Authorization:
838
+ - Bearer <ACCESS_TOKEN>
839
+ Content-Type:
840
+ - application/vnd.contentful.management.v1+json
841
+ Content-Length:
842
+ - '0'
843
+ Host:
844
+ - api.contentful.com
845
+ response:
846
+ status:
847
+ code: 200
848
+ message: OK
849
+ headers:
850
+ Server:
851
+ - nginx
852
+ Date:
853
+ - Thu, 31 Jul 2014 06:48:42 GMT
854
+ Content-Type:
855
+ - application/vnd.contentful.management.v1+json
856
+ Content-Length:
857
+ - '3054'
858
+ Connection:
859
+ - keep-alive
860
+ X-Powered-By:
861
+ - Express
862
+ Cf-Space-Id:
863
+ - yr5m0jky5hsh
864
+ Etag:
865
+ - '"4c43b6e34924f7e65971295370191384"'
866
+ Access-Control-Allow-Origin:
867
+ - "*"
868
+ Access-Control-Allow-Headers:
869
+ - 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
870
+ Access-Control-Allow-Methods:
871
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
872
+ "^access-Control-Expose-Headers":
873
+ - Etag
874
+ Access-Control-Max-Age:
875
+ - '1728000'
876
+ body:
877
+ encoding: UTF-8
878
+ string: |
879
+ {
880
+ "sys": {
881
+ "type": "Array"
882
+ },
883
+ "total": 1,
884
+ "skip": 0,
885
+ "limit": 100,
886
+ "items": [
887
+ {
888
+ "fields": [
889
+ {
890
+ "name": "name",
891
+ "id": "name",
892
+ "type": "Text",
893
+ "uiid": "3fflnrplhc0",
894
+ "localized": true
895
+ },
896
+ {
897
+ "name": "age",
898
+ "id": "age",
899
+ "uiid": "2t5blkc7u2o",
900
+ "type": "Integer",
901
+ "localized": true
902
+ },
903
+ {
904
+ "name": "city",
905
+ "id": "city",
906
+ "type": "Location",
907
+ "uiid": "4fzl5jkm1a8",
908
+ "localized": false
909
+ },
910
+ {
911
+ "name": "assets",
912
+ "id": "assets",
913
+ "uiid": "3aqrgdyesxs",
914
+ "type": "Array",
915
+ "items": {
916
+ "type": "Link",
917
+ "linkType": "Asset"
918
+ },
919
+ "localized": true
920
+ },
921
+ {
922
+ "name": "entries",
923
+ "id": "entries",
924
+ "type": "Array",
925
+ "uiid": "3xi486kbchs",
926
+ "items": {
927
+ "type": "Link",
928
+ "linkType": "Entry"
929
+ }
930
+ },
931
+ {
932
+ "name": "entry",
933
+ "id": "entry",
934
+ "type": "Link",
935
+ "uiid": "3uxjdd1n5ds",
936
+ "linkType": "Entry"
937
+ },
938
+ {
939
+ "name": "asset",
940
+ "id": "asset",
941
+ "type": "Link",
942
+ "uiid": "40ilp8h1xc0",
943
+ "linkType": "Asset"
944
+ },
945
+ {
946
+ "name": "bool",
947
+ "id": "bool",
948
+ "type": "Boolean",
949
+ "uiid": "2i1bgmn2dj4",
950
+ "localized": true
951
+ },
952
+ {
953
+ "name": "symbols",
954
+ "id": "symbols",
955
+ "type": "Array",
956
+ "uiid": "38rbncxmzuo",
957
+ "items": {
958
+ "type": "Symbol"
959
+ }
960
+ },
961
+ {
962
+ "name": "birthday",
963
+ "id": "birthday",
964
+ "type": "Date",
965
+ "uiid": "41bdwbk06bk"
966
+ }
967
+ ],
968
+ "name": "Author",
969
+ "sys": {
970
+ "id": "5DSpuKrl04eMAGQoQckeIq",
971
+ "type": "ContentType",
972
+ "createdAt": "2014-07-30T12:35:01.110Z",
973
+ "createdBy": {
974
+ "sys": {
975
+ "type": "Link",
976
+ "linkType": "User",
977
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
978
+ }
979
+ },
980
+ "space": {
981
+ "sys": {
982
+ "type": "Link",
983
+ "linkType": "Space",
984
+ "id": "yr5m0jky5hsh"
985
+ }
986
+ },
987
+ "firstPublishedAt": "2014-07-30T12:37:42.035Z",
988
+ "publishedCounter": 6,
989
+ "publishedAt": "2014-07-30T14:58:40.786Z",
990
+ "publishedBy": {
991
+ "sys": {
992
+ "type": "Link",
993
+ "linkType": "User",
994
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
995
+ }
996
+ },
997
+ "publishedVersion": 177,
998
+ "version": 178,
999
+ "updatedAt": "2014-07-30T14:58:40.796Z",
1000
+ "updatedBy": {
1001
+ "sys": {
1002
+ "type": "Link",
1003
+ "linkType": "User",
1004
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1005
+ }
1006
+ }
1007
+ },
1008
+ "description": null,
1009
+ "displayField": "name"
1010
+ }
1011
+ ]
1012
+ }
1013
+ http_version:
1014
+ recorded_at: Thu, 31 Jul 2014 06:48:42 GMT
1015
+ - request:
1016
+ method: get
1017
+ uri: https://api.contentful.com/spaces/904vipyggmr0/content_types
1018
+ body:
1019
+ encoding: US-ASCII
1020
+ string: ''
1021
+ headers:
1022
+ User-Agent:
1023
+ - RubyContenfulManagementGem/0.0.1
1024
+ Authorization:
1025
+ - Bearer <ACCESS_TOKEN>
1026
+ Content-Type:
1027
+ - application/vnd.contentful.management.v1+json
1028
+ Content-Length:
1029
+ - '0'
1030
+ Host:
1031
+ - api.contentful.com
1032
+ response:
1033
+ status:
1034
+ code: 200
1035
+ message: OK
1036
+ headers:
1037
+ Server:
1038
+ - nginx
1039
+ Date:
1040
+ - Thu, 31 Jul 2014 06:48:42 GMT
1041
+ Content-Type:
1042
+ - application/vnd.contentful.management.v1+json
1043
+ Content-Length:
1044
+ - '97'
1045
+ Connection:
1046
+ - keep-alive
1047
+ X-Powered-By:
1048
+ - Express
1049
+ Cf-Space-Id:
1050
+ - 904vipyggmr0
1051
+ Etag:
1052
+ - '"29f2c21be26360c424f617d8592cf6f9"'
1053
+ Access-Control-Allow-Origin:
1054
+ - "*"
1055
+ Access-Control-Allow-Headers:
1056
+ - 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
1057
+ Access-Control-Allow-Methods:
1058
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
1059
+ "^access-Control-Expose-Headers":
1060
+ - Etag
1061
+ Access-Control-Max-Age:
1062
+ - '1728000'
1063
+ body:
1064
+ encoding: UTF-8
1065
+ string: |
1066
+ {
1067
+ "sys": {
1068
+ "type": "Array"
1069
+ },
1070
+ "total": 0,
1071
+ "skip": 0,
1072
+ "limit": 100,
1073
+ "items": []
1074
+ }
1075
+ http_version:
1076
+ recorded_at: Thu, 31 Jul 2014 06:48:42 GMT
1077
+ - request:
1078
+ method: get
1079
+ uri: https://api.contentful.com/spaces/1db9wmjkhf78/content_types
1080
+ body:
1081
+ encoding: US-ASCII
1082
+ string: ''
1083
+ headers:
1084
+ User-Agent:
1085
+ - RubyContenfulManagementGem/0.0.1
1086
+ Authorization:
1087
+ - Bearer <ACCESS_TOKEN>
1088
+ Content-Type:
1089
+ - application/vnd.contentful.management.v1+json
1090
+ Content-Length:
1091
+ - '0'
1092
+ Host:
1093
+ - api.contentful.com
1094
+ response:
1095
+ status:
1096
+ code: 200
1097
+ message: OK
1098
+ headers:
1099
+ Server:
1100
+ - nginx
1101
+ Date:
1102
+ - Thu, 31 Jul 2014 06:48:43 GMT
1103
+ Content-Type:
1104
+ - application/vnd.contentful.management.v1+json
1105
+ Content-Length:
1106
+ - '97'
1107
+ Connection:
1108
+ - keep-alive
1109
+ X-Powered-By:
1110
+ - Express
1111
+ Cf-Space-Id:
1112
+ - 1db9wmjkhf78
1113
+ Etag:
1114
+ - '"29f2c21be26360c424f617d8592cf6f9"'
1115
+ Access-Control-Allow-Origin:
1116
+ - "*"
1117
+ Access-Control-Allow-Headers:
1118
+ - 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
1119
+ Access-Control-Allow-Methods:
1120
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
1121
+ "^access-Control-Expose-Headers":
1122
+ - Etag
1123
+ Access-Control-Max-Age:
1124
+ - '1728000'
1125
+ body:
1126
+ encoding: UTF-8
1127
+ string: |
1128
+ {
1129
+ "sys": {
1130
+ "type": "Array"
1131
+ },
1132
+ "total": 0,
1133
+ "skip": 0,
1134
+ "limit": 100,
1135
+ "items": []
1136
+ }
1137
+ http_version:
1138
+ recorded_at: Thu, 31 Jul 2014 06:48:43 GMT
1139
+ - request:
1140
+ method: get
1141
+ uri: https://api.contentful.com/spaces/cbvgg8sz6wyh/content_types
1142
+ body:
1143
+ encoding: US-ASCII
1144
+ string: ''
1145
+ headers:
1146
+ User-Agent:
1147
+ - RubyContenfulManagementGem/0.0.1
1148
+ Authorization:
1149
+ - Bearer <ACCESS_TOKEN>
1150
+ Content-Type:
1151
+ - application/vnd.contentful.management.v1+json
1152
+ Content-Length:
1153
+ - '0'
1154
+ Host:
1155
+ - api.contentful.com
1156
+ response:
1157
+ status:
1158
+ code: 200
1159
+ message: OK
1160
+ headers:
1161
+ Server:
1162
+ - nginx
1163
+ Date:
1164
+ - Thu, 31 Jul 2014 06:48:44 GMT
1165
+ Content-Type:
1166
+ - application/vnd.contentful.management.v1+json
1167
+ Content-Length:
1168
+ - '97'
1169
+ Connection:
1170
+ - keep-alive
1171
+ X-Powered-By:
1172
+ - Express
1173
+ Cf-Space-Id:
1174
+ - cbvgg8sz6wyh
1175
+ Etag:
1176
+ - '"29f2c21be26360c424f617d8592cf6f9"'
1177
+ Access-Control-Allow-Origin:
1178
+ - "*"
1179
+ Access-Control-Allow-Headers:
1180
+ - 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
1181
+ Access-Control-Allow-Methods:
1182
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
1183
+ "^access-Control-Expose-Headers":
1184
+ - Etag
1185
+ Access-Control-Max-Age:
1186
+ - '1728000'
1187
+ body:
1188
+ encoding: UTF-8
1189
+ string: |
1190
+ {
1191
+ "sys": {
1192
+ "type": "Array"
1193
+ },
1194
+ "total": 0,
1195
+ "skip": 0,
1196
+ "limit": 100,
1197
+ "items": []
1198
+ }
1199
+ http_version:
1200
+ recorded_at: Thu, 31 Jul 2014 06:48:44 GMT
1201
+ recorded_with: VCR 2.9.2