|
43 | 43 | } |
44 | 44 | } |
45 | 45 | }, |
46 | | - |
47 | 46 | "404": { |
48 | 47 | "$ref": "#/components/responses/404-object-by-id-not-found" |
49 | 48 | } |
50 | | - |
51 | 49 | }, |
52 | 50 | "tags": [ |
53 | 51 | "TEA Product" |
|
121 | 119 | "application/json": {} |
122 | 120 | } |
123 | 121 | }, |
124 | | - "401": { "$ref": "#/components/responses/401-unauthorized" }, |
| 122 | + "401": { |
| 123 | + "$ref": "#/components/responses/401-unauthorized" |
| 124 | + }, |
125 | 125 | "404": { |
126 | 126 | "$ref": "#/components/responses/404-object-by-id-not-found" |
127 | 127 | } |
|
146 | 146 | "$ref": "#/components/parameters/tea_product_identifier" |
147 | 147 | } |
148 | 148 | ], |
149 | | - "$ref": "#/components/operations/standard_delete", |
| 149 | + "responses": { |
| 150 | + "204": { |
| 151 | + "description": "Resource successfully deleted" |
| 152 | + } |
| 153 | + }, |
| 154 | + "security": [ |
| 155 | + { |
| 156 | + "bearerAuth": [] |
| 157 | + }, |
| 158 | + { |
| 159 | + "basicAuth": [] |
| 160 | + } |
| 161 | + ], |
150 | 162 | "tags": [ |
151 | 163 | "TEA Product" |
152 | 164 | ] |
|
158 | 170 | "operationId": "listTeaProducts", |
159 | 171 | "parameters": [ |
160 | 172 | { |
161 | | - "$ref": "#/components/parameters/standard_pagination" |
| 173 | + "$ref": "#/components/parameters/page-offset" |
| 174 | + }, |
| 175 | + { |
| 176 | + "$ref": "#/components/parameters/page-size" |
162 | 177 | } |
163 | 178 | ], |
164 | 179 | "responses": { |
|
172 | 187 | } |
173 | 188 | } |
174 | 189 | }, |
175 | | - "$ref": "#/components/responses/standard_errors" |
| 190 | + "400": { |
| 191 | + "description": "Invalid request body", |
| 192 | + "content": { |
| 193 | + "application/json": {} |
| 194 | + } |
| 195 | + }, |
| 196 | + "401": { |
| 197 | + "$ref": "#/components/responses/401-unauthorized" |
| 198 | + }, |
| 199 | + "404": { |
| 200 | + "$ref": "#/components/responses/404-object-by-id-not-found" |
| 201 | + } |
176 | 202 | } |
177 | 203 | }, |
178 | 204 | "post": { |
|
271 | 297 | "application/json": {} |
272 | 298 | } |
273 | 299 | }, |
274 | | - "401": { "$ref": "#/components/responses/401-unauthorized" }, |
| 300 | + "401": { |
| 301 | + "$ref": "#/components/responses/401-unauthorized" |
| 302 | + }, |
275 | 303 | "404": { |
276 | 304 | "$ref": "#/components/responses/404-object-by-id-not-found" |
277 | 305 | } |
|
353 | 381 | "application/json": {} |
354 | 382 | } |
355 | 383 | }, |
356 | | - "401": { "$ref": "#/components/responses/401-unauthorized" }, |
| 384 | + "401": { |
| 385 | + "$ref": "#/components/responses/401-unauthorized" |
| 386 | + }, |
357 | 387 | "404": { |
358 | 388 | "$ref": "#/components/responses/404-object-by-id-not-found" |
359 | 389 | } |
|
450 | 480 | "application/json": {} |
451 | 481 | } |
452 | 482 | }, |
453 | | - "401": { "$ref": "#/components/responses/401-unauthorized" }, |
| 483 | + "401": { |
| 484 | + "$ref": "#/components/responses/401-unauthorized" |
| 485 | + }, |
454 | 486 | "404": { |
455 | 487 | "$ref": "#/components/responses/404-object-by-id-not-found" |
456 | 488 | } |
|
475 | 507 | "$ref": "#/components/parameters/tea_leaf_identifier" |
476 | 508 | } |
477 | 509 | ], |
478 | | - "$ref": "#/components/operations/standard_delete", |
| 510 | + "responses": { |
| 511 | + "204": { |
| 512 | + "description": "Resource successfully deleted" |
| 513 | + } |
| 514 | + }, |
| 515 | + "security": [ |
| 516 | + { |
| 517 | + "bearerAuth": [] |
| 518 | + }, |
| 519 | + { |
| 520 | + "basicAuth": [] |
| 521 | + } |
| 522 | + ], |
479 | 523 | "tags": [ |
480 | 524 | "TEA Leaf" |
481 | 525 | ] |
|
657 | 701 | "application/json": {} |
658 | 702 | } |
659 | 703 | }, |
660 | | - "401": { "$ref": "#/components/responses/401-unauthorized" }, |
| 704 | + "401": { |
| 705 | + "$ref": "#/components/responses/401-unauthorized" |
| 706 | + }, |
661 | 707 | "404": { |
662 | 708 | "$ref": "#/components/responses/404-object-by-id-not-found" |
663 | 709 | } |
|
841 | 887 | "application/json": {} |
842 | 888 | } |
843 | 889 | }, |
844 | | - "401": { "$ref": "#/components/responses/401-unauthorized" }, |
| 890 | + "401": { |
| 891 | + "$ref": "#/components/responses/401-unauthorized" |
| 892 | + }, |
845 | 893 | "404": { |
846 | 894 | "$ref": "#/components/responses/404-object-by-id-not-found" |
847 | 895 | } |
|
866 | 914 | "$ref": "#/components/parameters/tea_collection_identifier" |
867 | 915 | } |
868 | 916 | ], |
869 | | - "$ref": "#/components/operations/standard_delete", |
| 917 | + "security": [ |
| 918 | + { |
| 919 | + "bearerAuth": [] |
| 920 | + }, |
| 921 | + { |
| 922 | + "basicAuth": [] |
| 923 | + } |
| 924 | + ], |
| 925 | + "responses": { |
| 926 | + "204": { |
| 927 | + "description": "Resource successfully deleted" |
| 928 | + } |
| 929 | + }, |
870 | 930 | "tags": [ |
871 | 931 | "TEA Collection" |
872 | 932 | ] |
873 | 933 | } |
874 | 934 | } |
875 | 935 | }, |
876 | | - "webhooks": {}, |
877 | 936 | "components": { |
878 | 937 | "schemas": { |
879 | 938 | "base_product_fields": { |
|
902 | 961 | }, |
903 | 962 | "base_versioned_product": { |
904 | 963 | "allOf": [ |
905 | | - { "$ref": "#/components/schemas/base_product_fields" }, |
| 964 | + { |
| 965 | + "$ref": "#/components/schemas/base_product_fields" |
| 966 | + }, |
906 | 967 | { |
907 | 968 | "type": "object", |
908 | 969 | "properties": { |
|
918 | 979 | } |
919 | 980 | ] |
920 | 981 | }, |
921 | | - "base_artifact_object": { |
| 982 | + "paginated_product_list": { |
922 | 983 | "type": "object", |
923 | | - "properties": { |
924 | | - "identifier": { |
925 | | - "$ref": "#/components/schemas/type_uuid" |
926 | | - }, |
927 | | - "description": { |
928 | | - "type": "string" |
929 | | - }, |
930 | | - "mime_type": { |
931 | | - "type": "string" |
932 | | - }, |
933 | | - "artifact_url": { |
934 | | - "type": "string", |
935 | | - "format": "uri" |
936 | | - }, |
937 | | - "artifact_size_in_bytes": { |
938 | | - "type": "integer", |
939 | | - "format": "int64" |
940 | | - }, |
941 | | - "artifact_checksum": { |
942 | | - "type": "string", |
943 | | - "description": "The checksum value" |
| 984 | + "allOf": [ |
| 985 | + { |
| 986 | + "$ref": "#/components/schemas/type_pagination_details" |
944 | 987 | }, |
945 | | - "artifact_checksum_type": { |
946 | | - "type": "string", |
947 | | - "description": "The algorithm used to generate the checksum", |
948 | | - "enum": [ |
949 | | - "SHA512", |
950 | | - "SHA384", |
951 | | - "SHA256", |
952 | | - "SHA224", |
953 | | - "SHA1", |
954 | | - "MD5", |
955 | | - "BLAKE2b-512", |
956 | | - "BLAKE2s-256", |
957 | | - "BLAKE3" |
958 | | - ], |
959 | | - "default": "SHA256" |
| 988 | + { |
| 989 | + "type": "object", |
| 990 | + "properties": { |
| 991 | + "content": { |
| 992 | + "type": "array", |
| 993 | + "items": { |
| 994 | + "$ref": "#/components/schemas/tea_product" |
| 995 | + } |
| 996 | + } |
| 997 | + } |
960 | 998 | } |
961 | | - } |
| 999 | + ] |
962 | 1000 | }, |
963 | 1001 | "tea_product": { |
964 | 1002 | "allOf": [ |
965 | | - { "$ref": "#/components/schemas/base_product_fields" }, |
| 1003 | + { |
| 1004 | + "$ref": "#/components/schemas/base_product_fields" |
| 1005 | + }, |
966 | 1006 | { |
967 | 1007 | "type": "object", |
968 | 1008 | "properties": { |
|
977 | 1017 | "description": "Array of UUIDs referencing TEA Leaf entries" |
978 | 1018 | } |
979 | 1019 | }, |
980 | | - "required": ["identifier", "product_name"] |
| 1020 | + "required": [ |
| 1021 | + "identifier", |
| 1022 | + "product_name" |
| 1023 | + ] |
981 | 1024 | } |
982 | 1025 | ] |
983 | 1026 | }, |
984 | 1027 | "tea_leaf": { |
985 | 1028 | "allOf": [ |
986 | | - { "$ref": "#/components/schemas/base_versioned_product" }, |
| 1029 | + { |
| 1030 | + "$ref": "#/components/schemas/base_versioned_product" |
| 1031 | + }, |
987 | 1032 | { |
988 | 1033 | "type": "object", |
989 | 1034 | "properties": { |
|
1304 | 1349 | "format": "uuid" |
1305 | 1350 | } |
1306 | 1351 | }, |
1307 | | - "responses": { |
1308 | | - "base_error": { |
1309 | | - "type": "object", |
1310 | | - "properties": { |
1311 | | - "error": { |
1312 | | - "type": "string" |
1313 | | - }, |
1314 | | - "message": { |
1315 | | - "type": "string" |
1316 | | - } |
1317 | | - } |
1318 | | - }, |
1319 | | - "404-object-by-id-not-found": { |
1320 | | - "description": "Object requested by identifier not found", |
1321 | | - "content": { |
1322 | | - "application/json": {} |
1323 | | - } |
1324 | | - }, |
1325 | | - "401-unauthorized": { |
1326 | | - "description": "Authentication required", |
1327 | | - "content": { |
1328 | | - "application/json": {} |
1329 | | - } |
1330 | | - } |
1331 | | - }, |
1332 | 1352 | "parameters": { |
1333 | 1353 | "page-offset": { |
1334 | 1354 | "name": "page-offset", |
|
1435 | 1455 | "scheme": "basic" |
1436 | 1456 | } |
1437 | 1457 | }, |
1438 | | - "security_requirements": { |
1439 | | - "standard_auth": [ |
1440 | | - { |
1441 | | - "bearerAuth": [] |
1442 | | - }, |
1443 | | - { |
1444 | | - "basicAuth": [] |
1445 | | - } |
1446 | | - ] |
1447 | | - }, |
1448 | 1458 | "responses": { |
1449 | | - "standard_errors": { |
1450 | | - "400": { |
1451 | | - "description": "Invalid request body", |
1452 | | - "content": { |
1453 | | - "application/json": {} |
1454 | | - } |
1455 | | - }, |
1456 | | - "401": { |
1457 | | - "$ref": "#/components/responses/401-unauthorized" |
1458 | | - }, |
1459 | | - "404": { |
1460 | | - "$ref": "#/components/responses/404-object-by-id-not-found" |
| 1459 | + "404-object-by-id-not-found": { |
| 1460 | + "description": "Object requested by identifier not found", |
| 1461 | + "content": { |
| 1462 | + "application/json": {} |
1461 | 1463 | } |
1462 | 1464 | }, |
1463 | | - "standard_delete": { |
1464 | | - "204": { |
1465 | | - "description": "Resource successfully deleted" |
1466 | | - } |
1467 | | - } |
1468 | | - }, |
1469 | | - "parameters": { |
1470 | | - "standard_pagination": { |
1471 | | - "page_offset": { |
1472 | | - "$ref": "#/components/parameters/page-offset" |
1473 | | - }, |
1474 | | - "page_size": { |
1475 | | - "$ref": "#/components/parameters/page-size" |
1476 | | - } |
1477 | | - } |
1478 | | - }, |
1479 | | - "operations": { |
1480 | | - "standard_delete": { |
1481 | | - "responses": { |
1482 | | - "$ref": "#/components/responses/standard_delete" |
1483 | | - }, |
1484 | | - "security": { |
1485 | | - "$ref": "#/components/security_requirements/standard_auth" |
| 1465 | + "401-unauthorized": { |
| 1466 | + "description": "Authentication required", |
| 1467 | + "content": { |
| 1468 | + "application/json": {} |
1486 | 1469 | } |
1487 | 1470 | } |
1488 | 1471 | } |
|
0 commit comments