@twin.org/blob-storage-service 0.0.2-next.4 → 0.0.3-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/blobStorageRoutes.js +528 -0
- package/dist/es/blobStorageRoutes.js.map +1 -0
- package/dist/es/blobStorageService.js +359 -0
- package/dist/es/blobStorageService.js.map +1 -0
- package/dist/es/entities/blobStorageEntry.js +96 -0
- package/dist/es/entities/blobStorageEntry.js.map +1 -0
- package/dist/es/index.js +10 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/models/IBlobStorageServiceConfig.js +4 -0
- package/dist/es/models/IBlobStorageServiceConfig.js.map +1 -0
- package/dist/es/models/IBlobStorageServiceConstructorOptions.js +2 -0
- package/dist/es/models/IBlobStorageServiceConstructorOptions.js.map +1 -0
- package/dist/es/restEntryPoints.js +15 -0
- package/dist/es/restEntryPoints.js.map +1 -0
- package/dist/es/schema.js +11 -0
- package/dist/es/schema.js.map +1 -0
- package/dist/types/blobStorageService.d.ts +14 -16
- package/dist/types/entities/blobStorageEntry.d.ts +0 -4
- package/dist/types/index.d.ts +7 -7
- package/dist/types/models/IBlobStorageServiceConfig.d.ts +0 -4
- package/dist/types/models/IBlobStorageServiceConstructorOptions.d.ts +1 -1
- package/docs/changelog.md +49 -0
- package/docs/open-api/spec.json +38 -497
- package/docs/reference/classes/BlobStorageEntry.md +0 -8
- package/docs/reference/classes/BlobStorageService.md +24 -52
- package/docs/reference/interfaces/IBlobStorageServiceConfig.md +0 -8
- package/locales/en.json +3 -1
- package/package.json +12 -9
- package/dist/cjs/index.cjs +0 -1084
- package/dist/esm/index.mjs +0 -1072
package/docs/open-api/spec.json
CHANGED
|
@@ -57,71 +57,21 @@
|
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
"responses": {
|
|
60
|
-
"
|
|
60
|
+
"200": {
|
|
61
61
|
"description": "The rest request ended in created response.",
|
|
62
|
-
"headers": {
|
|
63
|
-
"location": {
|
|
64
|
-
"schema": {
|
|
65
|
-
"type": "string"
|
|
66
|
-
},
|
|
67
|
-
"description": "e.g. blob-memory:c57d94b088f4c6d2cb32ded014813d0c786aa00134c8ee22f84b1e2545602a70"
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
"400": {
|
|
72
|
-
"description": "The server cannot process the request, see the content for more details.",
|
|
73
|
-
"content": {
|
|
74
|
-
"application/json": {
|
|
75
|
-
"schema": {
|
|
76
|
-
"$ref": "#/components/schemas/Error"
|
|
77
|
-
},
|
|
78
|
-
"examples": {
|
|
79
|
-
"exampleResponse": {
|
|
80
|
-
"value": {
|
|
81
|
-
"name": "GeneralError",
|
|
82
|
-
"message": "component.error",
|
|
83
|
-
"properties": {
|
|
84
|
-
"foo": "bar"
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
"401": {
|
|
93
|
-
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
94
62
|
"content": {
|
|
95
|
-
"
|
|
63
|
+
"text/plain": {
|
|
96
64
|
"schema": {
|
|
97
|
-
"$ref": "#/components/schemas/
|
|
98
|
-
},
|
|
99
|
-
"examples": {
|
|
100
|
-
"exampleResponse": {
|
|
101
|
-
"value": {
|
|
102
|
-
"name": "UnauthorizedError",
|
|
103
|
-
"message": "component.error"
|
|
104
|
-
}
|
|
105
|
-
}
|
|
65
|
+
"$ref": "#/components/schemas/CreatedResponse"
|
|
106
66
|
}
|
|
107
67
|
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
112
|
-
"content": {
|
|
113
|
-
"application/json": {
|
|
68
|
+
},
|
|
69
|
+
"headers": {
|
|
70
|
+
"location": {
|
|
114
71
|
"schema": {
|
|
115
|
-
"
|
|
72
|
+
"type": "string"
|
|
116
73
|
},
|
|
117
|
-
"
|
|
118
|
-
"exampleResponse": {
|
|
119
|
-
"value": {
|
|
120
|
-
"name": "InternalServerError",
|
|
121
|
-
"message": "component.error"
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
74
|
+
"description": "e.g. blob-memory:c57d94b088f4c6d2cb32ded014813d0c786aa00134c8ee22f84b1e2545602a70"
|
|
125
75
|
}
|
|
126
76
|
}
|
|
127
77
|
}
|
|
@@ -166,15 +116,12 @@
|
|
|
166
116
|
}
|
|
167
117
|
},
|
|
168
118
|
{
|
|
169
|
-
"name": "
|
|
170
|
-
"description": "
|
|
119
|
+
"name": "limit",
|
|
120
|
+
"description": "Limit the number of entities to return.",
|
|
171
121
|
"in": "query",
|
|
172
122
|
"required": false,
|
|
173
123
|
"schema": {
|
|
174
|
-
"type":
|
|
175
|
-
"number",
|
|
176
|
-
"string"
|
|
177
|
-
]
|
|
124
|
+
"type": "string"
|
|
178
125
|
}
|
|
179
126
|
},
|
|
180
127
|
{
|
|
@@ -203,45 +150,11 @@
|
|
|
203
150
|
],
|
|
204
151
|
"responses": {
|
|
205
152
|
"200": {
|
|
206
|
-
"description": "
|
|
153
|
+
"description": "The resource you tried to access does not exist, see the content for more details.",
|
|
207
154
|
"content": {
|
|
208
155
|
"application/json": {
|
|
209
156
|
"schema": {
|
|
210
|
-
"$ref": "#/components/schemas/
|
|
211
|
-
},
|
|
212
|
-
"examples": {
|
|
213
|
-
"blobStorageListResponseExample": {
|
|
214
|
-
"value": {
|
|
215
|
-
"@context": [
|
|
216
|
-
"https://schema.org",
|
|
217
|
-
"https://schema.twindev.org/blob-storage/",
|
|
218
|
-
"https://schema.twindev.org/common/"
|
|
219
|
-
],
|
|
220
|
-
"type": "ItemList",
|
|
221
|
-
"itemListElement": [
|
|
222
|
-
{
|
|
223
|
-
"@context": [
|
|
224
|
-
"https://schema.twindev.org/blob-storage/",
|
|
225
|
-
"https://schema.twindev.org/common/",
|
|
226
|
-
"https://schema.org"
|
|
227
|
-
],
|
|
228
|
-
"type": "BlobStorageEntry",
|
|
229
|
-
"id": "blob-memory:c57d94b088f4c6d2cb32ded014813d0c786aa00134c8ee22f84b1e2545602a70",
|
|
230
|
-
"dateCreated": "2024-01-01T00:00:00Z",
|
|
231
|
-
"encodingFormat": "application/pdf",
|
|
232
|
-
"blobSize": 42,
|
|
233
|
-
"blobHash": "sha256:c57d94b088f4c6d2cb32ded014813d0c786aa00134c8ee22f84b1e2545602a70",
|
|
234
|
-
"fileExtension": "pdf",
|
|
235
|
-
"metadata": {
|
|
236
|
-
"@context": "https://schema.org",
|
|
237
|
-
"@type": "DigitalDocument",
|
|
238
|
-
"name": "myfile.pdf"
|
|
239
|
-
},
|
|
240
|
-
"blob": "VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIHRoZSBsYXp5IGRvZw=="
|
|
241
|
-
}
|
|
242
|
-
]
|
|
243
|
-
}
|
|
244
|
-
}
|
|
157
|
+
"$ref": "#/components/schemas/NotFoundResponse"
|
|
245
158
|
}
|
|
246
159
|
},
|
|
247
160
|
"application/ld+json": {
|
|
@@ -284,84 +197,6 @@
|
|
|
284
197
|
}
|
|
285
198
|
}
|
|
286
199
|
}
|
|
287
|
-
},
|
|
288
|
-
"400": {
|
|
289
|
-
"description": "The server cannot process the request, see the content for more details.",
|
|
290
|
-
"content": {
|
|
291
|
-
"application/json": {
|
|
292
|
-
"schema": {
|
|
293
|
-
"$ref": "#/components/schemas/Error"
|
|
294
|
-
},
|
|
295
|
-
"examples": {
|
|
296
|
-
"exampleResponse": {
|
|
297
|
-
"value": {
|
|
298
|
-
"name": "GeneralError",
|
|
299
|
-
"message": "component.error",
|
|
300
|
-
"properties": {
|
|
301
|
-
"foo": "bar"
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
},
|
|
309
|
-
"401": {
|
|
310
|
-
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
311
|
-
"content": {
|
|
312
|
-
"application/json": {
|
|
313
|
-
"schema": {
|
|
314
|
-
"$ref": "#/components/schemas/Error"
|
|
315
|
-
},
|
|
316
|
-
"examples": {
|
|
317
|
-
"exampleResponse": {
|
|
318
|
-
"value": {
|
|
319
|
-
"name": "UnauthorizedError",
|
|
320
|
-
"message": "component.error"
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
},
|
|
327
|
-
"404": {
|
|
328
|
-
"description": "The resource you tried to access does not exist, see the content for more details.",
|
|
329
|
-
"content": {
|
|
330
|
-
"application/json": {
|
|
331
|
-
"schema": {
|
|
332
|
-
"$ref": "#/components/schemas/NotFoundResponse"
|
|
333
|
-
},
|
|
334
|
-
"examples": {
|
|
335
|
-
"exampleResponse": {
|
|
336
|
-
"value": {
|
|
337
|
-
"name": "NotFoundError",
|
|
338
|
-
"message": "component.error",
|
|
339
|
-
"properties": {
|
|
340
|
-
"notFoundId": "1"
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
},
|
|
348
|
-
"500": {
|
|
349
|
-
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
350
|
-
"content": {
|
|
351
|
-
"application/json": {
|
|
352
|
-
"schema": {
|
|
353
|
-
"$ref": "#/components/schemas/Error"
|
|
354
|
-
},
|
|
355
|
-
"examples": {
|
|
356
|
-
"exampleResponse": {
|
|
357
|
-
"value": {
|
|
358
|
-
"name": "InternalServerError",
|
|
359
|
-
"message": "component.error"
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
200
|
}
|
|
366
201
|
}
|
|
367
202
|
}
|
|
@@ -436,35 +271,11 @@
|
|
|
436
271
|
],
|
|
437
272
|
"responses": {
|
|
438
273
|
"200": {
|
|
439
|
-
"description": "
|
|
274
|
+
"description": "The resource you tried to access does not exist, see the content for more details.",
|
|
440
275
|
"content": {
|
|
441
276
|
"application/json": {
|
|
442
277
|
"schema": {
|
|
443
|
-
"$ref": "#/components/schemas/
|
|
444
|
-
},
|
|
445
|
-
"examples": {
|
|
446
|
-
"blobStorageGetResponseExample": {
|
|
447
|
-
"value": {
|
|
448
|
-
"@context": [
|
|
449
|
-
"https://schema.twindev.org/blob-storage/",
|
|
450
|
-
"https://schema.twindev.org/common/",
|
|
451
|
-
"https://schema.org"
|
|
452
|
-
],
|
|
453
|
-
"type": "BlobStorageEntry",
|
|
454
|
-
"id": "blob-memory:c57d94b088f4c6d2cb32ded014813d0c786aa00134c8ee22f84b1e2545602a70",
|
|
455
|
-
"dateCreated": "2024-01-01T00:00:00Z",
|
|
456
|
-
"encodingFormat": "application/pdf",
|
|
457
|
-
"blobSize": 42,
|
|
458
|
-
"blobHash": "sha256:c57d94b088f4c6d2cb32ded014813d0c786aa00134c8ee22f84b1e2545602a70",
|
|
459
|
-
"fileExtension": "pdf",
|
|
460
|
-
"metadata": {
|
|
461
|
-
"@context": "https://schema.org",
|
|
462
|
-
"@type": "DigitalDocument",
|
|
463
|
-
"name": "myfile.pdf"
|
|
464
|
-
},
|
|
465
|
-
"blob": "VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIHRoZSBsYXp5IGRvZw=="
|
|
466
|
-
}
|
|
467
|
-
}
|
|
278
|
+
"$ref": "#/components/schemas/NotFoundResponse"
|
|
468
279
|
}
|
|
469
280
|
},
|
|
470
281
|
"application/ld+json": {
|
|
@@ -497,84 +308,6 @@
|
|
|
497
308
|
}
|
|
498
309
|
}
|
|
499
310
|
}
|
|
500
|
-
},
|
|
501
|
-
"400": {
|
|
502
|
-
"description": "The server cannot process the request, see the content for more details.",
|
|
503
|
-
"content": {
|
|
504
|
-
"application/json": {
|
|
505
|
-
"schema": {
|
|
506
|
-
"$ref": "#/components/schemas/Error"
|
|
507
|
-
},
|
|
508
|
-
"examples": {
|
|
509
|
-
"exampleResponse": {
|
|
510
|
-
"value": {
|
|
511
|
-
"name": "GeneralError",
|
|
512
|
-
"message": "component.error",
|
|
513
|
-
"properties": {
|
|
514
|
-
"foo": "bar"
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
},
|
|
522
|
-
"401": {
|
|
523
|
-
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
524
|
-
"content": {
|
|
525
|
-
"application/json": {
|
|
526
|
-
"schema": {
|
|
527
|
-
"$ref": "#/components/schemas/Error"
|
|
528
|
-
},
|
|
529
|
-
"examples": {
|
|
530
|
-
"exampleResponse": {
|
|
531
|
-
"value": {
|
|
532
|
-
"name": "UnauthorizedError",
|
|
533
|
-
"message": "component.error"
|
|
534
|
-
}
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
},
|
|
540
|
-
"404": {
|
|
541
|
-
"description": "The resource you tried to access does not exist, see the content for more details.",
|
|
542
|
-
"content": {
|
|
543
|
-
"application/json": {
|
|
544
|
-
"schema": {
|
|
545
|
-
"$ref": "#/components/schemas/NotFoundResponse"
|
|
546
|
-
},
|
|
547
|
-
"examples": {
|
|
548
|
-
"exampleResponse": {
|
|
549
|
-
"value": {
|
|
550
|
-
"name": "NotFoundError",
|
|
551
|
-
"message": "component.error",
|
|
552
|
-
"properties": {
|
|
553
|
-
"notFoundId": "1"
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
},
|
|
561
|
-
"500": {
|
|
562
|
-
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
563
|
-
"content": {
|
|
564
|
-
"application/json": {
|
|
565
|
-
"schema": {
|
|
566
|
-
"$ref": "#/components/schemas/Error"
|
|
567
|
-
},
|
|
568
|
-
"examples": {
|
|
569
|
-
"exampleResponse": {
|
|
570
|
-
"value": {
|
|
571
|
-
"name": "InternalServerError",
|
|
572
|
-
"message": "component.error"
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
311
|
}
|
|
579
312
|
}
|
|
580
313
|
},
|
|
@@ -625,62 +358,12 @@
|
|
|
625
358
|
}
|
|
626
359
|
},
|
|
627
360
|
"responses": {
|
|
628
|
-
"
|
|
629
|
-
"description": "The rest request ended in success with no data."
|
|
630
|
-
},
|
|
631
|
-
"400": {
|
|
632
|
-
"description": "The server cannot process the request, see the content for more details.",
|
|
633
|
-
"content": {
|
|
634
|
-
"application/json": {
|
|
635
|
-
"schema": {
|
|
636
|
-
"$ref": "#/components/schemas/Error"
|
|
637
|
-
},
|
|
638
|
-
"examples": {
|
|
639
|
-
"exampleResponse": {
|
|
640
|
-
"value": {
|
|
641
|
-
"name": "GeneralError",
|
|
642
|
-
"message": "component.error",
|
|
643
|
-
"properties": {
|
|
644
|
-
"foo": "bar"
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
},
|
|
652
|
-
"401": {
|
|
653
|
-
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
654
|
-
"content": {
|
|
655
|
-
"application/json": {
|
|
656
|
-
"schema": {
|
|
657
|
-
"$ref": "#/components/schemas/Error"
|
|
658
|
-
},
|
|
659
|
-
"examples": {
|
|
660
|
-
"exampleResponse": {
|
|
661
|
-
"value": {
|
|
662
|
-
"name": "UnauthorizedError",
|
|
663
|
-
"message": "component.error"
|
|
664
|
-
}
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
},
|
|
670
|
-
"500": {
|
|
671
|
-
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
361
|
+
"200": {
|
|
362
|
+
"description": "The rest request ended in success with no data.",
|
|
672
363
|
"content": {
|
|
673
|
-
"
|
|
364
|
+
"text/plain": {
|
|
674
365
|
"schema": {
|
|
675
|
-
"$ref": "#/components/schemas/
|
|
676
|
-
},
|
|
677
|
-
"examples": {
|
|
678
|
-
"exampleResponse": {
|
|
679
|
-
"value": {
|
|
680
|
-
"name": "InternalServerError",
|
|
681
|
-
"message": "component.error"
|
|
682
|
-
}
|
|
683
|
-
}
|
|
366
|
+
"$ref": "#/components/schemas/NoContentResponse"
|
|
684
367
|
}
|
|
685
368
|
}
|
|
686
369
|
}
|
|
@@ -712,83 +395,17 @@
|
|
|
712
395
|
}
|
|
713
396
|
],
|
|
714
397
|
"responses": {
|
|
715
|
-
"
|
|
716
|
-
"description": "The rest request ended in success with no data."
|
|
717
|
-
},
|
|
718
|
-
"400": {
|
|
719
|
-
"description": "The server cannot process the request, see the content for more details.",
|
|
720
|
-
"content": {
|
|
721
|
-
"application/json": {
|
|
722
|
-
"schema": {
|
|
723
|
-
"$ref": "#/components/schemas/Error"
|
|
724
|
-
},
|
|
725
|
-
"examples": {
|
|
726
|
-
"exampleResponse": {
|
|
727
|
-
"value": {
|
|
728
|
-
"name": "GeneralError",
|
|
729
|
-
"message": "component.error",
|
|
730
|
-
"properties": {
|
|
731
|
-
"foo": "bar"
|
|
732
|
-
}
|
|
733
|
-
}
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
}
|
|
738
|
-
},
|
|
739
|
-
"401": {
|
|
740
|
-
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
741
|
-
"content": {
|
|
742
|
-
"application/json": {
|
|
743
|
-
"schema": {
|
|
744
|
-
"$ref": "#/components/schemas/Error"
|
|
745
|
-
},
|
|
746
|
-
"examples": {
|
|
747
|
-
"exampleResponse": {
|
|
748
|
-
"value": {
|
|
749
|
-
"name": "UnauthorizedError",
|
|
750
|
-
"message": "component.error"
|
|
751
|
-
}
|
|
752
|
-
}
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
}
|
|
756
|
-
},
|
|
757
|
-
"404": {
|
|
398
|
+
"200": {
|
|
758
399
|
"description": "The resource you tried to access does not exist, see the content for more details.",
|
|
759
400
|
"content": {
|
|
760
|
-
"
|
|
401
|
+
"text/plain": {
|
|
761
402
|
"schema": {
|
|
762
|
-
"$ref": "#/components/schemas/
|
|
763
|
-
},
|
|
764
|
-
"examples": {
|
|
765
|
-
"exampleResponse": {
|
|
766
|
-
"value": {
|
|
767
|
-
"name": "NotFoundError",
|
|
768
|
-
"message": "component.error",
|
|
769
|
-
"properties": {
|
|
770
|
-
"notFoundId": "1"
|
|
771
|
-
}
|
|
772
|
-
}
|
|
773
|
-
}
|
|
403
|
+
"$ref": "#/components/schemas/NoContentResponse"
|
|
774
404
|
}
|
|
775
|
-
}
|
|
776
|
-
}
|
|
777
|
-
},
|
|
778
|
-
"500": {
|
|
779
|
-
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
780
|
-
"content": {
|
|
405
|
+
},
|
|
781
406
|
"application/json": {
|
|
782
407
|
"schema": {
|
|
783
|
-
"$ref": "#/components/schemas/
|
|
784
|
-
},
|
|
785
|
-
"examples": {
|
|
786
|
-
"exampleResponse": {
|
|
787
|
-
"value": {
|
|
788
|
-
"name": "InternalServerError",
|
|
789
|
-
"message": "component.error"
|
|
790
|
-
}
|
|
791
|
-
}
|
|
408
|
+
"$ref": "#/components/schemas/NotFoundResponse"
|
|
792
409
|
}
|
|
793
410
|
}
|
|
794
411
|
}
|
|
@@ -823,7 +440,7 @@
|
|
|
823
440
|
],
|
|
824
441
|
"responses": {
|
|
825
442
|
"200": {
|
|
826
|
-
"description": "The
|
|
443
|
+
"description": "The resource you tried to access does not exist, see the content for more details.",
|
|
827
444
|
"content": {
|
|
828
445
|
"application/octet-stream": {
|
|
829
446
|
"schema": {
|
|
@@ -836,83 +453,10 @@
|
|
|
836
453
|
"value": ""
|
|
837
454
|
}
|
|
838
455
|
}
|
|
839
|
-
}
|
|
840
|
-
}
|
|
841
|
-
},
|
|
842
|
-
"400": {
|
|
843
|
-
"description": "The server cannot process the request, see the content for more details.",
|
|
844
|
-
"content": {
|
|
845
|
-
"application/json": {
|
|
846
|
-
"schema": {
|
|
847
|
-
"$ref": "#/components/schemas/Error"
|
|
848
|
-
},
|
|
849
|
-
"examples": {
|
|
850
|
-
"exampleResponse": {
|
|
851
|
-
"value": {
|
|
852
|
-
"name": "GeneralError",
|
|
853
|
-
"message": "component.error",
|
|
854
|
-
"properties": {
|
|
855
|
-
"foo": "bar"
|
|
856
|
-
}
|
|
857
|
-
}
|
|
858
|
-
}
|
|
859
|
-
}
|
|
860
|
-
}
|
|
861
|
-
}
|
|
862
|
-
},
|
|
863
|
-
"401": {
|
|
864
|
-
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
865
|
-
"content": {
|
|
866
|
-
"application/json": {
|
|
867
|
-
"schema": {
|
|
868
|
-
"$ref": "#/components/schemas/Error"
|
|
869
|
-
},
|
|
870
|
-
"examples": {
|
|
871
|
-
"exampleResponse": {
|
|
872
|
-
"value": {
|
|
873
|
-
"name": "UnauthorizedError",
|
|
874
|
-
"message": "component.error"
|
|
875
|
-
}
|
|
876
|
-
}
|
|
877
|
-
}
|
|
878
|
-
}
|
|
879
|
-
}
|
|
880
|
-
},
|
|
881
|
-
"404": {
|
|
882
|
-
"description": "The resource you tried to access does not exist, see the content for more details.",
|
|
883
|
-
"content": {
|
|
456
|
+
},
|
|
884
457
|
"application/json": {
|
|
885
458
|
"schema": {
|
|
886
459
|
"$ref": "#/components/schemas/NotFoundResponse"
|
|
887
|
-
},
|
|
888
|
-
"examples": {
|
|
889
|
-
"exampleResponse": {
|
|
890
|
-
"value": {
|
|
891
|
-
"name": "NotFoundError",
|
|
892
|
-
"message": "component.error",
|
|
893
|
-
"properties": {
|
|
894
|
-
"notFoundId": "1"
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
}
|
|
898
|
-
}
|
|
899
|
-
}
|
|
900
|
-
}
|
|
901
|
-
},
|
|
902
|
-
"500": {
|
|
903
|
-
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
904
|
-
"content": {
|
|
905
|
-
"application/json": {
|
|
906
|
-
"schema": {
|
|
907
|
-
"$ref": "#/components/schemas/Error"
|
|
908
|
-
},
|
|
909
|
-
"examples": {
|
|
910
|
-
"exampleResponse": {
|
|
911
|
-
"value": {
|
|
912
|
-
"name": "InternalServerError",
|
|
913
|
-
"message": "component.error"
|
|
914
|
-
}
|
|
915
|
-
}
|
|
916
460
|
}
|
|
917
461
|
}
|
|
918
462
|
}
|
|
@@ -986,9 +530,6 @@
|
|
|
986
530
|
"@context": {
|
|
987
531
|
"type": "array",
|
|
988
532
|
"minItems": 2,
|
|
989
|
-
"items": {
|
|
990
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
991
|
-
},
|
|
992
533
|
"description": "JSON-LD Context.",
|
|
993
534
|
"prefixItems": [
|
|
994
535
|
{
|
|
@@ -999,7 +540,10 @@
|
|
|
999
540
|
"type": "string",
|
|
1000
541
|
"const": "https://schema.twindev.org/common/"
|
|
1001
542
|
}
|
|
1002
|
-
]
|
|
543
|
+
],
|
|
544
|
+
"items": {
|
|
545
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
546
|
+
}
|
|
1003
547
|
},
|
|
1004
548
|
"type": {
|
|
1005
549
|
"type": "string",
|
|
@@ -1066,9 +610,6 @@
|
|
|
1066
610
|
"@context": {
|
|
1067
611
|
"type": "array",
|
|
1068
612
|
"minItems": 3,
|
|
1069
|
-
"items": {
|
|
1070
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
1071
|
-
},
|
|
1072
613
|
"description": "JSON-LD Context.",
|
|
1073
614
|
"prefixItems": [
|
|
1074
615
|
{
|
|
@@ -1083,7 +624,10 @@
|
|
|
1083
624
|
"type": "string",
|
|
1084
625
|
"const": "https://schema.twindev.org/common/"
|
|
1085
626
|
}
|
|
1086
|
-
]
|
|
627
|
+
],
|
|
628
|
+
"items": {
|
|
629
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
630
|
+
}
|
|
1087
631
|
},
|
|
1088
632
|
"type": {
|
|
1089
633
|
"type": "string",
|
|
@@ -1092,13 +636,10 @@
|
|
|
1092
636
|
},
|
|
1093
637
|
"itemListElement": {
|
|
1094
638
|
"type": "array",
|
|
1095
|
-
"items":
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
"$ref": "#/components/schemas/BlobStorageEntry"
|
|
1100
|
-
}
|
|
1101
|
-
]
|
|
639
|
+
"items": {
|
|
640
|
+
"$ref": "#/components/schemas/BlobStorageEntry"
|
|
641
|
+
},
|
|
642
|
+
"description": "The list of entries."
|
|
1102
643
|
},
|
|
1103
644
|
"nextItem": {
|
|
1104
645
|
"type": "string",
|