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,1915 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.contentful.com/spaces/space_id
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
+ - Fri, 19 Dec 2014 14:14:35 GMT
43
+ Etag:
44
+ - '"65cf3d93e9e6c0cb1669afc8e289f4b4"'
45
+ Server:
46
+ - nginx
47
+ Status:
48
+ - 200 OK
49
+ X-Contentful-Request-Id:
50
+ - 71a-1110047024
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":"space_id",
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: Fri, 19 Dec 2014 14:14:34 GMT
85
+ - request:
86
+ method: get
87
+ uri: https://api.contentful.com/spaces/space_id/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
+ - space_id
119
+ Content-Type:
120
+ - application/vnd.contentful.management.v1+json
121
+ Date:
122
+ - Fri, 19 Dec 2014 14:14:36 GMT
123
+ Etag:
124
+ - '"29f2c21be26360c424f617d8592cf6f9"'
125
+ Server:
126
+ - nginx
127
+ X-Powered-By:
128
+ - Express
129
+ Content-Length:
130
+ - '97'
131
+ Connection:
132
+ - keep-alive
133
+ body:
134
+ encoding: UTF-8
135
+ string: |
136
+ {
137
+ "sys": {
138
+ "type": "Array"
139
+ },
140
+ "total": 0,
141
+ "skip": 0,
142
+ "limit": 100,
143
+ "items": []
144
+ }
145
+ http_version:
146
+ recorded_at: Fri, 19 Dec 2014 14:14:36 GMT
147
+ - request:
148
+ method: put
149
+ uri: https://api.contentful.com/spaces/space_id/content_types/6H6pGAV1PUsuoAW26Iu48W
150
+ body:
151
+ encoding: UTF-8
152
+ string: '{"name":"Comment","description":null,"fields":[{"id":"subject","name":"Subject","type":"Text","linkType":null,"required":null,"items":null},{"id":"content","name":"Content","type":"Text","linkType":null,"required":null,"items":null}]}'
153
+ headers:
154
+ User-Agent:
155
+ - RubyContentfulManagementGem/0.5.0
156
+ Authorization:
157
+ - Bearer <ACCESS_TOKEN>
158
+ Content-Type:
159
+ - application/vnd.contentful.management.v1+json
160
+ Host:
161
+ - api.contentful.com
162
+ response:
163
+ status:
164
+ code: 201
165
+ message: Created
166
+ headers:
167
+ Access-Control-Allow-Headers:
168
+ - 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
169
+ Access-Control-Allow-Methods:
170
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
171
+ Access-Control-Allow-Origin:
172
+ - "*"
173
+ Access-Control-Expose-Headers:
174
+ - Etag
175
+ Access-Control-Max-Age:
176
+ - '1728000'
177
+ Cf-Space-Id:
178
+ - space_id
179
+ Content-Type:
180
+ - application/vnd.contentful.management.v1+json
181
+ Date:
182
+ - Fri, 19 Dec 2014 14:14:37 GMT
183
+ Etag:
184
+ - '"5d0e6c06aee8af9d31250fd83f73a3df"'
185
+ Server:
186
+ - nginx
187
+ X-Powered-By:
188
+ - Express
189
+ Content-Length:
190
+ - '960'
191
+ Connection:
192
+ - keep-alive
193
+ body:
194
+ encoding: UTF-8
195
+ string: |
196
+ {
197
+ "name": "Comment",
198
+ "description": null,
199
+ "fields": [
200
+ {
201
+ "id": "subject",
202
+ "name": "Subject",
203
+ "type": "Text",
204
+ "linkType": null,
205
+ "required": null,
206
+ "items": null
207
+ },
208
+ {
209
+ "id": "content",
210
+ "name": "Content",
211
+ "type": "Text",
212
+ "linkType": null,
213
+ "required": null,
214
+ "items": null
215
+ }
216
+ ],
217
+ "sys": {
218
+ "id": "6H6pGAV1PUsuoAW26Iu48W",
219
+ "type": "ContentType",
220
+ "version": 1,
221
+ "createdAt": "2014-12-19T14:14:37.371Z",
222
+ "createdBy": {
223
+ "sys": {
224
+ "type": "Link",
225
+ "linkType": "User",
226
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
227
+ }
228
+ },
229
+ "space": {
230
+ "sys": {
231
+ "type": "Link",
232
+ "linkType": "Space",
233
+ "id": "space_id"
234
+ }
235
+ },
236
+ "updatedAt": "2014-12-19T14:14:37.371Z",
237
+ "updatedBy": {
238
+ "sys": {
239
+ "type": "Link",
240
+ "linkType": "User",
241
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
242
+ }
243
+ }
244
+ }
245
+ }
246
+ http_version:
247
+ recorded_at: Fri, 19 Dec 2014 14:14:37 GMT
248
+ - request:
249
+ method: put
250
+ uri: https://api.contentful.com/spaces/space_id/content_types/6H6pGAV1PUsuoAW26Iu48W
251
+ body:
252
+ encoding: UTF-8
253
+ string: '{"displayField":"subject","name":"Comment","description":"","fields":[{"id":"subject","name":"Subject","type":"Text","linkType":null,"items":null,"required":null,"localized":null,"validations":null},{"id":"content","name":"Content","type":"Text","linkType":null,"items":null,"required":null,"localized":null,"validations":null}]}'
254
+ headers:
255
+ User-Agent:
256
+ - RubyContentfulManagementGem/0.5.0
257
+ Authorization:
258
+ - Bearer <ACCESS_TOKEN>
259
+ Content-Type:
260
+ - application/vnd.contentful.management.v1+json
261
+ X-Contentful-Version:
262
+ - '1'
263
+ Host:
264
+ - api.contentful.com
265
+ response:
266
+ status:
267
+ code: 200
268
+ message: OK
269
+ headers:
270
+ Access-Control-Allow-Headers:
271
+ - 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
272
+ Access-Control-Allow-Methods:
273
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
274
+ Access-Control-Allow-Origin:
275
+ - "*"
276
+ Access-Control-Expose-Headers:
277
+ - Etag
278
+ Access-Control-Max-Age:
279
+ - '1728000'
280
+ Cf-Space-Id:
281
+ - space_id
282
+ Content-Type:
283
+ - application/vnd.contentful.management.v1+json
284
+ Date:
285
+ - Fri, 19 Dec 2014 14:14:38 GMT
286
+ Etag:
287
+ - '"03294d7a94adefb607b8cf3e6e3fb126"'
288
+ Server:
289
+ - nginx
290
+ X-Powered-By:
291
+ - Express
292
+ Content-Length:
293
+ - '1091'
294
+ Connection:
295
+ - keep-alive
296
+ body:
297
+ encoding: UTF-8
298
+ string: |
299
+ {
300
+ "displayField": "subject",
301
+ "name": "Comment",
302
+ "description": "",
303
+ "fields": [
304
+ {
305
+ "id": "subject",
306
+ "name": "Subject",
307
+ "type": "Text",
308
+ "linkType": null,
309
+ "items": null,
310
+ "required": null,
311
+ "localized": null,
312
+ "validations": null
313
+ },
314
+ {
315
+ "id": "content",
316
+ "name": "Content",
317
+ "type": "Text",
318
+ "linkType": null,
319
+ "items": null,
320
+ "required": null,
321
+ "localized": null,
322
+ "validations": null
323
+ }
324
+ ],
325
+ "sys": {
326
+ "id": "6H6pGAV1PUsuoAW26Iu48W",
327
+ "type": "ContentType",
328
+ "createdAt": "2014-12-19T14:14:37.371Z",
329
+ "createdBy": {
330
+ "sys": {
331
+ "type": "Link",
332
+ "linkType": "User",
333
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
334
+ }
335
+ },
336
+ "space": {
337
+ "sys": {
338
+ "type": "Link",
339
+ "linkType": "Space",
340
+ "id": "space_id"
341
+ }
342
+ },
343
+ "version": 2,
344
+ "updatedAt": "2014-12-19T14:14:38.750Z",
345
+ "updatedBy": {
346
+ "sys": {
347
+ "type": "Link",
348
+ "linkType": "User",
349
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
350
+ }
351
+ }
352
+ }
353
+ }
354
+ http_version:
355
+ recorded_at: Fri, 19 Dec 2014 14:14:38 GMT
356
+ - request:
357
+ method: put
358
+ uri: https://api.contentful.com/spaces/space_id/content_types/6H6pGAV1PUsuoAW26Iu48W/published
359
+ body:
360
+ encoding: US-ASCII
361
+ string: ''
362
+ headers:
363
+ User-Agent:
364
+ - RubyContentfulManagementGem/0.5.0
365
+ Authorization:
366
+ - Bearer <ACCESS_TOKEN>
367
+ Content-Type:
368
+ - application/vnd.contentful.management.v1+json
369
+ X-Contentful-Version:
370
+ - '2'
371
+ Content-Length:
372
+ - '0'
373
+ Host:
374
+ - api.contentful.com
375
+ response:
376
+ status:
377
+ code: 200
378
+ message: OK
379
+ headers:
380
+ Access-Control-Allow-Headers:
381
+ - 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
382
+ Access-Control-Allow-Methods:
383
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
384
+ Access-Control-Allow-Origin:
385
+ - "*"
386
+ Access-Control-Expose-Headers:
387
+ - Etag
388
+ Access-Control-Max-Age:
389
+ - '1728000'
390
+ Cf-Space-Id:
391
+ - space_id
392
+ Content-Type:
393
+ - application/vnd.contentful.management.v1+json
394
+ Date:
395
+ - Fri, 19 Dec 2014 14:14:40 GMT
396
+ Etag:
397
+ - '"52179fae456dcd209c0c1a615bec1c03"'
398
+ Server:
399
+ - nginx
400
+ X-Powered-By:
401
+ - Express
402
+ Content-Length:
403
+ - '1386'
404
+ Connection:
405
+ - keep-alive
406
+ body:
407
+ encoding: UTF-8
408
+ string: |
409
+ {
410
+ "displayField": "subject",
411
+ "name": "Comment",
412
+ "description": "",
413
+ "fields": [
414
+ {
415
+ "id": "subject",
416
+ "name": "Subject",
417
+ "type": "Text",
418
+ "linkType": null,
419
+ "items": null,
420
+ "required": null,
421
+ "localized": null,
422
+ "validations": null
423
+ },
424
+ {
425
+ "id": "content",
426
+ "name": "Content",
427
+ "type": "Text",
428
+ "linkType": null,
429
+ "items": null,
430
+ "required": null,
431
+ "localized": null,
432
+ "validations": null
433
+ }
434
+ ],
435
+ "sys": {
436
+ "id": "6H6pGAV1PUsuoAW26Iu48W",
437
+ "type": "ContentType",
438
+ "createdAt": "2014-12-19T14:14:37.371Z",
439
+ "createdBy": {
440
+ "sys": {
441
+ "type": "Link",
442
+ "linkType": "User",
443
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
444
+ }
445
+ },
446
+ "space": {
447
+ "sys": {
448
+ "type": "Link",
449
+ "linkType": "Space",
450
+ "id": "space_id"
451
+ }
452
+ },
453
+ "version": 3,
454
+ "updatedAt": "2014-12-19T14:14:39.787Z",
455
+ "updatedBy": {
456
+ "sys": {
457
+ "type": "Link",
458
+ "linkType": "User",
459
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
460
+ }
461
+ },
462
+ "firstPublishedAt": "2014-12-19T14:14:39.787Z",
463
+ "publishedCounter": 1,
464
+ "publishedAt": "2014-12-19T14:14:39.787Z",
465
+ "publishedBy": {
466
+ "sys": {
467
+ "type": "Link",
468
+ "linkType": "User",
469
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
470
+ }
471
+ },
472
+ "publishedVersion": 2
473
+ }
474
+ }
475
+ http_version:
476
+ recorded_at: Fri, 19 Dec 2014 14:14:40 GMT
477
+ - request:
478
+ method: put
479
+ uri: https://api.contentful.com/spaces/space_id/content_types/2soCP557HGKoOOK0SqmMOm
480
+ body:
481
+ encoding: UTF-8
482
+ string: '{"name":"Job Skills","description":null,"fields":[{"id":"name","name":"Name","type":"Text","linkType":null,"required":null,"items":null}]}'
483
+ headers:
484
+ User-Agent:
485
+ - RubyContentfulManagementGem/0.5.0
486
+ Authorization:
487
+ - Bearer <ACCESS_TOKEN>
488
+ Content-Type:
489
+ - application/vnd.contentful.management.v1+json
490
+ Host:
491
+ - api.contentful.com
492
+ response:
493
+ status:
494
+ code: 201
495
+ message: Created
496
+ headers:
497
+ Access-Control-Allow-Headers:
498
+ - 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
499
+ Access-Control-Allow-Methods:
500
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
501
+ Access-Control-Allow-Origin:
502
+ - "*"
503
+ Access-Control-Expose-Headers:
504
+ - Etag
505
+ Access-Control-Max-Age:
506
+ - '1728000'
507
+ Cf-Space-Id:
508
+ - space_id
509
+ Content-Type:
510
+ - application/vnd.contentful.management.v1+json
511
+ Date:
512
+ - Fri, 19 Dec 2014 14:14:41 GMT
513
+ Etag:
514
+ - '"7da769847a244db1caed5e64a1b7cb70"'
515
+ Server:
516
+ - nginx
517
+ X-Powered-By:
518
+ - Express
519
+ Content-Length:
520
+ - '806'
521
+ Connection:
522
+ - keep-alive
523
+ body:
524
+ encoding: UTF-8
525
+ string: |
526
+ {
527
+ "name": "Job Skills",
528
+ "description": null,
529
+ "fields": [
530
+ {
531
+ "id": "name",
532
+ "name": "Name",
533
+ "type": "Text",
534
+ "linkType": null,
535
+ "required": null,
536
+ "items": null
537
+ }
538
+ ],
539
+ "sys": {
540
+ "id": "2soCP557HGKoOOK0SqmMOm",
541
+ "type": "ContentType",
542
+ "version": 1,
543
+ "createdAt": "2014-12-19T14:14:41.454Z",
544
+ "createdBy": {
545
+ "sys": {
546
+ "type": "Link",
547
+ "linkType": "User",
548
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
549
+ }
550
+ },
551
+ "space": {
552
+ "sys": {
553
+ "type": "Link",
554
+ "linkType": "Space",
555
+ "id": "space_id"
556
+ }
557
+ },
558
+ "updatedAt": "2014-12-19T14:14:41.454Z",
559
+ "updatedBy": {
560
+ "sys": {
561
+ "type": "Link",
562
+ "linkType": "User",
563
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
564
+ }
565
+ }
566
+ }
567
+ }
568
+ http_version:
569
+ recorded_at: Fri, 19 Dec 2014 14:14:41 GMT
570
+ - request:
571
+ method: put
572
+ uri: https://api.contentful.com/spaces/space_id/content_types/2soCP557HGKoOOK0SqmMOm
573
+ body:
574
+ encoding: UTF-8
575
+ string: '{"displayField":"name","name":"Job Skills","description":"","fields":[{"id":"name","name":"Name","type":"Text","linkType":null,"items":null,"required":null,"localized":null,"validations":null}]}'
576
+ headers:
577
+ User-Agent:
578
+ - RubyContentfulManagementGem/0.5.0
579
+ Authorization:
580
+ - Bearer <ACCESS_TOKEN>
581
+ Content-Type:
582
+ - application/vnd.contentful.management.v1+json
583
+ X-Contentful-Version:
584
+ - '1'
585
+ Host:
586
+ - api.contentful.com
587
+ response:
588
+ status:
589
+ code: 200
590
+ message: OK
591
+ headers:
592
+ Access-Control-Allow-Headers:
593
+ - 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
594
+ Access-Control-Allow-Methods:
595
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
596
+ Access-Control-Allow-Origin:
597
+ - "*"
598
+ Access-Control-Expose-Headers:
599
+ - Etag
600
+ Access-Control-Max-Age:
601
+ - '1728000'
602
+ Cf-Space-Id:
603
+ - space_id
604
+ Content-Type:
605
+ - application/vnd.contentful.management.v1+json
606
+ Date:
607
+ - Fri, 19 Dec 2014 14:14:42 GMT
608
+ Etag:
609
+ - '"80ecf46a899af85457cc35b1fd3d4db6"'
610
+ Server:
611
+ - nginx
612
+ X-Powered-By:
613
+ - Express
614
+ Content-Length:
615
+ - '882'
616
+ Connection:
617
+ - keep-alive
618
+ body:
619
+ encoding: UTF-8
620
+ string: |
621
+ {
622
+ "displayField": "name",
623
+ "name": "Job Skills",
624
+ "description": "",
625
+ "fields": [
626
+ {
627
+ "id": "name",
628
+ "name": "Name",
629
+ "type": "Text",
630
+ "linkType": null,
631
+ "items": null,
632
+ "required": null,
633
+ "localized": null,
634
+ "validations": null
635
+ }
636
+ ],
637
+ "sys": {
638
+ "id": "2soCP557HGKoOOK0SqmMOm",
639
+ "type": "ContentType",
640
+ "createdAt": "2014-12-19T14:14:41.454Z",
641
+ "createdBy": {
642
+ "sys": {
643
+ "type": "Link",
644
+ "linkType": "User",
645
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
646
+ }
647
+ },
648
+ "space": {
649
+ "sys": {
650
+ "type": "Link",
651
+ "linkType": "Space",
652
+ "id": "space_id"
653
+ }
654
+ },
655
+ "version": 2,
656
+ "updatedAt": "2014-12-19T14:14:42.426Z",
657
+ "updatedBy": {
658
+ "sys": {
659
+ "type": "Link",
660
+ "linkType": "User",
661
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
662
+ }
663
+ }
664
+ }
665
+ }
666
+ http_version:
667
+ recorded_at: Fri, 19 Dec 2014 14:14:42 GMT
668
+ - request:
669
+ method: put
670
+ uri: https://api.contentful.com/spaces/space_id/content_types/2soCP557HGKoOOK0SqmMOm/published
671
+ body:
672
+ encoding: US-ASCII
673
+ string: ''
674
+ headers:
675
+ User-Agent:
676
+ - RubyContentfulManagementGem/0.5.0
677
+ Authorization:
678
+ - Bearer <ACCESS_TOKEN>
679
+ Content-Type:
680
+ - application/vnd.contentful.management.v1+json
681
+ X-Contentful-Version:
682
+ - '2'
683
+ Content-Length:
684
+ - '0'
685
+ Host:
686
+ - api.contentful.com
687
+ response:
688
+ status:
689
+ code: 200
690
+ message: OK
691
+ headers:
692
+ Access-Control-Allow-Headers:
693
+ - 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
694
+ Access-Control-Allow-Methods:
695
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
696
+ Access-Control-Allow-Origin:
697
+ - "*"
698
+ Access-Control-Expose-Headers:
699
+ - Etag
700
+ Access-Control-Max-Age:
701
+ - '1728000'
702
+ Cf-Space-Id:
703
+ - space_id
704
+ Content-Type:
705
+ - application/vnd.contentful.management.v1+json
706
+ Date:
707
+ - Fri, 19 Dec 2014 14:14:43 GMT
708
+ Etag:
709
+ - '"10f151df2f6ea8ee5932104bc9e63d1a"'
710
+ Server:
711
+ - nginx
712
+ X-Powered-By:
713
+ - Express
714
+ Content-Length:
715
+ - '1177'
716
+ Connection:
717
+ - keep-alive
718
+ body:
719
+ encoding: UTF-8
720
+ string: |
721
+ {
722
+ "displayField": "name",
723
+ "name": "Job Skills",
724
+ "description": "",
725
+ "fields": [
726
+ {
727
+ "id": "name",
728
+ "name": "Name",
729
+ "type": "Text",
730
+ "linkType": null,
731
+ "items": null,
732
+ "required": null,
733
+ "localized": null,
734
+ "validations": null
735
+ }
736
+ ],
737
+ "sys": {
738
+ "id": "2soCP557HGKoOOK0SqmMOm",
739
+ "type": "ContentType",
740
+ "createdAt": "2014-12-19T14:14:41.454Z",
741
+ "createdBy": {
742
+ "sys": {
743
+ "type": "Link",
744
+ "linkType": "User",
745
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
746
+ }
747
+ },
748
+ "space": {
749
+ "sys": {
750
+ "type": "Link",
751
+ "linkType": "Space",
752
+ "id": "space_id"
753
+ }
754
+ },
755
+ "version": 3,
756
+ "updatedAt": "2014-12-19T14:14:43.043Z",
757
+ "updatedBy": {
758
+ "sys": {
759
+ "type": "Link",
760
+ "linkType": "User",
761
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
762
+ }
763
+ },
764
+ "firstPublishedAt": "2014-12-19T14:14:43.043Z",
765
+ "publishedCounter": 1,
766
+ "publishedAt": "2014-12-19T14:14:43.043Z",
767
+ "publishedBy": {
768
+ "sys": {
769
+ "type": "Link",
770
+ "linkType": "User",
771
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
772
+ }
773
+ },
774
+ "publishedVersion": 2
775
+ }
776
+ }
777
+ http_version:
778
+ recorded_at: Fri, 19 Dec 2014 14:14:43 GMT
779
+ - request:
780
+ method: put
781
+ uri: https://api.contentful.com/spaces/space_id/content_types/4L1bg4WQ5aWQMiE82ouag
782
+ body:
783
+ encoding: UTF-8
784
+ string: '{"name":"Jobs","description":null,"fields":[{"id":"title","name":"Title","type":"Text","linkType":null,"required":null,"items":null},{"id":"description","name":"Description","type":"Text","linkType":null,"required":null,"items":null},{"id":"image","name":"Image","type":"Link","linkType":"Asset","required":null,"items":null},{"id":"creator","name":"Creator","type":"Link","linkType":"Entry","required":null,"items":null},{"id":"comments","name":"Comments","type":"Array","linkType":null,"required":null,"items":{"type":"Link","linkType":"Entry"}},{"id":"skills","name":"Skills","type":"Array","linkType":null,"required":null,"items":{"type":"Link","linkType":"Entry"}}]}'
785
+ headers:
786
+ User-Agent:
787
+ - RubyContentfulManagementGem/0.5.0
788
+ Authorization:
789
+ - Bearer <ACCESS_TOKEN>
790
+ Content-Type:
791
+ - application/vnd.contentful.management.v1+json
792
+ Host:
793
+ - api.contentful.com
794
+ response:
795
+ status:
796
+ code: 201
797
+ message: Created
798
+ headers:
799
+ Access-Control-Allow-Headers:
800
+ - 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
801
+ Access-Control-Allow-Methods:
802
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
803
+ Access-Control-Allow-Origin:
804
+ - "*"
805
+ Access-Control-Expose-Headers:
806
+ - Etag
807
+ Access-Control-Max-Age:
808
+ - '1728000'
809
+ Cf-Space-Id:
810
+ - space_id
811
+ Content-Type:
812
+ - application/vnd.contentful.management.v1+json
813
+ Date:
814
+ - Fri, 19 Dec 2014 14:14:44 GMT
815
+ Etag:
816
+ - '"775b591b29202c0ee8f88789d435c627"'
817
+ Server:
818
+ - nginx
819
+ X-Powered-By:
820
+ - Express
821
+ Content-Length:
822
+ - '1682'
823
+ Connection:
824
+ - keep-alive
825
+ body:
826
+ encoding: UTF-8
827
+ string: |
828
+ {
829
+ "name": "Jobs",
830
+ "description": null,
831
+ "fields": [
832
+ {
833
+ "id": "title",
834
+ "name": "Title",
835
+ "type": "Text",
836
+ "linkType": null,
837
+ "required": null,
838
+ "items": null
839
+ },
840
+ {
841
+ "id": "description",
842
+ "name": "Description",
843
+ "type": "Text",
844
+ "linkType": null,
845
+ "required": null,
846
+ "items": null
847
+ },
848
+ {
849
+ "id": "image",
850
+ "name": "Image",
851
+ "type": "Link",
852
+ "linkType": "Asset",
853
+ "required": null,
854
+ "items": null
855
+ },
856
+ {
857
+ "id": "creator",
858
+ "name": "Creator",
859
+ "type": "Link",
860
+ "linkType": "Entry",
861
+ "required": null,
862
+ "items": null
863
+ },
864
+ {
865
+ "id": "comments",
866
+ "name": "Comments",
867
+ "type": "Array",
868
+ "linkType": null,
869
+ "required": null,
870
+ "items": {
871
+ "type": "Link",
872
+ "linkType": "Entry"
873
+ }
874
+ },
875
+ {
876
+ "id": "skills",
877
+ "name": "Skills",
878
+ "type": "Array",
879
+ "linkType": null,
880
+ "required": null,
881
+ "items": {
882
+ "type": "Link",
883
+ "linkType": "Entry"
884
+ }
885
+ }
886
+ ],
887
+ "sys": {
888
+ "id": "4L1bg4WQ5aWQMiE82ouag",
889
+ "type": "ContentType",
890
+ "version": 1,
891
+ "createdAt": "2014-12-19T14:14:44.827Z",
892
+ "createdBy": {
893
+ "sys": {
894
+ "type": "Link",
895
+ "linkType": "User",
896
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
897
+ }
898
+ },
899
+ "space": {
900
+ "sys": {
901
+ "type": "Link",
902
+ "linkType": "Space",
903
+ "id": "space_id"
904
+ }
905
+ },
906
+ "updatedAt": "2014-12-19T14:14:44.827Z",
907
+ "updatedBy": {
908
+ "sys": {
909
+ "type": "Link",
910
+ "linkType": "User",
911
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
912
+ }
913
+ }
914
+ }
915
+ }
916
+ http_version:
917
+ recorded_at: Fri, 19 Dec 2014 14:14:44 GMT
918
+ - request:
919
+ method: put
920
+ uri: https://api.contentful.com/spaces/space_id/content_types/4L1bg4WQ5aWQMiE82ouag
921
+ body:
922
+ encoding: UTF-8
923
+ string: '{"displayField":"title","name":"Jobs","description":"","fields":[{"id":"title","name":"Title","type":"Text","linkType":null,"items":null,"required":null,"localized":null,"validations":null},{"id":"description","name":"Description","type":"Text","linkType":null,"items":null,"required":null,"localized":null,"validations":null},{"id":"image","name":"Image","type":"Link","linkType":"Asset","items":null,"required":null,"localized":null,"validations":null},{"id":"creator","name":"Creator","type":"Link","linkType":"Entry","items":null,"required":null,"localized":null,"validations":null},{"id":"comments","name":"Comments","type":"Array","linkType":null,"items":{"id":null,"name":null,"type":"Link","linkType":"Entry","items":null,"required":null,"localized":null,"validations":null},"required":null,"localized":null,"validations":null},{"id":"skills","name":"Skills","type":"Array","linkType":null,"items":{"id":null,"name":null,"type":"Link","linkType":"Entry","items":null,"required":null,"localized":null,"validations":null},"required":null,"localized":null,"validations":null}]}'
924
+ headers:
925
+ User-Agent:
926
+ - RubyContentfulManagementGem/0.5.0
927
+ Authorization:
928
+ - Bearer <ACCESS_TOKEN>
929
+ Content-Type:
930
+ - application/vnd.contentful.management.v1+json
931
+ X-Contentful-Version:
932
+ - '1'
933
+ Host:
934
+ - api.contentful.com
935
+ response:
936
+ status:
937
+ code: 200
938
+ message: OK
939
+ headers:
940
+ Access-Control-Allow-Headers:
941
+ - 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
942
+ Access-Control-Allow-Methods:
943
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
944
+ Access-Control-Allow-Origin:
945
+ - "*"
946
+ Access-Control-Expose-Headers:
947
+ - Etag
948
+ Access-Control-Max-Age:
949
+ - '1728000'
950
+ Cf-Space-Id:
951
+ - space_id
952
+ Content-Type:
953
+ - application/vnd.contentful.management.v1+json
954
+ Date:
955
+ - Fri, 19 Dec 2014 14:14:45 GMT
956
+ Etag:
957
+ - '"a60f18834c98fb83fd6cf71ce20024d4"'
958
+ Server:
959
+ - nginx
960
+ X-Powered-By:
961
+ - Express
962
+ Content-Length:
963
+ - '2313'
964
+ Connection:
965
+ - keep-alive
966
+ body:
967
+ encoding: UTF-8
968
+ string: |
969
+ {
970
+ "displayField": "title",
971
+ "name": "Jobs",
972
+ "description": "",
973
+ "fields": [
974
+ {
975
+ "id": "title",
976
+ "name": "Title",
977
+ "type": "Text",
978
+ "linkType": null,
979
+ "items": null,
980
+ "required": null,
981
+ "localized": null,
982
+ "validations": null
983
+ },
984
+ {
985
+ "id": "description",
986
+ "name": "Description",
987
+ "type": "Text",
988
+ "linkType": null,
989
+ "items": null,
990
+ "required": null,
991
+ "localized": null,
992
+ "validations": null
993
+ },
994
+ {
995
+ "id": "image",
996
+ "name": "Image",
997
+ "type": "Link",
998
+ "linkType": "Asset",
999
+ "items": null,
1000
+ "required": null,
1001
+ "localized": null,
1002
+ "validations": null
1003
+ },
1004
+ {
1005
+ "id": "creator",
1006
+ "name": "Creator",
1007
+ "type": "Link",
1008
+ "linkType": "Entry",
1009
+ "items": null,
1010
+ "required": null,
1011
+ "localized": null,
1012
+ "validations": null
1013
+ },
1014
+ {
1015
+ "id": "comments",
1016
+ "name": "Comments",
1017
+ "type": "Array",
1018
+ "linkType": null,
1019
+ "items": {
1020
+ "id": null,
1021
+ "name": null,
1022
+ "type": "Link",
1023
+ "linkType": "Entry",
1024
+ "items": null,
1025
+ "required": null,
1026
+ "localized": null,
1027
+ "validations": null
1028
+ },
1029
+ "required": null,
1030
+ "localized": null,
1031
+ "validations": null
1032
+ },
1033
+ {
1034
+ "id": "skills",
1035
+ "name": "Skills",
1036
+ "type": "Array",
1037
+ "linkType": null,
1038
+ "items": {
1039
+ "id": null,
1040
+ "name": null,
1041
+ "type": "Link",
1042
+ "linkType": "Entry",
1043
+ "items": null,
1044
+ "required": null,
1045
+ "localized": null,
1046
+ "validations": null
1047
+ },
1048
+ "required": null,
1049
+ "localized": null,
1050
+ "validations": null
1051
+ }
1052
+ ],
1053
+ "sys": {
1054
+ "id": "4L1bg4WQ5aWQMiE82ouag",
1055
+ "type": "ContentType",
1056
+ "createdAt": "2014-12-19T14:14:44.827Z",
1057
+ "createdBy": {
1058
+ "sys": {
1059
+ "type": "Link",
1060
+ "linkType": "User",
1061
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1062
+ }
1063
+ },
1064
+ "space": {
1065
+ "sys": {
1066
+ "type": "Link",
1067
+ "linkType": "Space",
1068
+ "id": "space_id"
1069
+ }
1070
+ },
1071
+ "version": 2,
1072
+ "updatedAt": "2014-12-19T14:14:45.826Z",
1073
+ "updatedBy": {
1074
+ "sys": {
1075
+ "type": "Link",
1076
+ "linkType": "User",
1077
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1078
+ }
1079
+ }
1080
+ }
1081
+ }
1082
+ http_version:
1083
+ recorded_at: Fri, 19 Dec 2014 14:14:45 GMT
1084
+ - request:
1085
+ method: put
1086
+ uri: https://api.contentful.com/spaces/space_id/content_types/4L1bg4WQ5aWQMiE82ouag/published
1087
+ body:
1088
+ encoding: US-ASCII
1089
+ string: ''
1090
+ headers:
1091
+ User-Agent:
1092
+ - RubyContentfulManagementGem/0.5.0
1093
+ Authorization:
1094
+ - Bearer <ACCESS_TOKEN>
1095
+ Content-Type:
1096
+ - application/vnd.contentful.management.v1+json
1097
+ X-Contentful-Version:
1098
+ - '2'
1099
+ Content-Length:
1100
+ - '0'
1101
+ Host:
1102
+ - api.contentful.com
1103
+ response:
1104
+ status:
1105
+ code: 200
1106
+ message: OK
1107
+ headers:
1108
+ Access-Control-Allow-Headers:
1109
+ - 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
1110
+ Access-Control-Allow-Methods:
1111
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
1112
+ Access-Control-Allow-Origin:
1113
+ - "*"
1114
+ Access-Control-Expose-Headers:
1115
+ - Etag
1116
+ Access-Control-Max-Age:
1117
+ - '1728000'
1118
+ Cf-Space-Id:
1119
+ - space_id
1120
+ Content-Type:
1121
+ - application/vnd.contentful.management.v1+json
1122
+ Date:
1123
+ - Fri, 19 Dec 2014 14:14:47 GMT
1124
+ Etag:
1125
+ - '"99d3745ba66a1f3681794d5fa3427ebd"'
1126
+ Server:
1127
+ - nginx
1128
+ X-Powered-By:
1129
+ - Express
1130
+ Content-Length:
1131
+ - '2608'
1132
+ Connection:
1133
+ - keep-alive
1134
+ body:
1135
+ encoding: UTF-8
1136
+ string: |
1137
+ {
1138
+ "displayField": "title",
1139
+ "name": "Jobs",
1140
+ "description": "",
1141
+ "fields": [
1142
+ {
1143
+ "id": "title",
1144
+ "name": "Title",
1145
+ "type": "Text",
1146
+ "linkType": null,
1147
+ "items": null,
1148
+ "required": null,
1149
+ "localized": null,
1150
+ "validations": null
1151
+ },
1152
+ {
1153
+ "id": "description",
1154
+ "name": "Description",
1155
+ "type": "Text",
1156
+ "linkType": null,
1157
+ "items": null,
1158
+ "required": null,
1159
+ "localized": null,
1160
+ "validations": null
1161
+ },
1162
+ {
1163
+ "id": "image",
1164
+ "name": "Image",
1165
+ "type": "Link",
1166
+ "linkType": "Asset",
1167
+ "items": null,
1168
+ "required": null,
1169
+ "localized": null,
1170
+ "validations": null
1171
+ },
1172
+ {
1173
+ "id": "creator",
1174
+ "name": "Creator",
1175
+ "type": "Link",
1176
+ "linkType": "Entry",
1177
+ "items": null,
1178
+ "required": null,
1179
+ "localized": null,
1180
+ "validations": null
1181
+ },
1182
+ {
1183
+ "id": "comments",
1184
+ "name": "Comments",
1185
+ "type": "Array",
1186
+ "linkType": null,
1187
+ "items": {
1188
+ "id": null,
1189
+ "name": null,
1190
+ "type": "Link",
1191
+ "linkType": "Entry",
1192
+ "items": null,
1193
+ "required": null,
1194
+ "localized": null,
1195
+ "validations": null
1196
+ },
1197
+ "required": null,
1198
+ "localized": null,
1199
+ "validations": null
1200
+ },
1201
+ {
1202
+ "id": "skills",
1203
+ "name": "Skills",
1204
+ "type": "Array",
1205
+ "linkType": null,
1206
+ "items": {
1207
+ "id": null,
1208
+ "name": null,
1209
+ "type": "Link",
1210
+ "linkType": "Entry",
1211
+ "items": null,
1212
+ "required": null,
1213
+ "localized": null,
1214
+ "validations": null
1215
+ },
1216
+ "required": null,
1217
+ "localized": null,
1218
+ "validations": null
1219
+ }
1220
+ ],
1221
+ "sys": {
1222
+ "id": "4L1bg4WQ5aWQMiE82ouag",
1223
+ "type": "ContentType",
1224
+ "createdAt": "2014-12-19T14:14:44.827Z",
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": "space_id"
1237
+ }
1238
+ },
1239
+ "version": 3,
1240
+ "updatedAt": "2014-12-19T14:14:46.443Z",
1241
+ "updatedBy": {
1242
+ "sys": {
1243
+ "type": "Link",
1244
+ "linkType": "User",
1245
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1246
+ }
1247
+ },
1248
+ "firstPublishedAt": "2014-12-19T14:14:46.443Z",
1249
+ "publishedCounter": 1,
1250
+ "publishedAt": "2014-12-19T14:14:46.443Z",
1251
+ "publishedBy": {
1252
+ "sys": {
1253
+ "type": "Link",
1254
+ "linkType": "User",
1255
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1256
+ }
1257
+ },
1258
+ "publishedVersion": 2
1259
+ }
1260
+ }
1261
+ http_version:
1262
+ recorded_at: Fri, 19 Dec 2014 14:14:46 GMT
1263
+ - request:
1264
+ method: put
1265
+ uri: https://api.contentful.com/spaces/space_id/content_types/4WFZh4MwC4Mc0EQWAeOY8A
1266
+ body:
1267
+ encoding: UTF-8
1268
+ string: '{"name":"Profile","description":null,"fields":[{"id":"nickname","name":"Nickname","type":"Text","linkType":null,"required":null,"items":null},{"id":"user","name":"User","type":"Link","linkType":"Entry","required":null,"items":null}]}'
1269
+ headers:
1270
+ User-Agent:
1271
+ - RubyContentfulManagementGem/0.5.0
1272
+ Authorization:
1273
+ - Bearer <ACCESS_TOKEN>
1274
+ Content-Type:
1275
+ - application/vnd.contentful.management.v1+json
1276
+ Host:
1277
+ - api.contentful.com
1278
+ response:
1279
+ status:
1280
+ code: 201
1281
+ message: Created
1282
+ headers:
1283
+ Access-Control-Allow-Headers:
1284
+ - 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
1285
+ Access-Control-Allow-Methods:
1286
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
1287
+ Access-Control-Allow-Origin:
1288
+ - "*"
1289
+ Access-Control-Expose-Headers:
1290
+ - Etag
1291
+ Access-Control-Max-Age:
1292
+ - '1728000'
1293
+ Cf-Space-Id:
1294
+ - space_id
1295
+ Content-Type:
1296
+ - application/vnd.contentful.management.v1+json
1297
+ Date:
1298
+ - Fri, 19 Dec 2014 14:14:48 GMT
1299
+ Etag:
1300
+ - '"a067d85516ea0fa7ac694171a37f74e3"'
1301
+ Server:
1302
+ - nginx
1303
+ X-Powered-By:
1304
+ - Express
1305
+ Content-Length:
1306
+ - '959'
1307
+ Connection:
1308
+ - keep-alive
1309
+ body:
1310
+ encoding: UTF-8
1311
+ string: |
1312
+ {
1313
+ "name": "Profile",
1314
+ "description": null,
1315
+ "fields": [
1316
+ {
1317
+ "id": "nickname",
1318
+ "name": "Nickname",
1319
+ "type": "Text",
1320
+ "linkType": null,
1321
+ "required": null,
1322
+ "items": null
1323
+ },
1324
+ {
1325
+ "id": "user",
1326
+ "name": "User",
1327
+ "type": "Link",
1328
+ "linkType": "Entry",
1329
+ "required": null,
1330
+ "items": null
1331
+ }
1332
+ ],
1333
+ "sys": {
1334
+ "id": "4WFZh4MwC4Mc0EQWAeOY8A",
1335
+ "type": "ContentType",
1336
+ "version": 1,
1337
+ "createdAt": "2014-12-19T14:14:48.198Z",
1338
+ "createdBy": {
1339
+ "sys": {
1340
+ "type": "Link",
1341
+ "linkType": "User",
1342
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1343
+ }
1344
+ },
1345
+ "space": {
1346
+ "sys": {
1347
+ "type": "Link",
1348
+ "linkType": "Space",
1349
+ "id": "space_id"
1350
+ }
1351
+ },
1352
+ "updatedAt": "2014-12-19T14:14:48.198Z",
1353
+ "updatedBy": {
1354
+ "sys": {
1355
+ "type": "Link",
1356
+ "linkType": "User",
1357
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1358
+ }
1359
+ }
1360
+ }
1361
+ }
1362
+ http_version:
1363
+ recorded_at: Fri, 19 Dec 2014 14:14:47 GMT
1364
+ - request:
1365
+ method: put
1366
+ uri: https://api.contentful.com/spaces/space_id/content_types/4WFZh4MwC4Mc0EQWAeOY8A/published
1367
+ body:
1368
+ encoding: US-ASCII
1369
+ string: ''
1370
+ headers:
1371
+ User-Agent:
1372
+ - RubyContentfulManagementGem/0.5.0
1373
+ Authorization:
1374
+ - Bearer <ACCESS_TOKEN>
1375
+ Content-Type:
1376
+ - application/vnd.contentful.management.v1+json
1377
+ X-Contentful-Version:
1378
+ - '1'
1379
+ Content-Length:
1380
+ - '0'
1381
+ Host:
1382
+ - api.contentful.com
1383
+ response:
1384
+ status:
1385
+ code: 200
1386
+ message: OK
1387
+ headers:
1388
+ Access-Control-Allow-Headers:
1389
+ - 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
1390
+ Access-Control-Allow-Methods:
1391
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
1392
+ Access-Control-Allow-Origin:
1393
+ - "*"
1394
+ Access-Control-Expose-Headers:
1395
+ - Etag
1396
+ Access-Control-Max-Age:
1397
+ - '1728000'
1398
+ Cf-Space-Id:
1399
+ - space_id
1400
+ Content-Type:
1401
+ - application/vnd.contentful.management.v1+json
1402
+ Date:
1403
+ - Fri, 19 Dec 2014 14:14:49 GMT
1404
+ Etag:
1405
+ - '"3e45e02f8722532ffb026a65ef619a0f"'
1406
+ Server:
1407
+ - nginx
1408
+ X-Powered-By:
1409
+ - Express
1410
+ Content-Length:
1411
+ - '1254'
1412
+ Connection:
1413
+ - keep-alive
1414
+ body:
1415
+ encoding: UTF-8
1416
+ string: |
1417
+ {
1418
+ "name": "Profile",
1419
+ "description": null,
1420
+ "fields": [
1421
+ {
1422
+ "id": "nickname",
1423
+ "name": "Nickname",
1424
+ "type": "Text",
1425
+ "linkType": null,
1426
+ "required": null,
1427
+ "items": null
1428
+ },
1429
+ {
1430
+ "id": "user",
1431
+ "name": "User",
1432
+ "type": "Link",
1433
+ "linkType": "Entry",
1434
+ "required": null,
1435
+ "items": null
1436
+ }
1437
+ ],
1438
+ "sys": {
1439
+ "id": "4WFZh4MwC4Mc0EQWAeOY8A",
1440
+ "type": "ContentType",
1441
+ "createdAt": "2014-12-19T14:14:48.198Z",
1442
+ "createdBy": {
1443
+ "sys": {
1444
+ "type": "Link",
1445
+ "linkType": "User",
1446
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1447
+ }
1448
+ },
1449
+ "space": {
1450
+ "sys": {
1451
+ "type": "Link",
1452
+ "linkType": "Space",
1453
+ "id": "space_id"
1454
+ }
1455
+ },
1456
+ "version": 2,
1457
+ "updatedAt": "2014-12-19T14:14:49.037Z",
1458
+ "updatedBy": {
1459
+ "sys": {
1460
+ "type": "Link",
1461
+ "linkType": "User",
1462
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1463
+ }
1464
+ },
1465
+ "firstPublishedAt": "2014-12-19T14:14:49.037Z",
1466
+ "publishedCounter": 1,
1467
+ "publishedAt": "2014-12-19T14:14:49.037Z",
1468
+ "publishedBy": {
1469
+ "sys": {
1470
+ "type": "Link",
1471
+ "linkType": "User",
1472
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1473
+ }
1474
+ },
1475
+ "publishedVersion": 1
1476
+ }
1477
+ }
1478
+ http_version:
1479
+ recorded_at: Fri, 19 Dec 2014 14:14:49 GMT
1480
+ - request:
1481
+ method: put
1482
+ uri: https://api.contentful.com/spaces/space_id/content_types/1TVvxCqoRq0qUYAOQuOqys
1483
+ body:
1484
+ encoding: UTF-8
1485
+ string: '{"name":"User","description":null,"fields":[{"id":"first_name","name":"First_name","type":"Text","linkType":null,"required":null,"items":null},{"id":"last_name","name":"Last_name","type":"Text","linkType":null,"required":null,"items":null},{"id":"birthday","name":"Birthday","type":"Date","linkType":null,"required":null,"items":null},{"id":"job_adds","name":"Job_adds","type":"Array","linkType":null,"required":null,"items":{"type":"Link","linkType":"Entry"}},{"id":"profile","name":"Profile","type":"Link","linkType":"Entry","required":null,"items":null}]}'
1486
+ headers:
1487
+ User-Agent:
1488
+ - RubyContentfulManagementGem/0.5.0
1489
+ Authorization:
1490
+ - Bearer <ACCESS_TOKEN>
1491
+ Content-Type:
1492
+ - application/vnd.contentful.management.v1+json
1493
+ Host:
1494
+ - api.contentful.com
1495
+ response:
1496
+ status:
1497
+ code: 201
1498
+ message: Created
1499
+ headers:
1500
+ Access-Control-Allow-Headers:
1501
+ - 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
1502
+ Access-Control-Allow-Methods:
1503
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
1504
+ Access-Control-Allow-Origin:
1505
+ - "*"
1506
+ Access-Control-Expose-Headers:
1507
+ - Etag
1508
+ Access-Control-Max-Age:
1509
+ - '1728000'
1510
+ Cf-Space-Id:
1511
+ - space_id
1512
+ Content-Type:
1513
+ - application/vnd.contentful.management.v1+json
1514
+ Date:
1515
+ - Fri, 19 Dec 2014 14:14:51 GMT
1516
+ Etag:
1517
+ - '"b179d050225220cfbaa795eee73ca196"'
1518
+ Server:
1519
+ - nginx
1520
+ X-Powered-By:
1521
+ - Express
1522
+ Content-Length:
1523
+ - '1485'
1524
+ Connection:
1525
+ - keep-alive
1526
+ body:
1527
+ encoding: UTF-8
1528
+ string: |
1529
+ {
1530
+ "name": "User",
1531
+ "description": null,
1532
+ "fields": [
1533
+ {
1534
+ "id": "first_name",
1535
+ "name": "First_name",
1536
+ "type": "Text",
1537
+ "linkType": null,
1538
+ "required": null,
1539
+ "items": null
1540
+ },
1541
+ {
1542
+ "id": "last_name",
1543
+ "name": "Last_name",
1544
+ "type": "Text",
1545
+ "linkType": null,
1546
+ "required": null,
1547
+ "items": null
1548
+ },
1549
+ {
1550
+ "id": "birthday",
1551
+ "name": "Birthday",
1552
+ "type": "Date",
1553
+ "linkType": null,
1554
+ "required": null,
1555
+ "items": null
1556
+ },
1557
+ {
1558
+ "id": "job_adds",
1559
+ "name": "Job_adds",
1560
+ "type": "Array",
1561
+ "linkType": null,
1562
+ "required": null,
1563
+ "items": {
1564
+ "type": "Link",
1565
+ "linkType": "Entry"
1566
+ }
1567
+ },
1568
+ {
1569
+ "id": "profile",
1570
+ "name": "Profile",
1571
+ "type": "Link",
1572
+ "linkType": "Entry",
1573
+ "required": null,
1574
+ "items": null
1575
+ }
1576
+ ],
1577
+ "sys": {
1578
+ "id": "1TVvxCqoRq0qUYAOQuOqys",
1579
+ "type": "ContentType",
1580
+ "version": 1,
1581
+ "createdAt": "2014-12-19T14:14:50.986Z",
1582
+ "createdBy": {
1583
+ "sys": {
1584
+ "type": "Link",
1585
+ "linkType": "User",
1586
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1587
+ }
1588
+ },
1589
+ "space": {
1590
+ "sys": {
1591
+ "type": "Link",
1592
+ "linkType": "Space",
1593
+ "id": "space_id"
1594
+ }
1595
+ },
1596
+ "updatedAt": "2014-12-19T14:14:50.986Z",
1597
+ "updatedBy": {
1598
+ "sys": {
1599
+ "type": "Link",
1600
+ "linkType": "User",
1601
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1602
+ }
1603
+ }
1604
+ }
1605
+ }
1606
+ http_version:
1607
+ recorded_at: Fri, 19 Dec 2014 14:14:50 GMT
1608
+ - request:
1609
+ method: put
1610
+ uri: https://api.contentful.com/spaces/space_id/content_types/1TVvxCqoRq0qUYAOQuOqys
1611
+ body:
1612
+ encoding: UTF-8
1613
+ string: '{"displayField":"first_name","name":"User","description":"","fields":[{"id":"first_name","name":"First_name","type":"Text","linkType":null,"items":null,"required":null,"localized":null,"validations":null},{"id":"last_name","name":"Last_name","type":"Text","linkType":null,"items":null,"required":null,"localized":null,"validations":null},{"id":"birthday","name":"Birthday","type":"Date","linkType":null,"items":null,"required":null,"localized":null,"validations":null},{"id":"job_adds","name":"Job_adds","type":"Array","linkType":null,"items":{"id":null,"name":null,"type":"Link","linkType":"Entry","items":null,"required":null,"localized":null,"validations":null},"required":null,"localized":null,"validations":null},{"id":"profile","name":"Profile","type":"Link","linkType":"Entry","items":null,"required":null,"localized":null,"validations":null}]}'
1614
+ headers:
1615
+ User-Agent:
1616
+ - RubyContentfulManagementGem/0.5.0
1617
+ Authorization:
1618
+ - Bearer <ACCESS_TOKEN>
1619
+ Content-Type:
1620
+ - application/vnd.contentful.management.v1+json
1621
+ X-Contentful-Version:
1622
+ - '1'
1623
+ Host:
1624
+ - api.contentful.com
1625
+ response:
1626
+ status:
1627
+ code: 200
1628
+ message: OK
1629
+ headers:
1630
+ Access-Control-Allow-Headers:
1631
+ - 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
1632
+ Access-Control-Allow-Methods:
1633
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
1634
+ Access-Control-Allow-Origin:
1635
+ - "*"
1636
+ Access-Control-Expose-Headers:
1637
+ - Etag
1638
+ Access-Control-Max-Age:
1639
+ - '1728000'
1640
+ Cf-Space-Id:
1641
+ - space_id
1642
+ Content-Type:
1643
+ - application/vnd.contentful.management.v1+json
1644
+ Date:
1645
+ - Fri, 19 Dec 2014 14:14:52 GMT
1646
+ Etag:
1647
+ - '"b3668421dfc1a6886645e01f78348ed5"'
1648
+ Server:
1649
+ - nginx
1650
+ X-Powered-By:
1651
+ - Express
1652
+ Content-Length:
1653
+ - '1922'
1654
+ Connection:
1655
+ - keep-alive
1656
+ body:
1657
+ encoding: UTF-8
1658
+ string: |
1659
+ {
1660
+ "displayField": "first_name",
1661
+ "name": "User",
1662
+ "description": "",
1663
+ "fields": [
1664
+ {
1665
+ "id": "first_name",
1666
+ "name": "First_name",
1667
+ "type": "Text",
1668
+ "linkType": null,
1669
+ "items": null,
1670
+ "required": null,
1671
+ "localized": null,
1672
+ "validations": null
1673
+ },
1674
+ {
1675
+ "id": "last_name",
1676
+ "name": "Last_name",
1677
+ "type": "Text",
1678
+ "linkType": null,
1679
+ "items": null,
1680
+ "required": null,
1681
+ "localized": null,
1682
+ "validations": null
1683
+ },
1684
+ {
1685
+ "id": "birthday",
1686
+ "name": "Birthday",
1687
+ "type": "Date",
1688
+ "linkType": null,
1689
+ "items": null,
1690
+ "required": null,
1691
+ "localized": null,
1692
+ "validations": null
1693
+ },
1694
+ {
1695
+ "id": "job_adds",
1696
+ "name": "Job_adds",
1697
+ "type": "Array",
1698
+ "linkType": null,
1699
+ "items": {
1700
+ "id": null,
1701
+ "name": null,
1702
+ "type": "Link",
1703
+ "linkType": "Entry",
1704
+ "items": null,
1705
+ "required": null,
1706
+ "localized": null,
1707
+ "validations": null
1708
+ },
1709
+ "required": null,
1710
+ "localized": null,
1711
+ "validations": null
1712
+ },
1713
+ {
1714
+ "id": "profile",
1715
+ "name": "Profile",
1716
+ "type": "Link",
1717
+ "linkType": "Entry",
1718
+ "items": null,
1719
+ "required": null,
1720
+ "localized": null,
1721
+ "validations": null
1722
+ }
1723
+ ],
1724
+ "sys": {
1725
+ "id": "1TVvxCqoRq0qUYAOQuOqys",
1726
+ "type": "ContentType",
1727
+ "createdAt": "2014-12-19T14:14:50.986Z",
1728
+ "createdBy": {
1729
+ "sys": {
1730
+ "type": "Link",
1731
+ "linkType": "User",
1732
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1733
+ }
1734
+ },
1735
+ "space": {
1736
+ "sys": {
1737
+ "type": "Link",
1738
+ "linkType": "Space",
1739
+ "id": "space_id"
1740
+ }
1741
+ },
1742
+ "version": 2,
1743
+ "updatedAt": "2014-12-19T14:14:52.106Z",
1744
+ "updatedBy": {
1745
+ "sys": {
1746
+ "type": "Link",
1747
+ "linkType": "User",
1748
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1749
+ }
1750
+ }
1751
+ }
1752
+ }
1753
+ http_version:
1754
+ recorded_at: Fri, 19 Dec 2014 14:14:51 GMT
1755
+ - request:
1756
+ method: put
1757
+ uri: https://api.contentful.com/spaces/space_id/content_types/1TVvxCqoRq0qUYAOQuOqys/published
1758
+ body:
1759
+ encoding: US-ASCII
1760
+ string: ''
1761
+ headers:
1762
+ User-Agent:
1763
+ - RubyContentfulManagementGem/0.5.0
1764
+ Authorization:
1765
+ - Bearer <ACCESS_TOKEN>
1766
+ Content-Type:
1767
+ - application/vnd.contentful.management.v1+json
1768
+ X-Contentful-Version:
1769
+ - '2'
1770
+ Content-Length:
1771
+ - '0'
1772
+ Host:
1773
+ - api.contentful.com
1774
+ response:
1775
+ status:
1776
+ code: 200
1777
+ message: OK
1778
+ headers:
1779
+ Access-Control-Allow-Headers:
1780
+ - 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
1781
+ Access-Control-Allow-Methods:
1782
+ - DELETE,GET,HEAD,POST,PUT,OPTIONS
1783
+ Access-Control-Allow-Origin:
1784
+ - "*"
1785
+ Access-Control-Expose-Headers:
1786
+ - Etag
1787
+ Access-Control-Max-Age:
1788
+ - '1728000'
1789
+ Cf-Space-Id:
1790
+ - space_id
1791
+ Content-Type:
1792
+ - application/vnd.contentful.management.v1+json
1793
+ Date:
1794
+ - Fri, 19 Dec 2014 14:14:53 GMT
1795
+ Etag:
1796
+ - '"2cf8a0981e37217cbe5196697d0e5165"'
1797
+ Server:
1798
+ - nginx
1799
+ X-Powered-By:
1800
+ - Express
1801
+ Content-Length:
1802
+ - '2217'
1803
+ Connection:
1804
+ - keep-alive
1805
+ body:
1806
+ encoding: UTF-8
1807
+ string: |
1808
+ {
1809
+ "displayField": "first_name",
1810
+ "name": "User",
1811
+ "description": "",
1812
+ "fields": [
1813
+ {
1814
+ "id": "first_name",
1815
+ "name": "First_name",
1816
+ "type": "Text",
1817
+ "linkType": null,
1818
+ "items": null,
1819
+ "required": null,
1820
+ "localized": null,
1821
+ "validations": null
1822
+ },
1823
+ {
1824
+ "id": "last_name",
1825
+ "name": "Last_name",
1826
+ "type": "Text",
1827
+ "linkType": null,
1828
+ "items": null,
1829
+ "required": null,
1830
+ "localized": null,
1831
+ "validations": null
1832
+ },
1833
+ {
1834
+ "id": "birthday",
1835
+ "name": "Birthday",
1836
+ "type": "Date",
1837
+ "linkType": null,
1838
+ "items": null,
1839
+ "required": null,
1840
+ "localized": null,
1841
+ "validations": null
1842
+ },
1843
+ {
1844
+ "id": "job_adds",
1845
+ "name": "Job_adds",
1846
+ "type": "Array",
1847
+ "linkType": null,
1848
+ "items": {
1849
+ "id": null,
1850
+ "name": null,
1851
+ "type": "Link",
1852
+ "linkType": "Entry",
1853
+ "items": null,
1854
+ "required": null,
1855
+ "localized": null,
1856
+ "validations": null
1857
+ },
1858
+ "required": null,
1859
+ "localized": null,
1860
+ "validations": null
1861
+ },
1862
+ {
1863
+ "id": "profile",
1864
+ "name": "Profile",
1865
+ "type": "Link",
1866
+ "linkType": "Entry",
1867
+ "items": null,
1868
+ "required": null,
1869
+ "localized": null,
1870
+ "validations": null
1871
+ }
1872
+ ],
1873
+ "sys": {
1874
+ "id": "1TVvxCqoRq0qUYAOQuOqys",
1875
+ "type": "ContentType",
1876
+ "createdAt": "2014-12-19T14:14:50.986Z",
1877
+ "createdBy": {
1878
+ "sys": {
1879
+ "type": "Link",
1880
+ "linkType": "User",
1881
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1882
+ }
1883
+ },
1884
+ "space": {
1885
+ "sys": {
1886
+ "type": "Link",
1887
+ "linkType": "Space",
1888
+ "id": "space_id"
1889
+ }
1890
+ },
1891
+ "version": 3,
1892
+ "updatedAt": "2014-12-19T14:14:52.885Z",
1893
+ "updatedBy": {
1894
+ "sys": {
1895
+ "type": "Link",
1896
+ "linkType": "User",
1897
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1898
+ }
1899
+ },
1900
+ "firstPublishedAt": "2014-12-19T14:14:52.885Z",
1901
+ "publishedCounter": 1,
1902
+ "publishedAt": "2014-12-19T14:14:52.885Z",
1903
+ "publishedBy": {
1904
+ "sys": {
1905
+ "type": "Link",
1906
+ "linkType": "User",
1907
+ "id": "1E7acJL8I5XUXAMHQt9Grs"
1908
+ }
1909
+ },
1910
+ "publishedVersion": 2
1911
+ }
1912
+ }
1913
+ http_version:
1914
+ recorded_at: Fri, 19 Dec 2014 14:14:53 GMT
1915
+ recorded_with: VCR 2.9.3