contentful-importer 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +38 -0
  3. data/.rspec +3 -0
  4. data/.travis.yml +8 -0
  5. data/CHANGELOG.md +4 -0
  6. data/Gemfile +7 -0
  7. data/Gemfile.lock +87 -0
  8. data/LICENSE +22 -0
  9. data/README.md +327 -0
  10. data/Rakefile +7 -0
  11. data/bin/contentful-importer +85 -0
  12. data/contentful_importer.gemspec +38 -0
  13. data/example_settings/contentful_model.json +288 -0
  14. data/example_settings/contentful_structure.json +78 -0
  15. data/example_settings/files_meaning.txt +15 -0
  16. data/example_settings/settings.yml +16 -0
  17. data/lib/cli.rb +13 -0
  18. data/lib/configuration.rb +36 -0
  19. data/lib/converters/content_types_structure_creator.rb +60 -0
  20. data/lib/converters/contentful_model_to_json.rb +109 -0
  21. data/lib/importer/data_organizer.rb +117 -0
  22. data/lib/importer/mime_content_type.rb +564 -0
  23. data/lib/importer/parallel_importer.rb +429 -0
  24. data/lib/json_schema_validator.rb +64 -0
  25. data/lib/migrator.rb +39 -0
  26. data/lib/version.rb +3 -0
  27. data/spec/fixtures/import_files/assets/image/image_1.json +9 -0
  28. data/spec/fixtures/import_files/assets/image/image_2.json +9 -0
  29. data/spec/fixtures/import_files/assets/image/image_3.json +9 -0
  30. data/spec/fixtures/import_files/assets/image/image_4.json +9 -0
  31. data/spec/fixtures/import_files/collections/job_skills.json +13 -0
  32. data/spec/fixtures/import_files/collections/jobs.json +37 -0
  33. data/spec/fixtures/import_files/collections/profile.json +19 -0
  34. data/spec/fixtures/import_files/collections/user.json +36 -0
  35. data/spec/fixtures/import_files/entries/job_skills/job_skills_1.json +7 -0
  36. data/spec/fixtures/import_files/entries/job_skills/job_skills_10.json +7 -0
  37. data/spec/fixtures/import_files/entries/job_skills/job_skills_2.json +7 -0
  38. data/spec/fixtures/import_files/entries/job_skills/job_skills_3.json +7 -0
  39. data/spec/fixtures/import_files/entries/job_skills/job_skills_4.json +7 -0
  40. data/spec/fixtures/import_files/entries/job_skills/job_skills_5.json +7 -0
  41. data/spec/fixtures/import_files/entries/job_skills/job_skills_6.json +7 -0
  42. data/spec/fixtures/import_files/entries/job_skills/job_skills_7.json +7 -0
  43. data/spec/fixtures/import_files/entries/job_skills/job_skills_8.json +7 -0
  44. data/spec/fixtures/import_files/entries/job_skills/job_skills_9.json +7 -0
  45. data/spec/fixtures/import_files/entries/jobs/jobs_1.json +56 -0
  46. data/spec/fixtures/import_files/entries/jobs/jobs_2.json +55 -0
  47. data/spec/fixtures/import_files/entries/jobs/jobs_4.json +49 -0
  48. data/spec/fixtures/import_files/entries/profile/profile_1.json +12 -0
  49. data/spec/fixtures/import_files/entries/profile/profile_2.json +12 -0
  50. data/spec/fixtures/import_files/entries/user/user_1.json +24 -0
  51. data/spec/fixtures/import_files/entries/user/user_2.json +20 -0
  52. data/spec/fixtures/import_files/logs/log_published_assets.csv +4 -0
  53. data/spec/fixtures/import_files/logs/log_published_entries.csv +23 -0
  54. data/spec/fixtures/import_files/logs/success_assets.csv +4 -0
  55. data/spec/fixtures/import_files/logs/success_published_assets.csv +0 -0
  56. data/spec/fixtures/import_files/logs/success_published_entries.csv +22 -0
  57. data/spec/fixtures/import_files/logs/success_thread_0.csv +12 -0
  58. data/spec/fixtures/import_files/logs/success_thread_1.csv +11 -0
  59. data/spec/fixtures/import_files/threads/0/1TVvxCqoRq0qUYAOQuOqys_2.json +20 -0
  60. data/spec/fixtures/import_files/threads/0/2soCP557HGKoOOK0SqmMOm_1.json +7 -0
  61. data/spec/fixtures/import_files/threads/0/2soCP557HGKoOOK0SqmMOm_10.json +7 -0
  62. data/spec/fixtures/import_files/threads/0/2soCP557HGKoOOK0SqmMOm_2.json +7 -0
  63. data/spec/fixtures/import_files/threads/0/2soCP557HGKoOOK0SqmMOm_3.json +7 -0
  64. data/spec/fixtures/import_files/threads/0/2soCP557HGKoOOK0SqmMOm_4.json +7 -0
  65. data/spec/fixtures/import_files/threads/0/2soCP557HGKoOOK0SqmMOm_5.json +7 -0
  66. data/spec/fixtures/import_files/threads/0/2soCP557HGKoOOK0SqmMOm_6.json +7 -0
  67. data/spec/fixtures/import_files/threads/0/2soCP557HGKoOOK0SqmMOm_7.json +7 -0
  68. data/spec/fixtures/import_files/threads/0/6H6pGAV1PUsuoAW26Iu48W_1.json +9 -0
  69. data/spec/fixtures/import_files/threads/0/6H6pGAV1PUsuoAW26Iu48W_2.json +9 -0
  70. data/spec/fixtures/import_files/threads/0/6H6pGAV1PUsuoAW26Iu48W_3.json +9 -0
  71. data/spec/fixtures/import_files/threads/0/6H6pGAV1PUsuoAW26Iu48W_4.json +9 -0
  72. data/spec/fixtures/import_files/threads/0/6H6pGAV1PUsuoAW26Iu48W_5.json +9 -0
  73. data/spec/fixtures/import_files/threads/1/1TVvxCqoRq0qUYAOQuOqys_1.json +24 -0
  74. data/spec/fixtures/import_files/threads/1/1TVvxCqoRq0qUYAOQuOqys_2.json +20 -0
  75. data/spec/fixtures/import_files/threads/1/2soCP557HGKoOOK0SqmMOm_6.json +7 -0
  76. data/spec/fixtures/import_files/threads/1/2soCP557HGKoOOK0SqmMOm_7.json +7 -0
  77. data/spec/fixtures/import_files/threads/1/2soCP557HGKoOOK0SqmMOm_8.json +7 -0
  78. data/spec/fixtures/import_files/threads/1/2soCP557HGKoOOK0SqmMOm_9.json +7 -0
  79. data/spec/fixtures/import_files/threads/1/4L1bg4WQ5aWQMiE82ouag_1.json +56 -0
  80. data/spec/fixtures/import_files/threads/1/4L1bg4WQ5aWQMiE82ouag_2.json +55 -0
  81. data/spec/fixtures/import_files/threads/1/4L1bg4WQ5aWQMiE82ouag_4.json +49 -0
  82. data/spec/fixtures/import_files/threads/1/4WFZh4MwC4Mc0EQWAeOY8A_1.json +12 -0
  83. data/spec/fixtures/import_files/threads/1/4WFZh4MwC4Mc0EQWAeOY8A_2.json +12 -0
  84. data/spec/fixtures/import_files/threads/assets/0/image_1.json +9 -0
  85. data/spec/fixtures/import_files/threads/assets/0/image_2.json +9 -0
  86. data/spec/fixtures/import_files/threads/assets/0/image_3.json +9 -0
  87. data/spec/fixtures/import_files/threads/assets/0/image_4.json +9 -0
  88. data/spec/fixtures/settings/contentful_model.json +252 -0
  89. data/spec/fixtures/settings/contentful_structure.json +73 -0
  90. data/spec/fixtures/settings/contentful_structure_test.json +66 -0
  91. data/spec/fixtures/settings/settings.yml +12 -0
  92. data/spec/fixtures/vcr_cassettes/create_asset.yml +621 -0
  93. data/spec/fixtures/vcr_cassettes/create_entry.yml +122 -0
  94. data/spec/fixtures/vcr_cassettes/create_space.yml +87 -0
  95. data/spec/fixtures/vcr_cassettes/import_assets.yml +2822 -0
  96. data/spec/fixtures/vcr_cassettes/import_content_types.yml +1915 -0
  97. data/spec/fixtures/vcr_cassettes/import_entries.yml +5066 -0
  98. data/spec/fixtures/vcr_cassettes/import_entry.yml +363 -0
  99. data/spec/fixtures/vcr_cassettes/invalid_credentials.yml +69 -0
  100. data/spec/fixtures/vcr_cassettes/publish_an_entry.yml +214 -0
  101. data/spec/fixtures/vcr_cassettes/publish_asset.yml +895 -0
  102. data/spec/fixtures/vcr_cassettes/publish_entries.yml +5121 -0
  103. data/spec/fixtures/vcr_cassettes/valid_credentials.yml +7360 -0
  104. data/spec/lib/configuration_spec.rb +22 -0
  105. data/spec/lib/importer/parallel_importer_spec.rb +161 -0
  106. data/spec/lib/json_schema_validator_spec.rb +63 -0
  107. data/spec/lib/migrator_spec.rb +99 -0
  108. data/spec/spec_helper.rb +12 -0
  109. data/spec/support/db_rows_json.rb +9 -0
  110. data/spec/support/shared_configuration.rb +22 -0
  111. data/spec/support/vcr.rb +16 -0
  112. metadata +436 -0
@@ -0,0 +1,122 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.contentful.com/spaces/ip17s12q0ek4/content_types/6H6pGAV1PUsuoAW26Iu48W
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - RubyContentfulManagementGem/0.5.0
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
+ Access-Control-Allow-Headers:
26
+ - 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,X-Contentful-Skip-Transformation
27
+ Access-Control-Allow-Methods:
28
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
29
+ Access-Control-Allow-Origin:
30
+ - "*"
31
+ Access-Control-Expose-Headers:
32
+ - Etag
33
+ Access-Control-Max-Age:
34
+ - '1728000'
35
+ Cf-Space-Id:
36
+ - ip17s12q0ek4
37
+ Content-Type:
38
+ - application/vnd.contentful.management.v1+json
39
+ Date:
40
+ - Mon, 05 Jan 2015 08:09:46 GMT
41
+ Etag:
42
+ - '"29decf3f4237019bb156e642e6747488"'
43
+ Server:
44
+ - nginx
45
+ X-Powered-By:
46
+ - Express
47
+ Content-Length:
48
+ - '1386'
49
+ Connection:
50
+ - keep-alive
51
+ body:
52
+ encoding: UTF-8
53
+ string: |
54
+ {
55
+ "displayField": "subject",
56
+ "name": "Comment",
57
+ "description": "",
58
+ "fields": [
59
+ {
60
+ "id": "subject",
61
+ "name": "Subject",
62
+ "type": "Text",
63
+ "linkType": null,
64
+ "items": null,
65
+ "required": null,
66
+ "localized": null,
67
+ "validations": null
68
+ },
69
+ {
70
+ "id": "content",
71
+ "name": "Content",
72
+ "type": "Text",
73
+ "linkType": null,
74
+ "items": null,
75
+ "required": null,
76
+ "localized": null,
77
+ "validations": null
78
+ }
79
+ ],
80
+ "sys": {
81
+ "id": "6H6pGAV1PUsuoAW26Iu48W",
82
+ "type": "ContentType",
83
+ "createdAt": "2014-12-19T14:14:37.371Z",
84
+ "createdBy": {
85
+ "sys": {
86
+ "type": "Link",
87
+ "linkType": "User",
88
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
89
+ }
90
+ },
91
+ "space": {
92
+ "sys": {
93
+ "type": "Link",
94
+ "linkType": "Space",
95
+ "id": "ip17s12q0ek4"
96
+ }
97
+ },
98
+ "firstPublishedAt": "2014-12-19T14:14:39.787Z",
99
+ "publishedCounter": 1,
100
+ "publishedAt": "2014-12-19T14:14:39.787Z",
101
+ "publishedBy": {
102
+ "sys": {
103
+ "type": "Link",
104
+ "linkType": "User",
105
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
106
+ }
107
+ },
108
+ "publishedVersion": 2,
109
+ "version": 3,
110
+ "updatedAt": "2014-12-19T14:14:39.836Z",
111
+ "updatedBy": {
112
+ "sys": {
113
+ "type": "Link",
114
+ "linkType": "User",
115
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
116
+ }
117
+ }
118
+ }
119
+ }
120
+ http_version:
121
+ recorded_at: Mon, 05 Jan 2015 08:09:47 GMT
122
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,87 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.contentful.com/spaces
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"name":"rspec_test_space","defaultLocale":"LOCALE_CODE"}'
9
+ headers:
10
+ User-Agent:
11
+ - RubyContentfulManagementGem/0.5.0
12
+ Authorization:
13
+ - Bearer <ACCESS_TOKEN>
14
+ Content-Type:
15
+ - application/vnd.contentful.management.v1+json
16
+ X-Contentful-Organization:
17
+ - 1EQPR5IHrPx94UY4AViTYO
18
+ Host:
19
+ - api.contentful.com
20
+ response:
21
+ status:
22
+ code: 201
23
+ message: Created
24
+ headers:
25
+ Accept-Ranges:
26
+ - bytes
27
+ Access-Control-Allow-Headers:
28
+ - 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,X-Contentful-Skip-Transformation
29
+ Access-Control-Allow-Methods:
30
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
31
+ Access-Control-Allow-Origin:
32
+ - "*"
33
+ Access-Control-Expose-Headers:
34
+ - Etag
35
+ Access-Control-Max-Age:
36
+ - '1728000'
37
+ Cache-Control:
38
+ - max-age=0
39
+ Content-Type:
40
+ - application/vnd.contentful.management.v1+json
41
+ Date:
42
+ - Mon, 05 Jan 2015 07:12:15 GMT
43
+ Etag:
44
+ - '"2b28ae9100ccc0f31a9694254151becd"'
45
+ Location:
46
+ - https://api.contentful.com/spaces/xhnj547e27cy
47
+ Server:
48
+ - nginx
49
+ Status:
50
+ - 201 Created
51
+ X-Contentful-Request-Id:
52
+ - 71a-1118248373
53
+ Content-Length:
54
+ - '459'
55
+ Connection:
56
+ - keep-alive
57
+ body:
58
+ encoding: UTF-8
59
+ string: |+
60
+ {
61
+ "sys":{
62
+ "type":"Space",
63
+ "id":"xhnj547e27cy",
64
+ "version":1,
65
+ "createdBy":{
66
+ "sys":{
67
+ "type":"Link",
68
+ "linkType":"User",
69
+ "id":"1E7acJL8I5XUXAMHQt9Grs"
70
+ }
71
+ },
72
+ "createdAt":"2015-01-05T07:12:11Z",
73
+ "updatedBy":{
74
+ "sys":{
75
+ "type":"Link",
76
+ "linkType":"User",
77
+ "id":"1E7acJL8I5XUXAMHQt9Grs"
78
+ }
79
+ },
80
+ "updatedAt":"2015-01-05T07:12:12Z"
81
+ },
82
+ "name":"rspec_test_space"
83
+ }
84
+
85
+ http_version:
86
+ recorded_at: Mon, 05 Jan 2015 07:12:15 GMT
87
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,2822 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.contentful.com/spaces/ip17s12q0ek4
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - RubyContentfulManagementGem/0.5.0
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
+ Accept-Ranges:
26
+ - bytes
27
+ Access-Control-Allow-Headers:
28
+ - 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,X-Contentful-Skip-Transformation
29
+ Access-Control-Allow-Methods:
30
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
31
+ Access-Control-Allow-Origin:
32
+ - "*"
33
+ Access-Control-Expose-Headers:
34
+ - Etag
35
+ Access-Control-Max-Age:
36
+ - '1728000'
37
+ Cache-Control:
38
+ - max-age=0
39
+ Content-Type:
40
+ - application/vnd.contentful.management.v1+json
41
+ Date:
42
+ - Sun, 04 Jan 2015 19:11:08 GMT
43
+ Etag:
44
+ - '"65cf3d93e9e6c0cb1669afc8e289f4b4"'
45
+ Server:
46
+ - nginx
47
+ Status:
48
+ - 200 OK
49
+ X-Contentful-Request-Id:
50
+ - 85f-1346180541
51
+ Content-Length:
52
+ - '465'
53
+ Connection:
54
+ - keep-alive
55
+ body:
56
+ encoding: UTF-8
57
+ string: |+
58
+ {
59
+ "sys":{
60
+ "type":"Space",
61
+ "id":"ip17s12q0ek4",
62
+ "version":1,
63
+ "createdBy":{
64
+ "sys":{
65
+ "type":"Link",
66
+ "linkType":"User",
67
+ "id":"1E7acJL8I5XUXAMHQt9Grs"
68
+ }
69
+ },
70
+ "createdAt":"2014-12-16T12:41:15Z",
71
+ "updatedBy":{
72
+ "sys":{
73
+ "type":"Link",
74
+ "linkType":"User",
75
+ "id":"1E7acJL8I5XUXAMHQt9Grs"
76
+ }
77
+ },
78
+ "updatedAt":"2014-12-16T12:41:16Z"
79
+ },
80
+ "name":"Importer Example Space"
81
+ }
82
+
83
+ http_version:
84
+ recorded_at: Sun, 04 Jan 2015 19:11:08 GMT
85
+ - request:
86
+ method: get
87
+ uri: https://api.contentful.com/spaces/ip17s12q0ek4/content_types
88
+ body:
89
+ encoding: US-ASCII
90
+ string: ''
91
+ headers:
92
+ User-Agent:
93
+ - RubyContentfulManagementGem/0.5.0
94
+ Authorization:
95
+ - Bearer <ACCESS_TOKEN>
96
+ Content-Type:
97
+ - application/vnd.contentful.management.v1+json
98
+ Content-Length:
99
+ - '0'
100
+ Host:
101
+ - api.contentful.com
102
+ response:
103
+ status:
104
+ code: 200
105
+ message: OK
106
+ headers:
107
+ Access-Control-Allow-Headers:
108
+ - 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,X-Contentful-Skip-Transformation
109
+ Access-Control-Allow-Methods:
110
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
111
+ Access-Control-Allow-Origin:
112
+ - "*"
113
+ Access-Control-Expose-Headers:
114
+ - Etag
115
+ Access-Control-Max-Age:
116
+ - '1728000'
117
+ Cf-Space-Id:
118
+ - ip17s12q0ek4
119
+ Content-Type:
120
+ - application/vnd.contentful.management.v1+json
121
+ Date:
122
+ - Sun, 04 Jan 2015 19:11:08 GMT
123
+ Etag:
124
+ - '"d7fb761727969f9c52a402223e0bae78"'
125
+ Server:
126
+ - nginx
127
+ X-Powered-By:
128
+ - Express
129
+ Content-Length:
130
+ - '10394'
131
+ Connection:
132
+ - keep-alive
133
+ body:
134
+ encoding: UTF-8
135
+ string: |
136
+ {
137
+ "sys": {
138
+ "type": "Array"
139
+ },
140
+ "total": 5,
141
+ "skip": 0,
142
+ "limit": 100,
143
+ "items": [
144
+ {
145
+ "displayField": "first_name",
146
+ "name": "User",
147
+ "description": "",
148
+ "fields": [
149
+ {
150
+ "id": "first_name",
151
+ "name": "First_name",
152
+ "type": "Text",
153
+ "linkType": null,
154
+ "items": null,
155
+ "required": null,
156
+ "localized": null,
157
+ "validations": null
158
+ },
159
+ {
160
+ "id": "last_name",
161
+ "name": "Last_name",
162
+ "type": "Text",
163
+ "linkType": null,
164
+ "items": null,
165
+ "required": null,
166
+ "localized": null,
167
+ "validations": null
168
+ },
169
+ {
170
+ "id": "birthday",
171
+ "name": "Birthday",
172
+ "type": "Date",
173
+ "linkType": null,
174
+ "items": null,
175
+ "required": null,
176
+ "localized": null,
177
+ "validations": null
178
+ },
179
+ {
180
+ "id": "job_adds",
181
+ "name": "Job_adds",
182
+ "type": "Array",
183
+ "linkType": null,
184
+ "items": {
185
+ "id": null,
186
+ "name": null,
187
+ "type": "Link",
188
+ "linkType": "Entry",
189
+ "items": null,
190
+ "required": null,
191
+ "localized": null,
192
+ "validations": null
193
+ },
194
+ "required": null,
195
+ "localized": null,
196
+ "validations": null
197
+ },
198
+ {
199
+ "id": "profile",
200
+ "name": "Profile",
201
+ "type": "Link",
202
+ "linkType": "Entry",
203
+ "items": null,
204
+ "required": null,
205
+ "localized": null,
206
+ "validations": null
207
+ }
208
+ ],
209
+ "sys": {
210
+ "id": "1TVvxCqoRq0qUYAOQuOqys",
211
+ "type": "ContentType",
212
+ "createdAt": "2014-12-19T14:14:50.986Z",
213
+ "createdBy": {
214
+ "sys": {
215
+ "type": "Link",
216
+ "linkType": "User",
217
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
218
+ }
219
+ },
220
+ "space": {
221
+ "sys": {
222
+ "type": "Link",
223
+ "linkType": "Space",
224
+ "id": "ip17s12q0ek4"
225
+ }
226
+ },
227
+ "firstPublishedAt": "2014-12-19T14:14:52.885Z",
228
+ "publishedCounter": 1,
229
+ "publishedAt": "2014-12-19T14:14:52.885Z",
230
+ "publishedBy": {
231
+ "sys": {
232
+ "type": "Link",
233
+ "linkType": "User",
234
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
235
+ }
236
+ },
237
+ "publishedVersion": 2,
238
+ "version": 3,
239
+ "updatedAt": "2014-12-19T14:14:52.907Z",
240
+ "updatedBy": {
241
+ "sys": {
242
+ "type": "Link",
243
+ "linkType": "User",
244
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
245
+ }
246
+ }
247
+ }
248
+ },
249
+ {
250
+ "displayField": "subject",
251
+ "name": "Comment",
252
+ "description": "",
253
+ "fields": [
254
+ {
255
+ "id": "subject",
256
+ "name": "Subject",
257
+ "type": "Text",
258
+ "linkType": null,
259
+ "items": null,
260
+ "required": null,
261
+ "localized": null,
262
+ "validations": null
263
+ },
264
+ {
265
+ "id": "content",
266
+ "name": "Content",
267
+ "type": "Text",
268
+ "linkType": null,
269
+ "items": null,
270
+ "required": null,
271
+ "localized": null,
272
+ "validations": null
273
+ }
274
+ ],
275
+ "sys": {
276
+ "id": "6H6pGAV1PUsuoAW26Iu48W",
277
+ "type": "ContentType",
278
+ "createdAt": "2014-12-19T14:14:37.371Z",
279
+ "createdBy": {
280
+ "sys": {
281
+ "type": "Link",
282
+ "linkType": "User",
283
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
284
+ }
285
+ },
286
+ "space": {
287
+ "sys": {
288
+ "type": "Link",
289
+ "linkType": "Space",
290
+ "id": "ip17s12q0ek4"
291
+ }
292
+ },
293
+ "firstPublishedAt": "2014-12-19T14:14:39.787Z",
294
+ "publishedCounter": 1,
295
+ "publishedAt": "2014-12-19T14:14:39.787Z",
296
+ "publishedBy": {
297
+ "sys": {
298
+ "type": "Link",
299
+ "linkType": "User",
300
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
301
+ }
302
+ },
303
+ "publishedVersion": 2,
304
+ "version": 3,
305
+ "updatedAt": "2014-12-19T14:14:39.836Z",
306
+ "updatedBy": {
307
+ "sys": {
308
+ "type": "Link",
309
+ "linkType": "User",
310
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
311
+ }
312
+ }
313
+ }
314
+ },
315
+ {
316
+ "displayField": "title",
317
+ "name": "Jobs",
318
+ "description": "",
319
+ "fields": [
320
+ {
321
+ "id": "title",
322
+ "name": "Title",
323
+ "type": "Text",
324
+ "linkType": null,
325
+ "items": null,
326
+ "required": null,
327
+ "localized": null,
328
+ "validations": null
329
+ },
330
+ {
331
+ "id": "description",
332
+ "name": "Description",
333
+ "type": "Text",
334
+ "linkType": null,
335
+ "items": null,
336
+ "required": null,
337
+ "localized": null,
338
+ "validations": null
339
+ },
340
+ {
341
+ "id": "image",
342
+ "name": "Image",
343
+ "type": "Link",
344
+ "linkType": "Asset",
345
+ "items": null,
346
+ "required": null,
347
+ "localized": null,
348
+ "validations": null
349
+ },
350
+ {
351
+ "id": "creator",
352
+ "name": "Creator",
353
+ "type": "Link",
354
+ "linkType": "Entry",
355
+ "items": null,
356
+ "required": null,
357
+ "localized": null,
358
+ "validations": null
359
+ },
360
+ {
361
+ "id": "comments",
362
+ "name": "Comments",
363
+ "type": "Array",
364
+ "linkType": null,
365
+ "items": {
366
+ "id": null,
367
+ "name": null,
368
+ "type": "Link",
369
+ "linkType": "Entry",
370
+ "items": null,
371
+ "required": null,
372
+ "localized": null,
373
+ "validations": null
374
+ },
375
+ "required": null,
376
+ "localized": null,
377
+ "validations": null
378
+ },
379
+ {
380
+ "id": "skills",
381
+ "name": "Skills",
382
+ "type": "Array",
383
+ "linkType": null,
384
+ "items": {
385
+ "id": null,
386
+ "name": null,
387
+ "type": "Link",
388
+ "linkType": "Entry",
389
+ "items": null,
390
+ "required": null,
391
+ "localized": null,
392
+ "validations": null
393
+ },
394
+ "required": null,
395
+ "localized": null,
396
+ "validations": null
397
+ }
398
+ ],
399
+ "sys": {
400
+ "id": "4L1bg4WQ5aWQMiE82ouag",
401
+ "type": "ContentType",
402
+ "createdAt": "2014-12-19T14:14:44.827Z",
403
+ "createdBy": {
404
+ "sys": {
405
+ "type": "Link",
406
+ "linkType": "User",
407
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
408
+ }
409
+ },
410
+ "space": {
411
+ "sys": {
412
+ "type": "Link",
413
+ "linkType": "Space",
414
+ "id": "ip17s12q0ek4"
415
+ }
416
+ },
417
+ "firstPublishedAt": "2014-12-19T14:14:46.443Z",
418
+ "publishedCounter": 1,
419
+ "publishedAt": "2014-12-19T14:14:46.443Z",
420
+ "publishedBy": {
421
+ "sys": {
422
+ "type": "Link",
423
+ "linkType": "User",
424
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
425
+ }
426
+ },
427
+ "publishedVersion": 2,
428
+ "version": 3,
429
+ "updatedAt": "2014-12-19T14:14:46.501Z",
430
+ "updatedBy": {
431
+ "sys": {
432
+ "type": "Link",
433
+ "linkType": "User",
434
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
435
+ }
436
+ }
437
+ }
438
+ },
439
+ {
440
+ "name": "Profile",
441
+ "description": null,
442
+ "fields": [
443
+ {
444
+ "id": "nickname",
445
+ "name": "Nickname",
446
+ "type": "Text",
447
+ "linkType": null,
448
+ "required": null,
449
+ "items": null
450
+ },
451
+ {
452
+ "id": "user",
453
+ "name": "User",
454
+ "type": "Link",
455
+ "linkType": "Entry",
456
+ "required": null,
457
+ "items": null
458
+ }
459
+ ],
460
+ "sys": {
461
+ "id": "4WFZh4MwC4Mc0EQWAeOY8A",
462
+ "type": "ContentType",
463
+ "createdAt": "2014-12-19T14:14:48.198Z",
464
+ "createdBy": {
465
+ "sys": {
466
+ "type": "Link",
467
+ "linkType": "User",
468
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
469
+ }
470
+ },
471
+ "space": {
472
+ "sys": {
473
+ "type": "Link",
474
+ "linkType": "Space",
475
+ "id": "ip17s12q0ek4"
476
+ }
477
+ },
478
+ "firstPublishedAt": "2014-12-19T14:14:49.037Z",
479
+ "publishedCounter": 1,
480
+ "publishedAt": "2014-12-19T14:14:49.037Z",
481
+ "publishedBy": {
482
+ "sys": {
483
+ "type": "Link",
484
+ "linkType": "User",
485
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
486
+ }
487
+ },
488
+ "publishedVersion": 1,
489
+ "version": 2,
490
+ "updatedAt": "2014-12-19T14:14:49.084Z",
491
+ "updatedBy": {
492
+ "sys": {
493
+ "type": "Link",
494
+ "linkType": "User",
495
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
496
+ }
497
+ }
498
+ }
499
+ },
500
+ {
501
+ "displayField": "name",
502
+ "name": "Job Skills",
503
+ "description": "",
504
+ "fields": [
505
+ {
506
+ "id": "name",
507
+ "name": "Name",
508
+ "type": "Text",
509
+ "linkType": null,
510
+ "items": null,
511
+ "required": null,
512
+ "localized": null,
513
+ "validations": null
514
+ }
515
+ ],
516
+ "sys": {
517
+ "id": "2soCP557HGKoOOK0SqmMOm",
518
+ "type": "ContentType",
519
+ "createdAt": "2014-12-19T14:14:41.454Z",
520
+ "createdBy": {
521
+ "sys": {
522
+ "type": "Link",
523
+ "linkType": "User",
524
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
525
+ }
526
+ },
527
+ "space": {
528
+ "sys": {
529
+ "type": "Link",
530
+ "linkType": "Space",
531
+ "id": "ip17s12q0ek4"
532
+ }
533
+ },
534
+ "firstPublishedAt": "2014-12-19T14:14:43.043Z",
535
+ "publishedCounter": 1,
536
+ "publishedAt": "2014-12-19T14:14:43.043Z",
537
+ "publishedBy": {
538
+ "sys": {
539
+ "type": "Link",
540
+ "linkType": "User",
541
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
542
+ }
543
+ },
544
+ "publishedVersion": 2,
545
+ "version": 3,
546
+ "updatedAt": "2014-12-19T14:14:43.085Z",
547
+ "updatedBy": {
548
+ "sys": {
549
+ "type": "Link",
550
+ "linkType": "User",
551
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
552
+ }
553
+ }
554
+ }
555
+ }
556
+ ]
557
+ }
558
+ http_version:
559
+ recorded_at: Sun, 04 Jan 2015 19:11:09 GMT
560
+ - request:
561
+ method: put
562
+ uri: https://api.contentful.com/spaces/ip17s12q0ek4/assets/image_1
563
+ body:
564
+ encoding: UTF-8
565
+ string: '{"fields":{"title":{"en-US":"Image 1"},"description":{"en-US":""},"file":{"en-US":{"contentType":"image/jpeg","fileName":"Image
566
+ 1","upload":"http://new1.fjcdn.com/thumbnails/comments/4019311+_9f47119b44b5043d82c74008dc40397d.jpg"}}}}'
567
+ headers:
568
+ User-Agent:
569
+ - RubyContentfulManagementGem/0.5.0
570
+ Authorization:
571
+ - Bearer <ACCESS_TOKEN>
572
+ Content-Type:
573
+ - application/vnd.contentful.management.v1+json
574
+ Host:
575
+ - api.contentful.com
576
+ response:
577
+ status:
578
+ code: 201
579
+ message: Created
580
+ headers:
581
+ Access-Control-Allow-Headers:
582
+ - 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,X-Contentful-Skip-Transformation
583
+ Access-Control-Allow-Methods:
584
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
585
+ Access-Control-Allow-Origin:
586
+ - "*"
587
+ Access-Control-Expose-Headers:
588
+ - Etag
589
+ Access-Control-Max-Age:
590
+ - '1728000'
591
+ Cf-Space-Id:
592
+ - ip17s12q0ek4
593
+ Content-Type:
594
+ - application/vnd.contentful.management.v1+json
595
+ Date:
596
+ - Sun, 04 Jan 2015 19:11:09 GMT
597
+ Etag:
598
+ - '"de8d3bc5d5bf099a1faf5e8ed13dd4ca"'
599
+ Server:
600
+ - nginx
601
+ X-Powered-By:
602
+ - Express
603
+ Content-Length:
604
+ - '908'
605
+ Connection:
606
+ - keep-alive
607
+ body:
608
+ encoding: UTF-8
609
+ string: |
610
+ {
611
+ "fields": {
612
+ "title": {
613
+ "en-US": "Image 1"
614
+ },
615
+ "description": {
616
+ "en-US": ""
617
+ },
618
+ "file": {
619
+ "en-US": {
620
+ "contentType": "image/jpeg",
621
+ "fileName": "Image 1",
622
+ "upload": "http://new1.fjcdn.com/thumbnails/comments/4019311+_9f47119b44b5043d82c74008dc40397d.jpg"
623
+ }
624
+ }
625
+ },
626
+ "sys": {
627
+ "id": "image_1",
628
+ "type": "Asset",
629
+ "version": 1,
630
+ "createdAt": "2015-01-04T19:11:09.787Z",
631
+ "createdBy": {
632
+ "sys": {
633
+ "type": "Link",
634
+ "linkType": "User",
635
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
636
+ }
637
+ },
638
+ "space": {
639
+ "sys": {
640
+ "type": "Link",
641
+ "linkType": "Space",
642
+ "id": "ip17s12q0ek4"
643
+ }
644
+ },
645
+ "updatedAt": "2015-01-04T19:11:09.787Z",
646
+ "updatedBy": {
647
+ "sys": {
648
+ "type": "Link",
649
+ "linkType": "User",
650
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
651
+ }
652
+ }
653
+ }
654
+ }
655
+ http_version:
656
+ recorded_at: Sun, 04 Jan 2015 19:11:10 GMT
657
+ - request:
658
+ method: put
659
+ uri: https://api.contentful.com/spaces/ip17s12q0ek4/assets/image_1/files/en-US/process
660
+ body:
661
+ encoding: US-ASCII
662
+ string: ''
663
+ headers:
664
+ User-Agent:
665
+ - RubyContentfulManagementGem/0.5.0
666
+ Authorization:
667
+ - Bearer <ACCESS_TOKEN>
668
+ Content-Type:
669
+ - application/vnd.contentful.management.v1+json
670
+ X-Contentful-Version:
671
+ - '1'
672
+ Content-Length:
673
+ - '0'
674
+ Host:
675
+ - api.contentful.com
676
+ response:
677
+ status:
678
+ code: 204
679
+ message: No Content
680
+ headers:
681
+ Access-Control-Allow-Headers:
682
+ - 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,X-Contentful-Skip-Transformation
683
+ Access-Control-Allow-Methods:
684
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
685
+ Access-Control-Allow-Origin:
686
+ - "*"
687
+ Access-Control-Expose-Headers:
688
+ - Etag
689
+ Access-Control-Max-Age:
690
+ - '1728000'
691
+ Cf-Space-Id:
692
+ - ip17s12q0ek4
693
+ Content-Type:
694
+ - application/vnd.contentful.management.v1+json
695
+ Date:
696
+ - Sun, 04 Jan 2015 19:11:10 GMT
697
+ Server:
698
+ - nginx
699
+ X-Powered-By:
700
+ - Express
701
+ Connection:
702
+ - keep-alive
703
+ body:
704
+ encoding: UTF-8
705
+ string: ''
706
+ http_version:
707
+ recorded_at: Sun, 04 Jan 2015 19:11:10 GMT
708
+ - request:
709
+ method: get
710
+ uri: https://api.contentful.com/spaces/ip17s12q0ek4
711
+ body:
712
+ encoding: US-ASCII
713
+ string: ''
714
+ headers:
715
+ User-Agent:
716
+ - RubyContentfulManagementGem/0.5.0
717
+ Authorization:
718
+ - Bearer <ACCESS_TOKEN>
719
+ Content-Type:
720
+ - application/vnd.contentful.management.v1+json
721
+ Content-Length:
722
+ - '0'
723
+ Host:
724
+ - api.contentful.com
725
+ response:
726
+ status:
727
+ code: 200
728
+ message: OK
729
+ headers:
730
+ Accept-Ranges:
731
+ - bytes
732
+ Access-Control-Allow-Headers:
733
+ - 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,X-Contentful-Skip-Transformation
734
+ Access-Control-Allow-Methods:
735
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
736
+ Access-Control-Allow-Origin:
737
+ - "*"
738
+ Access-Control-Expose-Headers:
739
+ - Etag
740
+ Access-Control-Max-Age:
741
+ - '1728000'
742
+ Cache-Control:
743
+ - max-age=0
744
+ Content-Type:
745
+ - application/vnd.contentful.management.v1+json
746
+ Date:
747
+ - Sun, 04 Jan 2015 19:11:11 GMT
748
+ Etag:
749
+ - '"65cf3d93e9e6c0cb1669afc8e289f4b4"'
750
+ Server:
751
+ - nginx
752
+ Status:
753
+ - 200 OK
754
+ X-Contentful-Request-Id:
755
+ - f1c-662014774
756
+ Content-Length:
757
+ - '465'
758
+ Connection:
759
+ - keep-alive
760
+ body:
761
+ encoding: UTF-8
762
+ string: |+
763
+ {
764
+ "sys":{
765
+ "type":"Space",
766
+ "id":"ip17s12q0ek4",
767
+ "version":1,
768
+ "createdBy":{
769
+ "sys":{
770
+ "type":"Link",
771
+ "linkType":"User",
772
+ "id":"1E7acJL8I5XUXAMHQt9Grs"
773
+ }
774
+ },
775
+ "createdAt":"2014-12-16T12:41:15Z",
776
+ "updatedBy":{
777
+ "sys":{
778
+ "type":"Link",
779
+ "linkType":"User",
780
+ "id":"1E7acJL8I5XUXAMHQt9Grs"
781
+ }
782
+ },
783
+ "updatedAt":"2014-12-16T12:41:16Z"
784
+ },
785
+ "name":"Importer Example Space"
786
+ }
787
+
788
+ http_version:
789
+ recorded_at: Sun, 04 Jan 2015 19:11:11 GMT
790
+ - request:
791
+ method: get
792
+ uri: https://api.contentful.com/spaces/ip17s12q0ek4/content_types
793
+ body:
794
+ encoding: US-ASCII
795
+ string: ''
796
+ headers:
797
+ User-Agent:
798
+ - RubyContentfulManagementGem/0.5.0
799
+ Authorization:
800
+ - Bearer <ACCESS_TOKEN>
801
+ Content-Type:
802
+ - application/vnd.contentful.management.v1+json
803
+ Content-Length:
804
+ - '0'
805
+ Host:
806
+ - api.contentful.com
807
+ response:
808
+ status:
809
+ code: 200
810
+ message: OK
811
+ headers:
812
+ Access-Control-Allow-Headers:
813
+ - 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,X-Contentful-Skip-Transformation
814
+ Access-Control-Allow-Methods:
815
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
816
+ Access-Control-Allow-Origin:
817
+ - "*"
818
+ Access-Control-Expose-Headers:
819
+ - Etag
820
+ Access-Control-Max-Age:
821
+ - '1728000'
822
+ Cf-Space-Id:
823
+ - ip17s12q0ek4
824
+ Content-Type:
825
+ - application/vnd.contentful.management.v1+json
826
+ Date:
827
+ - Sun, 04 Jan 2015 19:11:11 GMT
828
+ Etag:
829
+ - '"d7fb761727969f9c52a402223e0bae78"'
830
+ Server:
831
+ - nginx
832
+ X-Powered-By:
833
+ - Express
834
+ Content-Length:
835
+ - '10394'
836
+ Connection:
837
+ - keep-alive
838
+ body:
839
+ encoding: UTF-8
840
+ string: |
841
+ {
842
+ "sys": {
843
+ "type": "Array"
844
+ },
845
+ "total": 5,
846
+ "skip": 0,
847
+ "limit": 100,
848
+ "items": [
849
+ {
850
+ "displayField": "first_name",
851
+ "name": "User",
852
+ "description": "",
853
+ "fields": [
854
+ {
855
+ "id": "first_name",
856
+ "name": "First_name",
857
+ "type": "Text",
858
+ "linkType": null,
859
+ "items": null,
860
+ "required": null,
861
+ "localized": null,
862
+ "validations": null
863
+ },
864
+ {
865
+ "id": "last_name",
866
+ "name": "Last_name",
867
+ "type": "Text",
868
+ "linkType": null,
869
+ "items": null,
870
+ "required": null,
871
+ "localized": null,
872
+ "validations": null
873
+ },
874
+ {
875
+ "id": "birthday",
876
+ "name": "Birthday",
877
+ "type": "Date",
878
+ "linkType": null,
879
+ "items": null,
880
+ "required": null,
881
+ "localized": null,
882
+ "validations": null
883
+ },
884
+ {
885
+ "id": "job_adds",
886
+ "name": "Job_adds",
887
+ "type": "Array",
888
+ "linkType": null,
889
+ "items": {
890
+ "id": null,
891
+ "name": null,
892
+ "type": "Link",
893
+ "linkType": "Entry",
894
+ "items": null,
895
+ "required": null,
896
+ "localized": null,
897
+ "validations": null
898
+ },
899
+ "required": null,
900
+ "localized": null,
901
+ "validations": null
902
+ },
903
+ {
904
+ "id": "profile",
905
+ "name": "Profile",
906
+ "type": "Link",
907
+ "linkType": "Entry",
908
+ "items": null,
909
+ "required": null,
910
+ "localized": null,
911
+ "validations": null
912
+ }
913
+ ],
914
+ "sys": {
915
+ "id": "1TVvxCqoRq0qUYAOQuOqys",
916
+ "type": "ContentType",
917
+ "createdAt": "2014-12-19T14:14:50.986Z",
918
+ "createdBy": {
919
+ "sys": {
920
+ "type": "Link",
921
+ "linkType": "User",
922
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
923
+ }
924
+ },
925
+ "space": {
926
+ "sys": {
927
+ "type": "Link",
928
+ "linkType": "Space",
929
+ "id": "ip17s12q0ek4"
930
+ }
931
+ },
932
+ "firstPublishedAt": "2014-12-19T14:14:52.885Z",
933
+ "publishedCounter": 1,
934
+ "publishedAt": "2014-12-19T14:14:52.885Z",
935
+ "publishedBy": {
936
+ "sys": {
937
+ "type": "Link",
938
+ "linkType": "User",
939
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
940
+ }
941
+ },
942
+ "publishedVersion": 2,
943
+ "version": 3,
944
+ "updatedAt": "2014-12-19T14:14:52.907Z",
945
+ "updatedBy": {
946
+ "sys": {
947
+ "type": "Link",
948
+ "linkType": "User",
949
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
950
+ }
951
+ }
952
+ }
953
+ },
954
+ {
955
+ "displayField": "subject",
956
+ "name": "Comment",
957
+ "description": "",
958
+ "fields": [
959
+ {
960
+ "id": "subject",
961
+ "name": "Subject",
962
+ "type": "Text",
963
+ "linkType": null,
964
+ "items": null,
965
+ "required": null,
966
+ "localized": null,
967
+ "validations": null
968
+ },
969
+ {
970
+ "id": "content",
971
+ "name": "Content",
972
+ "type": "Text",
973
+ "linkType": null,
974
+ "items": null,
975
+ "required": null,
976
+ "localized": null,
977
+ "validations": null
978
+ }
979
+ ],
980
+ "sys": {
981
+ "id": "6H6pGAV1PUsuoAW26Iu48W",
982
+ "type": "ContentType",
983
+ "createdAt": "2014-12-19T14:14:37.371Z",
984
+ "createdBy": {
985
+ "sys": {
986
+ "type": "Link",
987
+ "linkType": "User",
988
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
989
+ }
990
+ },
991
+ "space": {
992
+ "sys": {
993
+ "type": "Link",
994
+ "linkType": "Space",
995
+ "id": "ip17s12q0ek4"
996
+ }
997
+ },
998
+ "firstPublishedAt": "2014-12-19T14:14:39.787Z",
999
+ "publishedCounter": 1,
1000
+ "publishedAt": "2014-12-19T14:14:39.787Z",
1001
+ "publishedBy": {
1002
+ "sys": {
1003
+ "type": "Link",
1004
+ "linkType": "User",
1005
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1006
+ }
1007
+ },
1008
+ "publishedVersion": 2,
1009
+ "version": 3,
1010
+ "updatedAt": "2014-12-19T14:14:39.836Z",
1011
+ "updatedBy": {
1012
+ "sys": {
1013
+ "type": "Link",
1014
+ "linkType": "User",
1015
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1016
+ }
1017
+ }
1018
+ }
1019
+ },
1020
+ {
1021
+ "displayField": "title",
1022
+ "name": "Jobs",
1023
+ "description": "",
1024
+ "fields": [
1025
+ {
1026
+ "id": "title",
1027
+ "name": "Title",
1028
+ "type": "Text",
1029
+ "linkType": null,
1030
+ "items": null,
1031
+ "required": null,
1032
+ "localized": null,
1033
+ "validations": null
1034
+ },
1035
+ {
1036
+ "id": "description",
1037
+ "name": "Description",
1038
+ "type": "Text",
1039
+ "linkType": null,
1040
+ "items": null,
1041
+ "required": null,
1042
+ "localized": null,
1043
+ "validations": null
1044
+ },
1045
+ {
1046
+ "id": "image",
1047
+ "name": "Image",
1048
+ "type": "Link",
1049
+ "linkType": "Asset",
1050
+ "items": null,
1051
+ "required": null,
1052
+ "localized": null,
1053
+ "validations": null
1054
+ },
1055
+ {
1056
+ "id": "creator",
1057
+ "name": "Creator",
1058
+ "type": "Link",
1059
+ "linkType": "Entry",
1060
+ "items": null,
1061
+ "required": null,
1062
+ "localized": null,
1063
+ "validations": null
1064
+ },
1065
+ {
1066
+ "id": "comments",
1067
+ "name": "Comments",
1068
+ "type": "Array",
1069
+ "linkType": null,
1070
+ "items": {
1071
+ "id": null,
1072
+ "name": null,
1073
+ "type": "Link",
1074
+ "linkType": "Entry",
1075
+ "items": null,
1076
+ "required": null,
1077
+ "localized": null,
1078
+ "validations": null
1079
+ },
1080
+ "required": null,
1081
+ "localized": null,
1082
+ "validations": null
1083
+ },
1084
+ {
1085
+ "id": "skills",
1086
+ "name": "Skills",
1087
+ "type": "Array",
1088
+ "linkType": null,
1089
+ "items": {
1090
+ "id": null,
1091
+ "name": null,
1092
+ "type": "Link",
1093
+ "linkType": "Entry",
1094
+ "items": null,
1095
+ "required": null,
1096
+ "localized": null,
1097
+ "validations": null
1098
+ },
1099
+ "required": null,
1100
+ "localized": null,
1101
+ "validations": null
1102
+ }
1103
+ ],
1104
+ "sys": {
1105
+ "id": "4L1bg4WQ5aWQMiE82ouag",
1106
+ "type": "ContentType",
1107
+ "createdAt": "2014-12-19T14:14:44.827Z",
1108
+ "createdBy": {
1109
+ "sys": {
1110
+ "type": "Link",
1111
+ "linkType": "User",
1112
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1113
+ }
1114
+ },
1115
+ "space": {
1116
+ "sys": {
1117
+ "type": "Link",
1118
+ "linkType": "Space",
1119
+ "id": "ip17s12q0ek4"
1120
+ }
1121
+ },
1122
+ "firstPublishedAt": "2014-12-19T14:14:46.443Z",
1123
+ "publishedCounter": 1,
1124
+ "publishedAt": "2014-12-19T14:14:46.443Z",
1125
+ "publishedBy": {
1126
+ "sys": {
1127
+ "type": "Link",
1128
+ "linkType": "User",
1129
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1130
+ }
1131
+ },
1132
+ "publishedVersion": 2,
1133
+ "version": 3,
1134
+ "updatedAt": "2014-12-19T14:14:46.501Z",
1135
+ "updatedBy": {
1136
+ "sys": {
1137
+ "type": "Link",
1138
+ "linkType": "User",
1139
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1140
+ }
1141
+ }
1142
+ }
1143
+ },
1144
+ {
1145
+ "name": "Profile",
1146
+ "description": null,
1147
+ "fields": [
1148
+ {
1149
+ "id": "nickname",
1150
+ "name": "Nickname",
1151
+ "type": "Text",
1152
+ "linkType": null,
1153
+ "required": null,
1154
+ "items": null
1155
+ },
1156
+ {
1157
+ "id": "user",
1158
+ "name": "User",
1159
+ "type": "Link",
1160
+ "linkType": "Entry",
1161
+ "required": null,
1162
+ "items": null
1163
+ }
1164
+ ],
1165
+ "sys": {
1166
+ "id": "4WFZh4MwC4Mc0EQWAeOY8A",
1167
+ "type": "ContentType",
1168
+ "createdAt": "2014-12-19T14:14:48.198Z",
1169
+ "createdBy": {
1170
+ "sys": {
1171
+ "type": "Link",
1172
+ "linkType": "User",
1173
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1174
+ }
1175
+ },
1176
+ "space": {
1177
+ "sys": {
1178
+ "type": "Link",
1179
+ "linkType": "Space",
1180
+ "id": "ip17s12q0ek4"
1181
+ }
1182
+ },
1183
+ "firstPublishedAt": "2014-12-19T14:14:49.037Z",
1184
+ "publishedCounter": 1,
1185
+ "publishedAt": "2014-12-19T14:14:49.037Z",
1186
+ "publishedBy": {
1187
+ "sys": {
1188
+ "type": "Link",
1189
+ "linkType": "User",
1190
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1191
+ }
1192
+ },
1193
+ "publishedVersion": 1,
1194
+ "version": 2,
1195
+ "updatedAt": "2014-12-19T14:14:49.084Z",
1196
+ "updatedBy": {
1197
+ "sys": {
1198
+ "type": "Link",
1199
+ "linkType": "User",
1200
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1201
+ }
1202
+ }
1203
+ }
1204
+ },
1205
+ {
1206
+ "displayField": "name",
1207
+ "name": "Job Skills",
1208
+ "description": "",
1209
+ "fields": [
1210
+ {
1211
+ "id": "name",
1212
+ "name": "Name",
1213
+ "type": "Text",
1214
+ "linkType": null,
1215
+ "items": null,
1216
+ "required": null,
1217
+ "localized": null,
1218
+ "validations": null
1219
+ }
1220
+ ],
1221
+ "sys": {
1222
+ "id": "2soCP557HGKoOOK0SqmMOm",
1223
+ "type": "ContentType",
1224
+ "createdAt": "2014-12-19T14:14:41.454Z",
1225
+ "createdBy": {
1226
+ "sys": {
1227
+ "type": "Link",
1228
+ "linkType": "User",
1229
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1230
+ }
1231
+ },
1232
+ "space": {
1233
+ "sys": {
1234
+ "type": "Link",
1235
+ "linkType": "Space",
1236
+ "id": "ip17s12q0ek4"
1237
+ }
1238
+ },
1239
+ "firstPublishedAt": "2014-12-19T14:14:43.043Z",
1240
+ "publishedCounter": 1,
1241
+ "publishedAt": "2014-12-19T14:14:43.043Z",
1242
+ "publishedBy": {
1243
+ "sys": {
1244
+ "type": "Link",
1245
+ "linkType": "User",
1246
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1247
+ }
1248
+ },
1249
+ "publishedVersion": 2,
1250
+ "version": 3,
1251
+ "updatedAt": "2014-12-19T14:14:43.085Z",
1252
+ "updatedBy": {
1253
+ "sys": {
1254
+ "type": "Link",
1255
+ "linkType": "User",
1256
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1257
+ }
1258
+ }
1259
+ }
1260
+ }
1261
+ ]
1262
+ }
1263
+ http_version:
1264
+ recorded_at: Sun, 04 Jan 2015 19:11:11 GMT
1265
+ - request:
1266
+ method: put
1267
+ uri: https://api.contentful.com/spaces/ip17s12q0ek4/assets/image_2
1268
+ body:
1269
+ encoding: UTF-8
1270
+ string: '{"fields":{"title":{"en-US":"Image 2 - water"},"description":{"en-US":""},"file":{"en-US":{"contentType":"image/jpeg","fileName":"Image
1271
+ 2 - water","upload":"http://csironewsblog.files.wordpress.com/2013/06/water_cover1.jpg"}}}}'
1272
+ headers:
1273
+ User-Agent:
1274
+ - RubyContentfulManagementGem/0.5.0
1275
+ Authorization:
1276
+ - Bearer <ACCESS_TOKEN>
1277
+ Content-Type:
1278
+ - application/vnd.contentful.management.v1+json
1279
+ Host:
1280
+ - api.contentful.com
1281
+ response:
1282
+ status:
1283
+ code: 201
1284
+ message: Created
1285
+ headers:
1286
+ Access-Control-Allow-Headers:
1287
+ - 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,X-Contentful-Skip-Transformation
1288
+ Access-Control-Allow-Methods:
1289
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
1290
+ Access-Control-Allow-Origin:
1291
+ - "*"
1292
+ Access-Control-Expose-Headers:
1293
+ - Etag
1294
+ Access-Control-Max-Age:
1295
+ - '1728000'
1296
+ Cf-Space-Id:
1297
+ - ip17s12q0ek4
1298
+ Content-Type:
1299
+ - application/vnd.contentful.management.v1+json
1300
+ Date:
1301
+ - Sun, 04 Jan 2015 19:11:12 GMT
1302
+ Etag:
1303
+ - '"afd31c23e1adc3a5d4b90d9028c8849f"'
1304
+ Server:
1305
+ - nginx
1306
+ X-Powered-By:
1307
+ - Express
1308
+ Content-Length:
1309
+ - '902'
1310
+ Connection:
1311
+ - keep-alive
1312
+ body:
1313
+ encoding: UTF-8
1314
+ string: |
1315
+ {
1316
+ "fields": {
1317
+ "title": {
1318
+ "en-US": "Image 2 - water"
1319
+ },
1320
+ "description": {
1321
+ "en-US": ""
1322
+ },
1323
+ "file": {
1324
+ "en-US": {
1325
+ "contentType": "image/jpeg",
1326
+ "fileName": "Image 2 - water",
1327
+ "upload": "http://csironewsblog.files.wordpress.com/2013/06/water_cover1.jpg"
1328
+ }
1329
+ }
1330
+ },
1331
+ "sys": {
1332
+ "id": "image_2",
1333
+ "type": "Asset",
1334
+ "version": 1,
1335
+ "createdAt": "2015-01-04T19:11:12.607Z",
1336
+ "createdBy": {
1337
+ "sys": {
1338
+ "type": "Link",
1339
+ "linkType": "User",
1340
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1341
+ }
1342
+ },
1343
+ "space": {
1344
+ "sys": {
1345
+ "type": "Link",
1346
+ "linkType": "Space",
1347
+ "id": "ip17s12q0ek4"
1348
+ }
1349
+ },
1350
+ "updatedAt": "2015-01-04T19:11:12.607Z",
1351
+ "updatedBy": {
1352
+ "sys": {
1353
+ "type": "Link",
1354
+ "linkType": "User",
1355
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1356
+ }
1357
+ }
1358
+ }
1359
+ }
1360
+ http_version:
1361
+ recorded_at: Sun, 04 Jan 2015 19:11:12 GMT
1362
+ - request:
1363
+ method: put
1364
+ uri: https://api.contentful.com/spaces/ip17s12q0ek4/assets/image_2/files/en-US/process
1365
+ body:
1366
+ encoding: US-ASCII
1367
+ string: ''
1368
+ headers:
1369
+ User-Agent:
1370
+ - RubyContentfulManagementGem/0.5.0
1371
+ Authorization:
1372
+ - Bearer <ACCESS_TOKEN>
1373
+ Content-Type:
1374
+ - application/vnd.contentful.management.v1+json
1375
+ X-Contentful-Version:
1376
+ - '1'
1377
+ Content-Length:
1378
+ - '0'
1379
+ Host:
1380
+ - api.contentful.com
1381
+ response:
1382
+ status:
1383
+ code: 204
1384
+ message: No Content
1385
+ headers:
1386
+ Access-Control-Allow-Headers:
1387
+ - 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,X-Contentful-Skip-Transformation
1388
+ Access-Control-Allow-Methods:
1389
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
1390
+ Access-Control-Allow-Origin:
1391
+ - "*"
1392
+ Access-Control-Expose-Headers:
1393
+ - Etag
1394
+ Access-Control-Max-Age:
1395
+ - '1728000'
1396
+ Cf-Space-Id:
1397
+ - ip17s12q0ek4
1398
+ Content-Type:
1399
+ - application/vnd.contentful.management.v1+json
1400
+ Date:
1401
+ - Sun, 04 Jan 2015 19:11:13 GMT
1402
+ Server:
1403
+ - nginx
1404
+ X-Powered-By:
1405
+ - Express
1406
+ Connection:
1407
+ - keep-alive
1408
+ body:
1409
+ encoding: UTF-8
1410
+ string: ''
1411
+ http_version:
1412
+ recorded_at: Sun, 04 Jan 2015 19:11:13 GMT
1413
+ - request:
1414
+ method: get
1415
+ uri: https://api.contentful.com/spaces/ip17s12q0ek4
1416
+ body:
1417
+ encoding: US-ASCII
1418
+ string: ''
1419
+ headers:
1420
+ User-Agent:
1421
+ - RubyContentfulManagementGem/0.5.0
1422
+ Authorization:
1423
+ - Bearer <ACCESS_TOKEN>
1424
+ Content-Type:
1425
+ - application/vnd.contentful.management.v1+json
1426
+ Content-Length:
1427
+ - '0'
1428
+ Host:
1429
+ - api.contentful.com
1430
+ response:
1431
+ status:
1432
+ code: 200
1433
+ message: OK
1434
+ headers:
1435
+ Accept-Ranges:
1436
+ - bytes
1437
+ Access-Control-Allow-Headers:
1438
+ - 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,X-Contentful-Skip-Transformation
1439
+ Access-Control-Allow-Methods:
1440
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
1441
+ Access-Control-Allow-Origin:
1442
+ - "*"
1443
+ Access-Control-Expose-Headers:
1444
+ - Etag
1445
+ Access-Control-Max-Age:
1446
+ - '1728000'
1447
+ Cache-Control:
1448
+ - max-age=0
1449
+ Content-Type:
1450
+ - application/vnd.contentful.management.v1+json
1451
+ Date:
1452
+ - Sun, 04 Jan 2015 19:11:14 GMT
1453
+ Etag:
1454
+ - '"65cf3d93e9e6c0cb1669afc8e289f4b4"'
1455
+ Server:
1456
+ - nginx
1457
+ Status:
1458
+ - 200 OK
1459
+ X-Contentful-Request-Id:
1460
+ - 71a-1117994091
1461
+ Content-Length:
1462
+ - '465'
1463
+ Connection:
1464
+ - keep-alive
1465
+ body:
1466
+ encoding: UTF-8
1467
+ string: |+
1468
+ {
1469
+ "sys":{
1470
+ "type":"Space",
1471
+ "id":"ip17s12q0ek4",
1472
+ "version":1,
1473
+ "createdBy":{
1474
+ "sys":{
1475
+ "type":"Link",
1476
+ "linkType":"User",
1477
+ "id":"1E7acJL8I5XUXAMHQt9Grs"
1478
+ }
1479
+ },
1480
+ "createdAt":"2014-12-16T12:41:15Z",
1481
+ "updatedBy":{
1482
+ "sys":{
1483
+ "type":"Link",
1484
+ "linkType":"User",
1485
+ "id":"1E7acJL8I5XUXAMHQt9Grs"
1486
+ }
1487
+ },
1488
+ "updatedAt":"2014-12-16T12:41:16Z"
1489
+ },
1490
+ "name":"Importer Example Space"
1491
+ }
1492
+
1493
+ http_version:
1494
+ recorded_at: Sun, 04 Jan 2015 19:11:14 GMT
1495
+ - request:
1496
+ method: get
1497
+ uri: https://api.contentful.com/spaces/ip17s12q0ek4/content_types
1498
+ body:
1499
+ encoding: US-ASCII
1500
+ string: ''
1501
+ headers:
1502
+ User-Agent:
1503
+ - RubyContentfulManagementGem/0.5.0
1504
+ Authorization:
1505
+ - Bearer <ACCESS_TOKEN>
1506
+ Content-Type:
1507
+ - application/vnd.contentful.management.v1+json
1508
+ Content-Length:
1509
+ - '0'
1510
+ Host:
1511
+ - api.contentful.com
1512
+ response:
1513
+ status:
1514
+ code: 200
1515
+ message: OK
1516
+ headers:
1517
+ Access-Control-Allow-Headers:
1518
+ - 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,X-Contentful-Skip-Transformation
1519
+ Access-Control-Allow-Methods:
1520
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
1521
+ Access-Control-Allow-Origin:
1522
+ - "*"
1523
+ Access-Control-Expose-Headers:
1524
+ - Etag
1525
+ Access-Control-Max-Age:
1526
+ - '1728000'
1527
+ Cf-Space-Id:
1528
+ - ip17s12q0ek4
1529
+ Content-Type:
1530
+ - application/vnd.contentful.management.v1+json
1531
+ Date:
1532
+ - Sun, 04 Jan 2015 19:11:14 GMT
1533
+ Etag:
1534
+ - '"d7fb761727969f9c52a402223e0bae78"'
1535
+ Server:
1536
+ - nginx
1537
+ X-Powered-By:
1538
+ - Express
1539
+ Content-Length:
1540
+ - '10394'
1541
+ Connection:
1542
+ - keep-alive
1543
+ body:
1544
+ encoding: UTF-8
1545
+ string: |
1546
+ {
1547
+ "sys": {
1548
+ "type": "Array"
1549
+ },
1550
+ "total": 5,
1551
+ "skip": 0,
1552
+ "limit": 100,
1553
+ "items": [
1554
+ {
1555
+ "displayField": "first_name",
1556
+ "name": "User",
1557
+ "description": "",
1558
+ "fields": [
1559
+ {
1560
+ "id": "first_name",
1561
+ "name": "First_name",
1562
+ "type": "Text",
1563
+ "linkType": null,
1564
+ "items": null,
1565
+ "required": null,
1566
+ "localized": null,
1567
+ "validations": null
1568
+ },
1569
+ {
1570
+ "id": "last_name",
1571
+ "name": "Last_name",
1572
+ "type": "Text",
1573
+ "linkType": null,
1574
+ "items": null,
1575
+ "required": null,
1576
+ "localized": null,
1577
+ "validations": null
1578
+ },
1579
+ {
1580
+ "id": "birthday",
1581
+ "name": "Birthday",
1582
+ "type": "Date",
1583
+ "linkType": null,
1584
+ "items": null,
1585
+ "required": null,
1586
+ "localized": null,
1587
+ "validations": null
1588
+ },
1589
+ {
1590
+ "id": "job_adds",
1591
+ "name": "Job_adds",
1592
+ "type": "Array",
1593
+ "linkType": null,
1594
+ "items": {
1595
+ "id": null,
1596
+ "name": null,
1597
+ "type": "Link",
1598
+ "linkType": "Entry",
1599
+ "items": null,
1600
+ "required": null,
1601
+ "localized": null,
1602
+ "validations": null
1603
+ },
1604
+ "required": null,
1605
+ "localized": null,
1606
+ "validations": null
1607
+ },
1608
+ {
1609
+ "id": "profile",
1610
+ "name": "Profile",
1611
+ "type": "Link",
1612
+ "linkType": "Entry",
1613
+ "items": null,
1614
+ "required": null,
1615
+ "localized": null,
1616
+ "validations": null
1617
+ }
1618
+ ],
1619
+ "sys": {
1620
+ "id": "1TVvxCqoRq0qUYAOQuOqys",
1621
+ "type": "ContentType",
1622
+ "createdAt": "2014-12-19T14:14:50.986Z",
1623
+ "createdBy": {
1624
+ "sys": {
1625
+ "type": "Link",
1626
+ "linkType": "User",
1627
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1628
+ }
1629
+ },
1630
+ "space": {
1631
+ "sys": {
1632
+ "type": "Link",
1633
+ "linkType": "Space",
1634
+ "id": "ip17s12q0ek4"
1635
+ }
1636
+ },
1637
+ "firstPublishedAt": "2014-12-19T14:14:52.885Z",
1638
+ "publishedCounter": 1,
1639
+ "publishedAt": "2014-12-19T14:14:52.885Z",
1640
+ "publishedBy": {
1641
+ "sys": {
1642
+ "type": "Link",
1643
+ "linkType": "User",
1644
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1645
+ }
1646
+ },
1647
+ "publishedVersion": 2,
1648
+ "version": 3,
1649
+ "updatedAt": "2014-12-19T14:14:52.907Z",
1650
+ "updatedBy": {
1651
+ "sys": {
1652
+ "type": "Link",
1653
+ "linkType": "User",
1654
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1655
+ }
1656
+ }
1657
+ }
1658
+ },
1659
+ {
1660
+ "displayField": "subject",
1661
+ "name": "Comment",
1662
+ "description": "",
1663
+ "fields": [
1664
+ {
1665
+ "id": "subject",
1666
+ "name": "Subject",
1667
+ "type": "Text",
1668
+ "linkType": null,
1669
+ "items": null,
1670
+ "required": null,
1671
+ "localized": null,
1672
+ "validations": null
1673
+ },
1674
+ {
1675
+ "id": "content",
1676
+ "name": "Content",
1677
+ "type": "Text",
1678
+ "linkType": null,
1679
+ "items": null,
1680
+ "required": null,
1681
+ "localized": null,
1682
+ "validations": null
1683
+ }
1684
+ ],
1685
+ "sys": {
1686
+ "id": "6H6pGAV1PUsuoAW26Iu48W",
1687
+ "type": "ContentType",
1688
+ "createdAt": "2014-12-19T14:14:37.371Z",
1689
+ "createdBy": {
1690
+ "sys": {
1691
+ "type": "Link",
1692
+ "linkType": "User",
1693
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1694
+ }
1695
+ },
1696
+ "space": {
1697
+ "sys": {
1698
+ "type": "Link",
1699
+ "linkType": "Space",
1700
+ "id": "ip17s12q0ek4"
1701
+ }
1702
+ },
1703
+ "firstPublishedAt": "2014-12-19T14:14:39.787Z",
1704
+ "publishedCounter": 1,
1705
+ "publishedAt": "2014-12-19T14:14:39.787Z",
1706
+ "publishedBy": {
1707
+ "sys": {
1708
+ "type": "Link",
1709
+ "linkType": "User",
1710
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1711
+ }
1712
+ },
1713
+ "publishedVersion": 2,
1714
+ "version": 3,
1715
+ "updatedAt": "2014-12-19T14:14:39.836Z",
1716
+ "updatedBy": {
1717
+ "sys": {
1718
+ "type": "Link",
1719
+ "linkType": "User",
1720
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1721
+ }
1722
+ }
1723
+ }
1724
+ },
1725
+ {
1726
+ "displayField": "title",
1727
+ "name": "Jobs",
1728
+ "description": "",
1729
+ "fields": [
1730
+ {
1731
+ "id": "title",
1732
+ "name": "Title",
1733
+ "type": "Text",
1734
+ "linkType": null,
1735
+ "items": null,
1736
+ "required": null,
1737
+ "localized": null,
1738
+ "validations": null
1739
+ },
1740
+ {
1741
+ "id": "description",
1742
+ "name": "Description",
1743
+ "type": "Text",
1744
+ "linkType": null,
1745
+ "items": null,
1746
+ "required": null,
1747
+ "localized": null,
1748
+ "validations": null
1749
+ },
1750
+ {
1751
+ "id": "image",
1752
+ "name": "Image",
1753
+ "type": "Link",
1754
+ "linkType": "Asset",
1755
+ "items": null,
1756
+ "required": null,
1757
+ "localized": null,
1758
+ "validations": null
1759
+ },
1760
+ {
1761
+ "id": "creator",
1762
+ "name": "Creator",
1763
+ "type": "Link",
1764
+ "linkType": "Entry",
1765
+ "items": null,
1766
+ "required": null,
1767
+ "localized": null,
1768
+ "validations": null
1769
+ },
1770
+ {
1771
+ "id": "comments",
1772
+ "name": "Comments",
1773
+ "type": "Array",
1774
+ "linkType": null,
1775
+ "items": {
1776
+ "id": null,
1777
+ "name": null,
1778
+ "type": "Link",
1779
+ "linkType": "Entry",
1780
+ "items": null,
1781
+ "required": null,
1782
+ "localized": null,
1783
+ "validations": null
1784
+ },
1785
+ "required": null,
1786
+ "localized": null,
1787
+ "validations": null
1788
+ },
1789
+ {
1790
+ "id": "skills",
1791
+ "name": "Skills",
1792
+ "type": "Array",
1793
+ "linkType": null,
1794
+ "items": {
1795
+ "id": null,
1796
+ "name": null,
1797
+ "type": "Link",
1798
+ "linkType": "Entry",
1799
+ "items": null,
1800
+ "required": null,
1801
+ "localized": null,
1802
+ "validations": null
1803
+ },
1804
+ "required": null,
1805
+ "localized": null,
1806
+ "validations": null
1807
+ }
1808
+ ],
1809
+ "sys": {
1810
+ "id": "4L1bg4WQ5aWQMiE82ouag",
1811
+ "type": "ContentType",
1812
+ "createdAt": "2014-12-19T14:14:44.827Z",
1813
+ "createdBy": {
1814
+ "sys": {
1815
+ "type": "Link",
1816
+ "linkType": "User",
1817
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1818
+ }
1819
+ },
1820
+ "space": {
1821
+ "sys": {
1822
+ "type": "Link",
1823
+ "linkType": "Space",
1824
+ "id": "ip17s12q0ek4"
1825
+ }
1826
+ },
1827
+ "firstPublishedAt": "2014-12-19T14:14:46.443Z",
1828
+ "publishedCounter": 1,
1829
+ "publishedAt": "2014-12-19T14:14:46.443Z",
1830
+ "publishedBy": {
1831
+ "sys": {
1832
+ "type": "Link",
1833
+ "linkType": "User",
1834
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1835
+ }
1836
+ },
1837
+ "publishedVersion": 2,
1838
+ "version": 3,
1839
+ "updatedAt": "2014-12-19T14:14:46.501Z",
1840
+ "updatedBy": {
1841
+ "sys": {
1842
+ "type": "Link",
1843
+ "linkType": "User",
1844
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1845
+ }
1846
+ }
1847
+ }
1848
+ },
1849
+ {
1850
+ "name": "Profile",
1851
+ "description": null,
1852
+ "fields": [
1853
+ {
1854
+ "id": "nickname",
1855
+ "name": "Nickname",
1856
+ "type": "Text",
1857
+ "linkType": null,
1858
+ "required": null,
1859
+ "items": null
1860
+ },
1861
+ {
1862
+ "id": "user",
1863
+ "name": "User",
1864
+ "type": "Link",
1865
+ "linkType": "Entry",
1866
+ "required": null,
1867
+ "items": null
1868
+ }
1869
+ ],
1870
+ "sys": {
1871
+ "id": "4WFZh4MwC4Mc0EQWAeOY8A",
1872
+ "type": "ContentType",
1873
+ "createdAt": "2014-12-19T14:14:48.198Z",
1874
+ "createdBy": {
1875
+ "sys": {
1876
+ "type": "Link",
1877
+ "linkType": "User",
1878
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1879
+ }
1880
+ },
1881
+ "space": {
1882
+ "sys": {
1883
+ "type": "Link",
1884
+ "linkType": "Space",
1885
+ "id": "ip17s12q0ek4"
1886
+ }
1887
+ },
1888
+ "firstPublishedAt": "2014-12-19T14:14:49.037Z",
1889
+ "publishedCounter": 1,
1890
+ "publishedAt": "2014-12-19T14:14:49.037Z",
1891
+ "publishedBy": {
1892
+ "sys": {
1893
+ "type": "Link",
1894
+ "linkType": "User",
1895
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1896
+ }
1897
+ },
1898
+ "publishedVersion": 1,
1899
+ "version": 2,
1900
+ "updatedAt": "2014-12-19T14:14:49.084Z",
1901
+ "updatedBy": {
1902
+ "sys": {
1903
+ "type": "Link",
1904
+ "linkType": "User",
1905
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1906
+ }
1907
+ }
1908
+ }
1909
+ },
1910
+ {
1911
+ "displayField": "name",
1912
+ "name": "Job Skills",
1913
+ "description": "",
1914
+ "fields": [
1915
+ {
1916
+ "id": "name",
1917
+ "name": "Name",
1918
+ "type": "Text",
1919
+ "linkType": null,
1920
+ "items": null,
1921
+ "required": null,
1922
+ "localized": null,
1923
+ "validations": null
1924
+ }
1925
+ ],
1926
+ "sys": {
1927
+ "id": "2soCP557HGKoOOK0SqmMOm",
1928
+ "type": "ContentType",
1929
+ "createdAt": "2014-12-19T14:14:41.454Z",
1930
+ "createdBy": {
1931
+ "sys": {
1932
+ "type": "Link",
1933
+ "linkType": "User",
1934
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1935
+ }
1936
+ },
1937
+ "space": {
1938
+ "sys": {
1939
+ "type": "Link",
1940
+ "linkType": "Space",
1941
+ "id": "ip17s12q0ek4"
1942
+ }
1943
+ },
1944
+ "firstPublishedAt": "2014-12-19T14:14:43.043Z",
1945
+ "publishedCounter": 1,
1946
+ "publishedAt": "2014-12-19T14:14:43.043Z",
1947
+ "publishedBy": {
1948
+ "sys": {
1949
+ "type": "Link",
1950
+ "linkType": "User",
1951
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1952
+ }
1953
+ },
1954
+ "publishedVersion": 2,
1955
+ "version": 3,
1956
+ "updatedAt": "2014-12-19T14:14:43.085Z",
1957
+ "updatedBy": {
1958
+ "sys": {
1959
+ "type": "Link",
1960
+ "linkType": "User",
1961
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1962
+ }
1963
+ }
1964
+ }
1965
+ }
1966
+ ]
1967
+ }
1968
+ http_version:
1969
+ recorded_at: Sun, 04 Jan 2015 19:11:14 GMT
1970
+ - request:
1971
+ method: put
1972
+ uri: https://api.contentful.com/spaces/ip17s12q0ek4/assets/image_3
1973
+ body:
1974
+ encoding: UTF-8
1975
+ string: '{"fields":{"title":{"en-US":"Ruby on rails"},"description":{"en-US":""},"file":{"en-US":{"contentType":"image/jpeg","fileName":"Ruby
1976
+ on rails","upload":"http://dhwlijwe9jil7.cloudfront.net/files/2012/07/4/companies-using-ruby-on-rails.jpg"}}}}'
1977
+ headers:
1978
+ User-Agent:
1979
+ - RubyContentfulManagementGem/0.5.0
1980
+ Authorization:
1981
+ - Bearer <ACCESS_TOKEN>
1982
+ Content-Type:
1983
+ - application/vnd.contentful.management.v1+json
1984
+ Host:
1985
+ - api.contentful.com
1986
+ response:
1987
+ status:
1988
+ code: 201
1989
+ message: Created
1990
+ headers:
1991
+ Access-Control-Allow-Headers:
1992
+ - 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,X-Contentful-Skip-Transformation
1993
+ Access-Control-Allow-Methods:
1994
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
1995
+ Access-Control-Allow-Origin:
1996
+ - "*"
1997
+ Access-Control-Expose-Headers:
1998
+ - Etag
1999
+ Access-Control-Max-Age:
2000
+ - '1728000'
2001
+ Cf-Space-Id:
2002
+ - ip17s12q0ek4
2003
+ Content-Type:
2004
+ - application/vnd.contentful.management.v1+json
2005
+ Date:
2006
+ - Sun, 04 Jan 2015 19:11:15 GMT
2007
+ Etag:
2008
+ - '"b8559c53a6a3a31d3393037fd054a296"'
2009
+ Server:
2010
+ - nginx
2011
+ X-Powered-By:
2012
+ - Express
2013
+ Content-Length:
2014
+ - '918'
2015
+ Connection:
2016
+ - keep-alive
2017
+ body:
2018
+ encoding: UTF-8
2019
+ string: |
2020
+ {
2021
+ "fields": {
2022
+ "title": {
2023
+ "en-US": "Ruby on rails"
2024
+ },
2025
+ "description": {
2026
+ "en-US": ""
2027
+ },
2028
+ "file": {
2029
+ "en-US": {
2030
+ "contentType": "image/jpeg",
2031
+ "fileName": "Ruby on rails",
2032
+ "upload": "http://dhwlijwe9jil7.cloudfront.net/files/2012/07/4/companies-using-ruby-on-rails.jpg"
2033
+ }
2034
+ }
2035
+ },
2036
+ "sys": {
2037
+ "id": "image_3",
2038
+ "type": "Asset",
2039
+ "version": 1,
2040
+ "createdAt": "2015-01-04T19:11:15.391Z",
2041
+ "createdBy": {
2042
+ "sys": {
2043
+ "type": "Link",
2044
+ "linkType": "User",
2045
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
2046
+ }
2047
+ },
2048
+ "space": {
2049
+ "sys": {
2050
+ "type": "Link",
2051
+ "linkType": "Space",
2052
+ "id": "ip17s12q0ek4"
2053
+ }
2054
+ },
2055
+ "updatedAt": "2015-01-04T19:11:15.391Z",
2056
+ "updatedBy": {
2057
+ "sys": {
2058
+ "type": "Link",
2059
+ "linkType": "User",
2060
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
2061
+ }
2062
+ }
2063
+ }
2064
+ }
2065
+ http_version:
2066
+ recorded_at: Sun, 04 Jan 2015 19:11:15 GMT
2067
+ - request:
2068
+ method: put
2069
+ uri: https://api.contentful.com/spaces/ip17s12q0ek4/assets/image_3/files/en-US/process
2070
+ body:
2071
+ encoding: US-ASCII
2072
+ string: ''
2073
+ headers:
2074
+ User-Agent:
2075
+ - RubyContentfulManagementGem/0.5.0
2076
+ Authorization:
2077
+ - Bearer <ACCESS_TOKEN>
2078
+ Content-Type:
2079
+ - application/vnd.contentful.management.v1+json
2080
+ X-Contentful-Version:
2081
+ - '1'
2082
+ Content-Length:
2083
+ - '0'
2084
+ Host:
2085
+ - api.contentful.com
2086
+ response:
2087
+ status:
2088
+ code: 204
2089
+ message: No Content
2090
+ headers:
2091
+ Access-Control-Allow-Headers:
2092
+ - 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,X-Contentful-Skip-Transformation
2093
+ Access-Control-Allow-Methods:
2094
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
2095
+ Access-Control-Allow-Origin:
2096
+ - "*"
2097
+ Access-Control-Expose-Headers:
2098
+ - Etag
2099
+ Access-Control-Max-Age:
2100
+ - '1728000'
2101
+ Cf-Space-Id:
2102
+ - ip17s12q0ek4
2103
+ Content-Type:
2104
+ - application/vnd.contentful.management.v1+json
2105
+ Date:
2106
+ - Sun, 04 Jan 2015 19:11:16 GMT
2107
+ Server:
2108
+ - nginx
2109
+ X-Powered-By:
2110
+ - Express
2111
+ Connection:
2112
+ - keep-alive
2113
+ body:
2114
+ encoding: UTF-8
2115
+ string: ''
2116
+ http_version:
2117
+ recorded_at: Sun, 04 Jan 2015 19:11:16 GMT
2118
+ - request:
2119
+ method: get
2120
+ uri: https://api.contentful.com/spaces/ip17s12q0ek4
2121
+ body:
2122
+ encoding: US-ASCII
2123
+ string: ''
2124
+ headers:
2125
+ User-Agent:
2126
+ - RubyContentfulManagementGem/0.5.0
2127
+ Authorization:
2128
+ - Bearer <ACCESS_TOKEN>
2129
+ Content-Type:
2130
+ - application/vnd.contentful.management.v1+json
2131
+ Content-Length:
2132
+ - '0'
2133
+ Host:
2134
+ - api.contentful.com
2135
+ response:
2136
+ status:
2137
+ code: 200
2138
+ message: OK
2139
+ headers:
2140
+ Accept-Ranges:
2141
+ - bytes
2142
+ Access-Control-Allow-Headers:
2143
+ - 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,X-Contentful-Skip-Transformation
2144
+ Access-Control-Allow-Methods:
2145
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
2146
+ Access-Control-Allow-Origin:
2147
+ - "*"
2148
+ Access-Control-Expose-Headers:
2149
+ - Etag
2150
+ Access-Control-Max-Age:
2151
+ - '1728000'
2152
+ Cache-Control:
2153
+ - max-age=0
2154
+ Content-Type:
2155
+ - application/vnd.contentful.management.v1+json
2156
+ Date:
2157
+ - Sun, 04 Jan 2015 19:11:17 GMT
2158
+ Etag:
2159
+ - '"65cf3d93e9e6c0cb1669afc8e289f4b4"'
2160
+ Server:
2161
+ - nginx
2162
+ Status:
2163
+ - 200 OK
2164
+ X-Contentful-Request-Id:
2165
+ - 85f-1346180586
2166
+ Content-Length:
2167
+ - '465'
2168
+ Connection:
2169
+ - keep-alive
2170
+ body:
2171
+ encoding: UTF-8
2172
+ string: |+
2173
+ {
2174
+ "sys":{
2175
+ "type":"Space",
2176
+ "id":"ip17s12q0ek4",
2177
+ "version":1,
2178
+ "createdBy":{
2179
+ "sys":{
2180
+ "type":"Link",
2181
+ "linkType":"User",
2182
+ "id":"1E7acJL8I5XUXAMHQt9Grs"
2183
+ }
2184
+ },
2185
+ "createdAt":"2014-12-16T12:41:15Z",
2186
+ "updatedBy":{
2187
+ "sys":{
2188
+ "type":"Link",
2189
+ "linkType":"User",
2190
+ "id":"1E7acJL8I5XUXAMHQt9Grs"
2191
+ }
2192
+ },
2193
+ "updatedAt":"2014-12-16T12:41:16Z"
2194
+ },
2195
+ "name":"Importer Example Space"
2196
+ }
2197
+
2198
+ http_version:
2199
+ recorded_at: Sun, 04 Jan 2015 19:11:17 GMT
2200
+ - request:
2201
+ method: get
2202
+ uri: https://api.contentful.com/spaces/ip17s12q0ek4/content_types
2203
+ body:
2204
+ encoding: US-ASCII
2205
+ string: ''
2206
+ headers:
2207
+ User-Agent:
2208
+ - RubyContentfulManagementGem/0.5.0
2209
+ Authorization:
2210
+ - Bearer <ACCESS_TOKEN>
2211
+ Content-Type:
2212
+ - application/vnd.contentful.management.v1+json
2213
+ Content-Length:
2214
+ - '0'
2215
+ Host:
2216
+ - api.contentful.com
2217
+ response:
2218
+ status:
2219
+ code: 200
2220
+ message: OK
2221
+ headers:
2222
+ Access-Control-Allow-Headers:
2223
+ - 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,X-Contentful-Skip-Transformation
2224
+ Access-Control-Allow-Methods:
2225
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
2226
+ Access-Control-Allow-Origin:
2227
+ - "*"
2228
+ Access-Control-Expose-Headers:
2229
+ - Etag
2230
+ Access-Control-Max-Age:
2231
+ - '1728000'
2232
+ Cf-Space-Id:
2233
+ - ip17s12q0ek4
2234
+ Content-Type:
2235
+ - application/vnd.contentful.management.v1+json
2236
+ Date:
2237
+ - Sun, 04 Jan 2015 19:11:17 GMT
2238
+ Etag:
2239
+ - '"d7fb761727969f9c52a402223e0bae78"'
2240
+ Server:
2241
+ - nginx
2242
+ X-Powered-By:
2243
+ - Express
2244
+ Content-Length:
2245
+ - '10394'
2246
+ Connection:
2247
+ - keep-alive
2248
+ body:
2249
+ encoding: UTF-8
2250
+ string: |
2251
+ {
2252
+ "sys": {
2253
+ "type": "Array"
2254
+ },
2255
+ "total": 5,
2256
+ "skip": 0,
2257
+ "limit": 100,
2258
+ "items": [
2259
+ {
2260
+ "displayField": "first_name",
2261
+ "name": "User",
2262
+ "description": "",
2263
+ "fields": [
2264
+ {
2265
+ "id": "first_name",
2266
+ "name": "First_name",
2267
+ "type": "Text",
2268
+ "linkType": null,
2269
+ "items": null,
2270
+ "required": null,
2271
+ "localized": null,
2272
+ "validations": null
2273
+ },
2274
+ {
2275
+ "id": "last_name",
2276
+ "name": "Last_name",
2277
+ "type": "Text",
2278
+ "linkType": null,
2279
+ "items": null,
2280
+ "required": null,
2281
+ "localized": null,
2282
+ "validations": null
2283
+ },
2284
+ {
2285
+ "id": "birthday",
2286
+ "name": "Birthday",
2287
+ "type": "Date",
2288
+ "linkType": null,
2289
+ "items": null,
2290
+ "required": null,
2291
+ "localized": null,
2292
+ "validations": null
2293
+ },
2294
+ {
2295
+ "id": "job_adds",
2296
+ "name": "Job_adds",
2297
+ "type": "Array",
2298
+ "linkType": null,
2299
+ "items": {
2300
+ "id": null,
2301
+ "name": null,
2302
+ "type": "Link",
2303
+ "linkType": "Entry",
2304
+ "items": null,
2305
+ "required": null,
2306
+ "localized": null,
2307
+ "validations": null
2308
+ },
2309
+ "required": null,
2310
+ "localized": null,
2311
+ "validations": null
2312
+ },
2313
+ {
2314
+ "id": "profile",
2315
+ "name": "Profile",
2316
+ "type": "Link",
2317
+ "linkType": "Entry",
2318
+ "items": null,
2319
+ "required": null,
2320
+ "localized": null,
2321
+ "validations": null
2322
+ }
2323
+ ],
2324
+ "sys": {
2325
+ "id": "1TVvxCqoRq0qUYAOQuOqys",
2326
+ "type": "ContentType",
2327
+ "createdAt": "2014-12-19T14:14:50.986Z",
2328
+ "createdBy": {
2329
+ "sys": {
2330
+ "type": "Link",
2331
+ "linkType": "User",
2332
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
2333
+ }
2334
+ },
2335
+ "space": {
2336
+ "sys": {
2337
+ "type": "Link",
2338
+ "linkType": "Space",
2339
+ "id": "ip17s12q0ek4"
2340
+ }
2341
+ },
2342
+ "firstPublishedAt": "2014-12-19T14:14:52.885Z",
2343
+ "publishedCounter": 1,
2344
+ "publishedAt": "2014-12-19T14:14:52.885Z",
2345
+ "publishedBy": {
2346
+ "sys": {
2347
+ "type": "Link",
2348
+ "linkType": "User",
2349
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
2350
+ }
2351
+ },
2352
+ "publishedVersion": 2,
2353
+ "version": 3,
2354
+ "updatedAt": "2014-12-19T14:14:52.907Z",
2355
+ "updatedBy": {
2356
+ "sys": {
2357
+ "type": "Link",
2358
+ "linkType": "User",
2359
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
2360
+ }
2361
+ }
2362
+ }
2363
+ },
2364
+ {
2365
+ "displayField": "subject",
2366
+ "name": "Comment",
2367
+ "description": "",
2368
+ "fields": [
2369
+ {
2370
+ "id": "subject",
2371
+ "name": "Subject",
2372
+ "type": "Text",
2373
+ "linkType": null,
2374
+ "items": null,
2375
+ "required": null,
2376
+ "localized": null,
2377
+ "validations": null
2378
+ },
2379
+ {
2380
+ "id": "content",
2381
+ "name": "Content",
2382
+ "type": "Text",
2383
+ "linkType": null,
2384
+ "items": null,
2385
+ "required": null,
2386
+ "localized": null,
2387
+ "validations": null
2388
+ }
2389
+ ],
2390
+ "sys": {
2391
+ "id": "6H6pGAV1PUsuoAW26Iu48W",
2392
+ "type": "ContentType",
2393
+ "createdAt": "2014-12-19T14:14:37.371Z",
2394
+ "createdBy": {
2395
+ "sys": {
2396
+ "type": "Link",
2397
+ "linkType": "User",
2398
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
2399
+ }
2400
+ },
2401
+ "space": {
2402
+ "sys": {
2403
+ "type": "Link",
2404
+ "linkType": "Space",
2405
+ "id": "ip17s12q0ek4"
2406
+ }
2407
+ },
2408
+ "firstPublishedAt": "2014-12-19T14:14:39.787Z",
2409
+ "publishedCounter": 1,
2410
+ "publishedAt": "2014-12-19T14:14:39.787Z",
2411
+ "publishedBy": {
2412
+ "sys": {
2413
+ "type": "Link",
2414
+ "linkType": "User",
2415
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
2416
+ }
2417
+ },
2418
+ "publishedVersion": 2,
2419
+ "version": 3,
2420
+ "updatedAt": "2014-12-19T14:14:39.836Z",
2421
+ "updatedBy": {
2422
+ "sys": {
2423
+ "type": "Link",
2424
+ "linkType": "User",
2425
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
2426
+ }
2427
+ }
2428
+ }
2429
+ },
2430
+ {
2431
+ "displayField": "title",
2432
+ "name": "Jobs",
2433
+ "description": "",
2434
+ "fields": [
2435
+ {
2436
+ "id": "title",
2437
+ "name": "Title",
2438
+ "type": "Text",
2439
+ "linkType": null,
2440
+ "items": null,
2441
+ "required": null,
2442
+ "localized": null,
2443
+ "validations": null
2444
+ },
2445
+ {
2446
+ "id": "description",
2447
+ "name": "Description",
2448
+ "type": "Text",
2449
+ "linkType": null,
2450
+ "items": null,
2451
+ "required": null,
2452
+ "localized": null,
2453
+ "validations": null
2454
+ },
2455
+ {
2456
+ "id": "image",
2457
+ "name": "Image",
2458
+ "type": "Link",
2459
+ "linkType": "Asset",
2460
+ "items": null,
2461
+ "required": null,
2462
+ "localized": null,
2463
+ "validations": null
2464
+ },
2465
+ {
2466
+ "id": "creator",
2467
+ "name": "Creator",
2468
+ "type": "Link",
2469
+ "linkType": "Entry",
2470
+ "items": null,
2471
+ "required": null,
2472
+ "localized": null,
2473
+ "validations": null
2474
+ },
2475
+ {
2476
+ "id": "comments",
2477
+ "name": "Comments",
2478
+ "type": "Array",
2479
+ "linkType": null,
2480
+ "items": {
2481
+ "id": null,
2482
+ "name": null,
2483
+ "type": "Link",
2484
+ "linkType": "Entry",
2485
+ "items": null,
2486
+ "required": null,
2487
+ "localized": null,
2488
+ "validations": null
2489
+ },
2490
+ "required": null,
2491
+ "localized": null,
2492
+ "validations": null
2493
+ },
2494
+ {
2495
+ "id": "skills",
2496
+ "name": "Skills",
2497
+ "type": "Array",
2498
+ "linkType": null,
2499
+ "items": {
2500
+ "id": null,
2501
+ "name": null,
2502
+ "type": "Link",
2503
+ "linkType": "Entry",
2504
+ "items": null,
2505
+ "required": null,
2506
+ "localized": null,
2507
+ "validations": null
2508
+ },
2509
+ "required": null,
2510
+ "localized": null,
2511
+ "validations": null
2512
+ }
2513
+ ],
2514
+ "sys": {
2515
+ "id": "4L1bg4WQ5aWQMiE82ouag",
2516
+ "type": "ContentType",
2517
+ "createdAt": "2014-12-19T14:14:44.827Z",
2518
+ "createdBy": {
2519
+ "sys": {
2520
+ "type": "Link",
2521
+ "linkType": "User",
2522
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
2523
+ }
2524
+ },
2525
+ "space": {
2526
+ "sys": {
2527
+ "type": "Link",
2528
+ "linkType": "Space",
2529
+ "id": "ip17s12q0ek4"
2530
+ }
2531
+ },
2532
+ "firstPublishedAt": "2014-12-19T14:14:46.443Z",
2533
+ "publishedCounter": 1,
2534
+ "publishedAt": "2014-12-19T14:14:46.443Z",
2535
+ "publishedBy": {
2536
+ "sys": {
2537
+ "type": "Link",
2538
+ "linkType": "User",
2539
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
2540
+ }
2541
+ },
2542
+ "publishedVersion": 2,
2543
+ "version": 3,
2544
+ "updatedAt": "2014-12-19T14:14:46.501Z",
2545
+ "updatedBy": {
2546
+ "sys": {
2547
+ "type": "Link",
2548
+ "linkType": "User",
2549
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
2550
+ }
2551
+ }
2552
+ }
2553
+ },
2554
+ {
2555
+ "name": "Profile",
2556
+ "description": null,
2557
+ "fields": [
2558
+ {
2559
+ "id": "nickname",
2560
+ "name": "Nickname",
2561
+ "type": "Text",
2562
+ "linkType": null,
2563
+ "required": null,
2564
+ "items": null
2565
+ },
2566
+ {
2567
+ "id": "user",
2568
+ "name": "User",
2569
+ "type": "Link",
2570
+ "linkType": "Entry",
2571
+ "required": null,
2572
+ "items": null
2573
+ }
2574
+ ],
2575
+ "sys": {
2576
+ "id": "4WFZh4MwC4Mc0EQWAeOY8A",
2577
+ "type": "ContentType",
2578
+ "createdAt": "2014-12-19T14:14:48.198Z",
2579
+ "createdBy": {
2580
+ "sys": {
2581
+ "type": "Link",
2582
+ "linkType": "User",
2583
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
2584
+ }
2585
+ },
2586
+ "space": {
2587
+ "sys": {
2588
+ "type": "Link",
2589
+ "linkType": "Space",
2590
+ "id": "ip17s12q0ek4"
2591
+ }
2592
+ },
2593
+ "firstPublishedAt": "2014-12-19T14:14:49.037Z",
2594
+ "publishedCounter": 1,
2595
+ "publishedAt": "2014-12-19T14:14:49.037Z",
2596
+ "publishedBy": {
2597
+ "sys": {
2598
+ "type": "Link",
2599
+ "linkType": "User",
2600
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
2601
+ }
2602
+ },
2603
+ "publishedVersion": 1,
2604
+ "version": 2,
2605
+ "updatedAt": "2014-12-19T14:14:49.084Z",
2606
+ "updatedBy": {
2607
+ "sys": {
2608
+ "type": "Link",
2609
+ "linkType": "User",
2610
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
2611
+ }
2612
+ }
2613
+ }
2614
+ },
2615
+ {
2616
+ "displayField": "name",
2617
+ "name": "Job Skills",
2618
+ "description": "",
2619
+ "fields": [
2620
+ {
2621
+ "id": "name",
2622
+ "name": "Name",
2623
+ "type": "Text",
2624
+ "linkType": null,
2625
+ "items": null,
2626
+ "required": null,
2627
+ "localized": null,
2628
+ "validations": null
2629
+ }
2630
+ ],
2631
+ "sys": {
2632
+ "id": "2soCP557HGKoOOK0SqmMOm",
2633
+ "type": "ContentType",
2634
+ "createdAt": "2014-12-19T14:14:41.454Z",
2635
+ "createdBy": {
2636
+ "sys": {
2637
+ "type": "Link",
2638
+ "linkType": "User",
2639
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
2640
+ }
2641
+ },
2642
+ "space": {
2643
+ "sys": {
2644
+ "type": "Link",
2645
+ "linkType": "Space",
2646
+ "id": "ip17s12q0ek4"
2647
+ }
2648
+ },
2649
+ "firstPublishedAt": "2014-12-19T14:14:43.043Z",
2650
+ "publishedCounter": 1,
2651
+ "publishedAt": "2014-12-19T14:14:43.043Z",
2652
+ "publishedBy": {
2653
+ "sys": {
2654
+ "type": "Link",
2655
+ "linkType": "User",
2656
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
2657
+ }
2658
+ },
2659
+ "publishedVersion": 2,
2660
+ "version": 3,
2661
+ "updatedAt": "2014-12-19T14:14:43.085Z",
2662
+ "updatedBy": {
2663
+ "sys": {
2664
+ "type": "Link",
2665
+ "linkType": "User",
2666
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
2667
+ }
2668
+ }
2669
+ }
2670
+ }
2671
+ ]
2672
+ }
2673
+ http_version:
2674
+ recorded_at: Sun, 04 Jan 2015 19:11:17 GMT
2675
+ - request:
2676
+ method: put
2677
+ uri: https://api.contentful.com/spaces/ip17s12q0ek4/assets/image_4
2678
+ body:
2679
+ encoding: UTF-8
2680
+ string: '{"fields":{"title":{"en-US":"Ruby"},"description":{"en-US":""},"file":{"en-US":{"contentType":"image/png","fileName":"Ruby","upload":"http://factormedia.com/wp-content/uploads/2012/04/ruby-on-rails_internship.png"}}}}'
2681
+ headers:
2682
+ User-Agent:
2683
+ - RubyContentfulManagementGem/0.5.0
2684
+ Authorization:
2685
+ - Bearer <ACCESS_TOKEN>
2686
+ Content-Type:
2687
+ - application/vnd.contentful.management.v1+json
2688
+ Host:
2689
+ - api.contentful.com
2690
+ response:
2691
+ status:
2692
+ code: 201
2693
+ message: Created
2694
+ headers:
2695
+ Access-Control-Allow-Headers:
2696
+ - 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,X-Contentful-Skip-Transformation
2697
+ Access-Control-Allow-Methods:
2698
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
2699
+ Access-Control-Allow-Origin:
2700
+ - "*"
2701
+ Access-Control-Expose-Headers:
2702
+ - Etag
2703
+ Access-Control-Max-Age:
2704
+ - '1728000'
2705
+ Cf-Space-Id:
2706
+ - ip17s12q0ek4
2707
+ Content-Type:
2708
+ - application/vnd.contentful.management.v1+json
2709
+ Date:
2710
+ - Sun, 04 Jan 2015 19:11:18 GMT
2711
+ Etag:
2712
+ - '"a31053d443dcd40a06ac16627796503a"'
2713
+ Server:
2714
+ - nginx
2715
+ X-Powered-By:
2716
+ - Express
2717
+ Content-Length:
2718
+ - '892'
2719
+ Connection:
2720
+ - keep-alive
2721
+ body:
2722
+ encoding: UTF-8
2723
+ string: |
2724
+ {
2725
+ "fields": {
2726
+ "title": {
2727
+ "en-US": "Ruby"
2728
+ },
2729
+ "description": {
2730
+ "en-US": ""
2731
+ },
2732
+ "file": {
2733
+ "en-US": {
2734
+ "contentType": "image/png",
2735
+ "fileName": "Ruby",
2736
+ "upload": "http://factormedia.com/wp-content/uploads/2012/04/ruby-on-rails_internship.png"
2737
+ }
2738
+ }
2739
+ },
2740
+ "sys": {
2741
+ "id": "image_4",
2742
+ "type": "Asset",
2743
+ "version": 1,
2744
+ "createdAt": "2015-01-04T19:11:18.399Z",
2745
+ "createdBy": {
2746
+ "sys": {
2747
+ "type": "Link",
2748
+ "linkType": "User",
2749
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
2750
+ }
2751
+ },
2752
+ "space": {
2753
+ "sys": {
2754
+ "type": "Link",
2755
+ "linkType": "Space",
2756
+ "id": "ip17s12q0ek4"
2757
+ }
2758
+ },
2759
+ "updatedAt": "2015-01-04T19:11:18.399Z",
2760
+ "updatedBy": {
2761
+ "sys": {
2762
+ "type": "Link",
2763
+ "linkType": "User",
2764
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
2765
+ }
2766
+ }
2767
+ }
2768
+ }
2769
+ http_version:
2770
+ recorded_at: Sun, 04 Jan 2015 19:11:18 GMT
2771
+ - request:
2772
+ method: put
2773
+ uri: https://api.contentful.com/spaces/ip17s12q0ek4/assets/image_4/files/en-US/process
2774
+ body:
2775
+ encoding: US-ASCII
2776
+ string: ''
2777
+ headers:
2778
+ User-Agent:
2779
+ - RubyContentfulManagementGem/0.5.0
2780
+ Authorization:
2781
+ - Bearer <ACCESS_TOKEN>
2782
+ Content-Type:
2783
+ - application/vnd.contentful.management.v1+json
2784
+ X-Contentful-Version:
2785
+ - '1'
2786
+ Content-Length:
2787
+ - '0'
2788
+ Host:
2789
+ - api.contentful.com
2790
+ response:
2791
+ status:
2792
+ code: 204
2793
+ message: No Content
2794
+ headers:
2795
+ Access-Control-Allow-Headers:
2796
+ - 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,X-Contentful-Skip-Transformation
2797
+ Access-Control-Allow-Methods:
2798
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
2799
+ Access-Control-Allow-Origin:
2800
+ - "*"
2801
+ Access-Control-Expose-Headers:
2802
+ - Etag
2803
+ Access-Control-Max-Age:
2804
+ - '1728000'
2805
+ Cf-Space-Id:
2806
+ - ip17s12q0ek4
2807
+ Content-Type:
2808
+ - application/vnd.contentful.management.v1+json
2809
+ Date:
2810
+ - Sun, 04 Jan 2015 19:11:19 GMT
2811
+ Server:
2812
+ - nginx
2813
+ X-Powered-By:
2814
+ - Express
2815
+ Connection:
2816
+ - keep-alive
2817
+ body:
2818
+ encoding: UTF-8
2819
+ string: ''
2820
+ http_version:
2821
+ recorded_at: Sun, 04 Jan 2015 19:11:19 GMT
2822
+ recorded_with: VCR 2.9.3