metatron_ruby_client 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +140 -0
  3. data/config.json +13 -0
  4. data/docs/Asset.md +9 -0
  5. data/docs/AssetAttributes.md +8 -0
  6. data/docs/AssetData.md +10 -0
  7. data/docs/AssetMeta.md +8 -0
  8. data/docs/AssetResultSet.md +10 -0
  9. data/docs/AssetResultSetMeta.md +8 -0
  10. data/docs/DefaultApi.md +631 -0
  11. data/docs/Error.md +10 -0
  12. data/docs/Errors.md +8 -0
  13. data/docs/Item.md +9 -0
  14. data/docs/ItemData.md +8 -0
  15. data/docs/ItemResultSet.md +10 -0
  16. data/docs/Links.md +10 -0
  17. data/docs/Manifestation.md +9 -0
  18. data/docs/ManifestationAttributes.md +11 -0
  19. data/docs/ManifestationData.md +11 -0
  20. data/docs/ManifestationRelationships.md +10 -0
  21. data/docs/ManifestationResultSet.md +10 -0
  22. data/docs/Meta.md +10 -0
  23. data/docs/OneToManyRelationship.md +10 -0
  24. data/docs/OneToOneRelationship.md +10 -0
  25. data/docs/Resource.md +10 -0
  26. data/docs/ResourceData.md +11 -0
  27. data/docs/ResourceLink.md +9 -0
  28. data/docs/ResultSetMeta.md +10 -0
  29. data/docs/Work.md +9 -0
  30. data/docs/WorkAttributes.md +8 -0
  31. data/docs/WorkData.md +11 -0
  32. data/docs/WorkRelationships.md +8 -0
  33. data/docs/WorkResultSet.md +11 -0
  34. data/generate.sh +0 -0
  35. data/git_push.sh +52 -0
  36. data/lib/metatron_ruby_client/api/default_api.rb +727 -0
  37. data/lib/metatron_ruby_client/api_client.rb +361 -0
  38. data/lib/metatron_ruby_client/api_error.rb +34 -0
  39. data/lib/metatron_ruby_client/configuration.rb +170 -0
  40. data/lib/metatron_ruby_client/models/asset.rb +195 -0
  41. data/lib/metatron_ruby_client/models/asset_attributes.rb +212 -0
  42. data/lib/metatron_ruby_client/models/asset_data.rb +208 -0
  43. data/lib/metatron_ruby_client/models/asset_meta.rb +198 -0
  44. data/lib/metatron_ruby_client/models/asset_result_set.rb +202 -0
  45. data/lib/metatron_ruby_client/models/asset_result_set_meta.rb +196 -0
  46. data/lib/metatron_ruby_client/models/error.rb +208 -0
  47. data/lib/metatron_ruby_client/models/errors.rb +184 -0
  48. data/lib/metatron_ruby_client/models/item.rb +197 -0
  49. data/lib/metatron_ruby_client/models/item_data.rb +186 -0
  50. data/lib/metatron_ruby_client/models/item_result_set.rb +206 -0
  51. data/lib/metatron_ruby_client/models/links.rb +204 -0
  52. data/lib/metatron_ruby_client/models/manifestation.rb +197 -0
  53. data/lib/metatron_ruby_client/models/manifestation_attributes.rb +209 -0
  54. data/lib/metatron_ruby_client/models/manifestation_data.rb +235 -0
  55. data/lib/metatron_ruby_client/models/manifestation_relationships.rb +200 -0
  56. data/lib/metatron_ruby_client/models/manifestation_result_set.rb +214 -0
  57. data/lib/metatron_ruby_client/models/meta.rb +260 -0
  58. data/lib/metatron_ruby_client/models/one_to_many_relationship.rb +206 -0
  59. data/lib/metatron_ruby_client/models/one_to_one_relationship.rb +204 -0
  60. data/lib/metatron_ruby_client/models/resource.rb +281 -0
  61. data/lib/metatron_ruby_client/models/resource_data.rb +221 -0
  62. data/lib/metatron_ruby_client/models/resource_link.rb +199 -0
  63. data/lib/metatron_ruby_client/models/result_set_meta.rb +203 -0
  64. data/lib/metatron_ruby_client/models/work.rb +197 -0
  65. data/lib/metatron_ruby_client/models/work_attributes.rb +186 -0
  66. data/lib/metatron_ruby_client/models/work_data.rb +235 -0
  67. data/lib/metatron_ruby_client/models/work_relationships.rb +182 -0
  68. data/lib/metatron_ruby_client/models/work_result_set.rb +213 -0
  69. data/lib/metatron_ruby_client/version.rb +13 -0
  70. data/lib/metatron_ruby_client.rb +60 -0
  71. data/metatron_ruby_client.gemspec +31 -0
  72. data/spec/api/default_api_spec.rb +218 -0
  73. data/spec/models/asset_attributes_spec.rb +46 -0
  74. data/spec/models/asset_data_spec.rb +66 -0
  75. data/spec/models/asset_meta_spec.rb +46 -0
  76. data/spec/models/asset_result_set_spec.rb +66 -0
  77. data/spec/models/asset_spec.rb +56 -0
  78. data/spec/models/error_spec.rb +66 -0
  79. data/spec/models/errors_spec.rb +46 -0
  80. data/spec/models/item_data_spec.rb +46 -0
  81. data/spec/models/item_result_set_spec.rb +66 -0
  82. data/spec/models/item_spec.rb +56 -0
  83. data/spec/models/links_spec.rb +66 -0
  84. data/spec/models/manifestation_attributes_spec.rb +76 -0
  85. data/spec/models/manifestation_data_spec.rb +76 -0
  86. data/spec/models/manifestation_relationships_spec.rb +66 -0
  87. data/spec/models/manifestation_result_set_spec.rb +66 -0
  88. data/spec/models/manifestation_spec.rb +56 -0
  89. data/spec/models/meta_spec.rb +66 -0
  90. data/spec/models/one_to_many_relationship_spec.rb +66 -0
  91. data/spec/models/one_to_one_relationship_spec.rb +66 -0
  92. data/spec/models/resource_data_spec.rb +76 -0
  93. data/spec/models/resource_link_spec.rb +56 -0
  94. data/spec/models/resource_spec.rb +66 -0
  95. data/spec/models/result_set_meta_spec.rb +66 -0
  96. data/spec/models/work_attributes_spec.rb +46 -0
  97. data/spec/models/work_data_spec.rb +76 -0
  98. data/spec/models/work_relationships_spec.rb +46 -0
  99. data/spec/models/work_result_set_spec.rb +76 -0
  100. data/spec/models/work_spec.rb +56 -0
  101. data/stub-service/.swagger-codegen-ignore +23 -0
  102. data/stub-service/Gemfile +4 -0
  103. data/stub-service/Gemfile.lock +22 -0
  104. data/stub-service/LICENSE +201 -0
  105. data/stub-service/README.md +29 -0
  106. data/stub-service/api/default_api.rb +370 -0
  107. data/stub-service/config.ru +2 -0
  108. data/stub-service/lib/result_set.rb +37 -0
  109. data/stub-service/lib/swaggering.rb +163 -0
  110. data/stub-service/my_app.rb +13 -0
  111. data/stub-service/responses/works/includes/manifestations.assets.yaml +42 -0
  112. data/stub-service/responses/works/includes/manifestations.yaml +88 -0
  113. data/stub-service/responses/works/result_set.yaml +18 -0
  114. data/stub-service/swagger.yaml +756 -0
  115. data/swagger-codegen-cli.jar +0 -0
  116. metadata +369 -0
@@ -0,0 +1,756 @@
1
+ ---
2
+ swagger: "2.0"
3
+ info:
4
+ version: "2016-07-15T09:42:29Z"
5
+ title: "production-metatron-api"
6
+ host: "bibliography.talis.com"
7
+ schemes:
8
+ - "https"
9
+ paths:
10
+ /2/assets/{assetType}/{assetId}:
11
+ delete:
12
+ consumes:
13
+ - "application/json"
14
+ produces:
15
+ - "application/vnd.api+json"
16
+ - "application/json"
17
+ parameters:
18
+ - name: "assetId"
19
+ in: "path"
20
+ required: true
21
+ type: "string"
22
+ - name: "assetType"
23
+ in: "path"
24
+ required: true
25
+ type: "string"
26
+ - name: "Authorization"
27
+ in: "header"
28
+ required: true
29
+ type: "string"
30
+ responses:
31
+ 200:
32
+ description: "200 response"
33
+ 400:
34
+ description: "400 response"
35
+ schema:
36
+ $ref: "#/definitions/Errors"
37
+ 401:
38
+ description: "401 response"
39
+ schema:
40
+ $ref: "#/definitions/Errors"
41
+ 403:
42
+ description: "403 response"
43
+ schema:
44
+ $ref: "#/definitions/Errors"
45
+ 404:
46
+ description: "404 response"
47
+ schema:
48
+ $ref: "#/definitions/Errors"
49
+ 500:
50
+ description: "500 response"
51
+ schema:
52
+ $ref: "#/definitions/Errors"
53
+ security:
54
+ - Authorizer: []
55
+ /2/manifestations:
56
+ get:
57
+ consumes:
58
+ - "application/json"
59
+ produces:
60
+ - "application/vnd.api+json"
61
+ - "application/json"
62
+ parameters:
63
+ - name: "work_id"
64
+ in: "query"
65
+ required: false
66
+ type: "string"
67
+ - name: "Authorization"
68
+ in: "header"
69
+ required: true
70
+ type: "string"
71
+ - name: "isbn"
72
+ in: "query"
73
+ required: false
74
+ type: "string"
75
+ responses:
76
+ 200:
77
+ description: "200 response"
78
+ schema:
79
+ $ref: "#/definitions/ManifestationResultSet"
80
+ 400:
81
+ description: "400 response"
82
+ schema:
83
+ $ref: "#/definitions/Errors"
84
+ 401:
85
+ description: "401 response"
86
+ schema:
87
+ $ref: "#/definitions/Errors"
88
+ 403:
89
+ description: "403 response"
90
+ schema:
91
+ $ref: "#/definitions/Errors"
92
+ 404:
93
+ description: "404 response"
94
+ schema:
95
+ $ref: "#/definitions/Errors"
96
+ 500:
97
+ description: "500 response"
98
+ schema:
99
+ $ref: "#/definitions/Errors"
100
+ security:
101
+ - Authorizer: []
102
+ /2/manifestations/{manifestationId}:
103
+ get:
104
+ consumes:
105
+ - "application/json"
106
+ produces:
107
+ - "application/vnd.api+json"
108
+ parameters:
109
+ - name: "manifestationId"
110
+ in: "path"
111
+ required: true
112
+ type: "string"
113
+ - name: "Authorization"
114
+ in: "header"
115
+ required: true
116
+ type: "string"
117
+ responses:
118
+ 200:
119
+ description: "200 response"
120
+ 400:
121
+ description: "400 response"
122
+ schema:
123
+ $ref: "#/definitions/Errors"
124
+ 401:
125
+ description: "401 response"
126
+ schema:
127
+ $ref: "#/definitions/Errors"
128
+ 403:
129
+ description: "403 response"
130
+ schema:
131
+ $ref: "#/definitions/Errors"
132
+ 404:
133
+ description: "404 response"
134
+ schema:
135
+ $ref: "#/definitions/Errors"
136
+ 500:
137
+ description: "500 response"
138
+ schema:
139
+ $ref: "#/definitions/Errors"
140
+ security:
141
+ - Authorizer: []
142
+ /2/manifestations/{manifestationId}/assets:
143
+ get:
144
+ consumes:
145
+ - "application/json"
146
+ produces:
147
+ - "application/vnd.api+json"
148
+ - "application/json"
149
+ parameters:
150
+ - name: "manifestationId"
151
+ in: "path"
152
+ required: true
153
+ type: "string"
154
+ - name: "Authorization"
155
+ in: "header"
156
+ required: true
157
+ type: "string"
158
+ responses:
159
+ 200:
160
+ description: "200 response"
161
+ schema:
162
+ $ref: "#/definitions/AssetResultSet"
163
+ 400:
164
+ description: "400 response"
165
+ schema:
166
+ $ref: "#/definitions/Errors"
167
+ 401:
168
+ description: "401 response"
169
+ schema:
170
+ $ref: "#/definitions/Errors"
171
+ 403:
172
+ description: "403 response"
173
+ schema:
174
+ $ref: "#/definitions/Errors"
175
+ 404:
176
+ description: "404 response"
177
+ schema:
178
+ $ref: "#/definitions/Errors"
179
+ 500:
180
+ description: "500 response"
181
+ schema:
182
+ $ref: "#/definitions/Errors"
183
+ security:
184
+ - Authorizer: []
185
+ post:
186
+ consumes:
187
+ - "application/vnd.api+json"
188
+ - "application/json"
189
+ produces:
190
+ - "application/vnd.api+json"
191
+ - "application/json"
192
+ parameters:
193
+ - name: "manifestationId"
194
+ in: "path"
195
+ required: true
196
+ type: "string"
197
+ - name: "Authorization"
198
+ in: "header"
199
+ required: true
200
+ type: "string"
201
+ - in: "body"
202
+ name: "Asset"
203
+ required: true
204
+ schema:
205
+ $ref: "#/definitions/Asset"
206
+ responses:
207
+ 200:
208
+ description: "200 response"
209
+ schema:
210
+ $ref: "#/definitions/Asset"
211
+ 400:
212
+ description: "400 response"
213
+ schema:
214
+ $ref: "#/definitions/Errors"
215
+ 401:
216
+ description: "401 response"
217
+ schema:
218
+ $ref: "#/definitions/Errors"
219
+ 403:
220
+ description: "403 response"
221
+ schema:
222
+ $ref: "#/definitions/Errors"
223
+ 404:
224
+ description: "404 response"
225
+ schema:
226
+ $ref: "#/definitions/Errors"
227
+ 500:
228
+ description: "500 response"
229
+ schema:
230
+ $ref: "#/definitions/Errors"
231
+ security:
232
+ - Authorizer: []
233
+ /2/manifestations/{manifestationId}/items/{tenantCode}:
234
+ get:
235
+ consumes:
236
+ - "application/json"
237
+ produces:
238
+ - "application/vnd.api+json"
239
+ parameters:
240
+ - name: "manifestationId"
241
+ in: "path"
242
+ required: true
243
+ type: "string"
244
+ - name: "Authorization"
245
+ in: "header"
246
+ required: true
247
+ type: "string"
248
+ - name: "tenantCode"
249
+ in: "path"
250
+ required: true
251
+ type: "string"
252
+ responses:
253
+ 200:
254
+ description: "200 response"
255
+ schema:
256
+ $ref: "#/definitions/ItemResultSet"
257
+ 400:
258
+ description: "400 response"
259
+ schema:
260
+ $ref: "#/definitions/Errors"
261
+ 401:
262
+ description: "401 response"
263
+ schema:
264
+ $ref: "#/definitions/Errors"
265
+ 403:
266
+ description: "403 response"
267
+ schema:
268
+ $ref: "#/definitions/Errors"
269
+ 404:
270
+ description: "404 response"
271
+ schema:
272
+ $ref: "#/definitions/Errors"
273
+ 500:
274
+ description: "500 response"
275
+ schema:
276
+ $ref: "#/definitions/Errors"
277
+ security:
278
+ - Authorizer: []
279
+ /2/manifestations/{manifestationId}/works:
280
+ get:
281
+ consumes:
282
+ - "application/json"
283
+ produces:
284
+ - "application/vnd.api+json"
285
+ parameters:
286
+ - name: "manifestationId"
287
+ in: "path"
288
+ required: true
289
+ type: "string"
290
+ - name: "Authorization"
291
+ in: "header"
292
+ required: true
293
+ type: "string"
294
+ responses:
295
+ 200:
296
+ description: "200 response"
297
+ 400:
298
+ description: "400 response"
299
+ schema:
300
+ $ref: "#/definitions/Errors"
301
+ 401:
302
+ description: "401 response"
303
+ schema:
304
+ $ref: "#/definitions/Errors"
305
+ 403:
306
+ description: "403 response"
307
+ schema:
308
+ $ref: "#/definitions/Errors"
309
+ 404:
310
+ description: "404 response"
311
+ schema:
312
+ $ref: "#/definitions/Errors"
313
+ 500:
314
+ description: "500 response"
315
+ schema:
316
+ $ref: "#/definitions/Errors"
317
+ security:
318
+ - Authorizer: []
319
+ /2/works:
320
+ get:
321
+ consumes:
322
+ - "application/json"
323
+ produces:
324
+ - "application/vnd.api+json"
325
+ - "application/json"
326
+ parameters:
327
+ - name: "limit"
328
+ in: "query"
329
+ required: true
330
+ type: "string"
331
+ - name: "include"
332
+ in: "query"
333
+ required: false
334
+ type: "string"
335
+ - name: "offset"
336
+ in: "query"
337
+ required: true
338
+ type: "string"
339
+ - name: "q"
340
+ in: "query"
341
+ required: true
342
+ type: "string"
343
+ - name: "Authorization"
344
+ in: "header"
345
+ required: true
346
+ type: "string"
347
+ responses:
348
+ 200:
349
+ description: "200 response"
350
+ schema:
351
+ $ref: "#/definitions/WorkResultSet"
352
+ 400:
353
+ description: "400 response"
354
+ schema:
355
+ $ref: "#/definitions/Errors"
356
+ 401:
357
+ description: "401 response"
358
+ schema:
359
+ $ref: "#/definitions/Errors"
360
+ 403:
361
+ description: "403 response"
362
+ schema:
363
+ $ref: "#/definitions/Errors"
364
+ 404:
365
+ description: "404 response"
366
+ schema:
367
+ $ref: "#/definitions/Errors"
368
+ 500:
369
+ description: "500 response"
370
+ schema:
371
+ $ref: "#/definitions/Errors"
372
+ security:
373
+ - Authorizer: []
374
+ /2/works/{workId}/assets:
375
+ get:
376
+ consumes:
377
+ - "application/json"
378
+ produces:
379
+ - "application/vnd.api+json"
380
+ - "application/json"
381
+ parameters:
382
+ - name: "workId"
383
+ in: "path"
384
+ required: true
385
+ type: "string"
386
+ - name: "Authorization"
387
+ in: "header"
388
+ required: true
389
+ type: "string"
390
+ responses:
391
+ 200:
392
+ description: "200 response"
393
+ schema:
394
+ $ref: "#/definitions/AssetResultSet"
395
+ 400:
396
+ description: "400 response"
397
+ schema:
398
+ $ref: "#/definitions/Errors"
399
+ 401:
400
+ description: "401 response"
401
+ schema:
402
+ $ref: "#/definitions/Errors"
403
+ 403:
404
+ description: "403 response"
405
+ schema:
406
+ $ref: "#/definitions/Errors"
407
+ 404:
408
+ description: "404 response"
409
+ schema:
410
+ $ref: "#/definitions/Errors"
411
+ 500:
412
+ description: "500 response"
413
+ schema:
414
+ $ref: "#/definitions/Errors"
415
+ security:
416
+ - Authorizer: []
417
+ /2/works/{workId}/manifestations:
418
+ get:
419
+ consumes:
420
+ - "application/json"
421
+ produces:
422
+ - "application/vnd.api+json"
423
+ parameters:
424
+ - name: "workId"
425
+ in: "path"
426
+ required: true
427
+ type: "string"
428
+ - name: "Authorization"
429
+ in: "header"
430
+ required: true
431
+ type: "string"
432
+ responses:
433
+ 200:
434
+ description: "200 response"
435
+ 400:
436
+ description: "400 response"
437
+ schema:
438
+ $ref: "#/definitions/Errors"
439
+ 401:
440
+ description: "401 response"
441
+ schema:
442
+ $ref: "#/definitions/Errors"
443
+ 403:
444
+ description: "403 response"
445
+ schema:
446
+ $ref: "#/definitions/Errors"
447
+ 404:
448
+ description: "404 response"
449
+ schema:
450
+ $ref: "#/definitions/Errors"
451
+ 500:
452
+ description: "500 response"
453
+ schema:
454
+ $ref: "#/definitions/Errors"
455
+ security:
456
+ - Authorizer: []
457
+ /2/works/{workId}/similar:
458
+ get:
459
+ consumes:
460
+ - "application/json"
461
+ produces:
462
+ - "application/vnd.api+json"
463
+ parameters:
464
+ - name: "workId"
465
+ in: "path"
466
+ required: true
467
+ type: "string"
468
+ - name: "Authorization"
469
+ in: "header"
470
+ required: true
471
+ type: "string"
472
+ responses:
473
+ 200:
474
+ description: "200 response"
475
+ schema:
476
+ $ref: "#/definitions/WorkResultSet"
477
+ 400:
478
+ description: "400 response"
479
+ schema:
480
+ $ref: "#/definitions/Errors"
481
+ 401:
482
+ description: "401 response"
483
+ schema:
484
+ $ref: "#/definitions/Errors"
485
+ 403:
486
+ description: "403 response"
487
+ schema:
488
+ $ref: "#/definitions/Errors"
489
+ 404:
490
+ description: "404 response"
491
+ schema:
492
+ $ref: "#/definitions/Errors"
493
+ 500:
494
+ description: "500 response"
495
+ schema:
496
+ $ref: "#/definitions/Errors"
497
+ security:
498
+ - Authorizer: []
499
+ securityDefinitions:
500
+ Authorizer:
501
+ type: "apiKey"
502
+ name: "Authorization"
503
+ in: "header"
504
+ x-amazon-apigateway-authtype: "custom"
505
+ definitions:
506
+ WorkRelationships:
507
+ type: "object"
508
+ properties:
509
+ manifestations:
510
+ $ref: "#/definitions/OneToManyRelationship"
511
+ WorkResultSet:
512
+ type: "object"
513
+ properties:
514
+ links:
515
+ $ref: "#/definitions/Links"
516
+ meta:
517
+ $ref: "#/definitions/ResultSetMeta"
518
+ data:
519
+ type: "array"
520
+ items:
521
+ $ref: "#/definitions/WorkData"
522
+ included:
523
+ type: "array"
524
+ items:
525
+ $ref: "#/definitions/ResourceData"
526
+ ResourceData:
527
+ type: "object"
528
+ required:
529
+ - "attributes"
530
+ - "id"
531
+ - "type"
532
+ properties:
533
+ id:
534
+ type: "string"
535
+ type:
536
+ type: "string"
537
+ attributes:
538
+ type: "object"
539
+ properties: {}
540
+ relationships:
541
+ type: "object"
542
+ properties: {}
543
+ ResultSetMeta:
544
+ type: "object"
545
+ properties:
546
+ offset:
547
+ type: "number"
548
+ description: "start index of this set"
549
+ limit:
550
+ type: "number"
551
+ description: "max limit of records in this set"
552
+ count:
553
+ type: "number"
554
+ description: "total count of all matches"
555
+ OneToOneRelationship:
556
+ type: "object"
557
+ required:
558
+ - "data"
559
+ properties:
560
+ meta:
561
+ type: "object"
562
+ properties: {}
563
+ links:
564
+ $ref: "#/definitions/Links"
565
+ data:
566
+ $ref: "#/definitions/ResourceLink"
567
+ WorkAttributes:
568
+ type: "object"
569
+ required:
570
+ - "title"
571
+ properties:
572
+ title:
573
+ type: "string"
574
+ ManifestationAttributes:
575
+ type: "object"
576
+ properties:
577
+ format:
578
+ type: "string"
579
+ identifiers:
580
+ type: "object"
581
+ properties: {}
582
+ place_of_publication:
583
+ type: "string"
584
+ publishing_status:
585
+ type: "string"
586
+ Error:
587
+ type: "object"
588
+ required:
589
+ - "status"
590
+ - "title"
591
+ properties:
592
+ status:
593
+ type: "number"
594
+ title:
595
+ type: "string"
596
+ detail:
597
+ type: "string"
598
+ AssetData:
599
+ type: "object"
600
+ required:
601
+ - "id"
602
+ - "type"
603
+ properties:
604
+ id:
605
+ type: "string"
606
+ type:
607
+ type: "string"
608
+ attributes:
609
+ type: "object"
610
+ properties: {}
611
+ ItemResultSet:
612
+ type: "object"
613
+ required:
614
+ - "data"
615
+ properties:
616
+ links:
617
+ $ref: "#/definitions/Links"
618
+ meta:
619
+ $ref: "#/definitions/ResultSetMeta"
620
+ data:
621
+ type: "array"
622
+ items:
623
+ $ref: "#/definitions/ItemData"
624
+ AssetResultSet:
625
+ type: "object"
626
+ properties:
627
+ links:
628
+ $ref: "#/definitions/Links"
629
+ meta:
630
+ $ref: "#/definitions/AssetResultSet_meta"
631
+ data:
632
+ type: "array"
633
+ items:
634
+ $ref: "#/definitions/AssetData"
635
+ OneToManyRelationship:
636
+ type: "object"
637
+ required:
638
+ - "data"
639
+ properties:
640
+ meta:
641
+ type: "object"
642
+ properties: {}
643
+ links:
644
+ $ref: "#/definitions/Links"
645
+ data:
646
+ type: "array"
647
+ items:
648
+ $ref: "#/definitions/ResourceLink"
649
+ Errors:
650
+ type: "object"
651
+ properties:
652
+ errors:
653
+ type: "array"
654
+ items:
655
+ $ref: "#/definitions/Error"
656
+ ManifestationResultSet:
657
+ type: "object"
658
+ required:
659
+ - "data"
660
+ - "links"
661
+ - "meta"
662
+ properties:
663
+ links:
664
+ $ref: "#/definitions/Links"
665
+ meta:
666
+ $ref: "#/definitions/ResultSetMeta"
667
+ data:
668
+ type: "array"
669
+ items:
670
+ $ref: "#/definitions/ManifestationData"
671
+ ResourceLink:
672
+ type: "object"
673
+ required:
674
+ - "id"
675
+ - "type"
676
+ properties:
677
+ id:
678
+ type: "string"
679
+ type:
680
+ type: "string"
681
+ ManifestationRelationships:
682
+ type: "object"
683
+ properties:
684
+ contributors:
685
+ $ref: "#/definitions/OneToManyRelationship"
686
+ assets:
687
+ $ref: "#/definitions/OneToManyRelationship"
688
+ work:
689
+ $ref: "#/definitions/OneToOneRelationship"
690
+ ManifestationData:
691
+ type: "object"
692
+ required:
693
+ - "attributes"
694
+ - "id"
695
+ - "type"
696
+ properties:
697
+ id:
698
+ type: "string"
699
+ type:
700
+ type: "string"
701
+ enum:
702
+ - "manifestations"
703
+ attributes:
704
+ $ref: "#/definitions/ManifestationAttributes"
705
+ relationships:
706
+ $ref: "#/definitions/ManifestationRelationships"
707
+ Links:
708
+ type: "object"
709
+ required:
710
+ - "self"
711
+ properties:
712
+ self:
713
+ type: "string"
714
+ next:
715
+ type: "string"
716
+ previous:
717
+ type: "string"
718
+ Asset:
719
+ type: "object"
720
+ required:
721
+ - "data"
722
+ properties:
723
+ meta:
724
+ $ref: "#/definitions/AssetResultSet_meta"
725
+ data:
726
+ $ref: "#/definitions/AssetData"
727
+ WorkData:
728
+ type: "object"
729
+ required:
730
+ - "attributes"
731
+ - "id"
732
+ - "type"
733
+ properties:
734
+ id:
735
+ type: "string"
736
+ type:
737
+ type: "string"
738
+ enum:
739
+ - "works"
740
+ attributes:
741
+ $ref: "#/definitions/WorkAttributes"
742
+ relationships:
743
+ $ref: "#/definitions/WorkRelationships"
744
+ ItemData:
745
+ type: "object"
746
+ required:
747
+ - "id"
748
+ properties:
749
+ id:
750
+ type: "string"
751
+ AssetResultSet_meta:
752
+ properties:
753
+ super_type:
754
+ type: "string"
755
+ enum:
756
+ - "assets"