|
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 | } |
|
271 | 271 | "application/json": {} |
272 | 272 | } |
273 | 273 | }, |
274 | | - "401": { "$ref": "#/components/responses/401-unauthorized" }, |
| 274 | + "401": { |
| 275 | + "$ref": "#/components/responses/401-unauthorized" |
| 276 | + }, |
275 | 277 | "404": { |
276 | 278 | "$ref": "#/components/responses/404-object-by-id-not-found" |
277 | 279 | } |
|
353 | 355 | "application/json": {} |
354 | 356 | } |
355 | 357 | }, |
356 | | - "401": { "$ref": "#/components/responses/401-unauthorized" }, |
| 358 | + "401": { |
| 359 | + "$ref": "#/components/responses/401-unauthorized" |
| 360 | + }, |
357 | 361 | "404": { |
358 | 362 | "$ref": "#/components/responses/404-object-by-id-not-found" |
359 | 363 | } |
|
450 | 454 | "application/json": {} |
451 | 455 | } |
452 | 456 | }, |
453 | | - "401": { "$ref": "#/components/responses/401-unauthorized" }, |
| 457 | + "200": { |
| 458 | + "description": "New response", |
| 459 | + "content": { |
| 460 | + "application/json": { |
| 461 | + "schema": { |
| 462 | + "": "" |
| 463 | + } |
| 464 | + } |
| 465 | + } |
| 466 | + }, |
| 467 | + "401": { |
| 468 | + "$ref": "#/components/responses/401-unauthorized" |
| 469 | + }, |
454 | 470 | "404": { |
455 | 471 | "$ref": "#/components/responses/404-object-by-id-not-found" |
456 | 472 | } |
|
657 | 673 | "application/json": {} |
658 | 674 | } |
659 | 675 | }, |
660 | | - "401": { "$ref": "#/components/responses/401-unauthorized" }, |
| 676 | + "401": { |
| 677 | + "$ref": "#/components/responses/401-unauthorized" |
| 678 | + }, |
661 | 679 | "404": { |
662 | 680 | "$ref": "#/components/responses/404-object-by-id-not-found" |
663 | 681 | } |
|
841 | 859 | "application/json": {} |
842 | 860 | } |
843 | 861 | }, |
844 | | - "401": { "$ref": "#/components/responses/401-unauthorized" }, |
| 862 | + "401": { |
| 863 | + "$ref": "#/components/responses/401-unauthorized" |
| 864 | + }, |
845 | 865 | "404": { |
846 | 866 | "$ref": "#/components/responses/404-object-by-id-not-found" |
847 | 867 | } |
|
902 | 922 | }, |
903 | 923 | "base_versioned_product": { |
904 | 924 | "allOf": [ |
905 | | - { "$ref": "#/components/schemas/base_product_fields" }, |
| 925 | + { |
| 926 | + "$ref": "#/components/schemas/base_product_fields" |
| 927 | + }, |
906 | 928 | { |
907 | 929 | "type": "object", |
908 | 930 | "properties": { |
|
960 | 982 | } |
961 | 983 | } |
962 | 984 | }, |
| 985 | + "page": { |
| 986 | + "type": "object", |
| 987 | + "properties": { |
| 988 | + "number": { |
| 989 | + "type": "integer" |
| 990 | + }, |
| 991 | + "size": { |
| 992 | + "type": "integer" |
| 993 | + }, |
| 994 | + "totalPages": { |
| 995 | + "type": "integer" |
| 996 | + } |
| 997 | + } |
| 998 | + }, |
| 999 | + "paginated_product_list": { |
| 1000 | + "type": "object", |
| 1001 | + "allOf": [ |
| 1002 | + { |
| 1003 | + "$ref": "#/components/schemas/page" |
| 1004 | + }, |
| 1005 | + { |
| 1006 | + "type": "object", |
| 1007 | + "properties": { |
| 1008 | + "content": { |
| 1009 | + "type": "array", |
| 1010 | + "items": { |
| 1011 | + "$ref": "#/components/schemas/tea_product" |
| 1012 | + } |
| 1013 | + } |
| 1014 | + } |
| 1015 | + } |
| 1016 | + ] |
| 1017 | + }, |
963 | 1018 | "tea_product": { |
964 | 1019 | "allOf": [ |
965 | | - { "$ref": "#/components/schemas/base_product_fields" }, |
| 1020 | + { |
| 1021 | + "$ref": "#/components/schemas/base_product_fields" |
| 1022 | + }, |
966 | 1023 | { |
967 | 1024 | "type": "object", |
968 | 1025 | "properties": { |
|
977 | 1034 | "description": "Array of UUIDs referencing TEA Leaf entries" |
978 | 1035 | } |
979 | 1036 | }, |
980 | | - "required": ["identifier", "product_name"] |
| 1037 | + "required": [ |
| 1038 | + "identifier", |
| 1039 | + "product_name" |
| 1040 | + ] |
981 | 1041 | } |
982 | 1042 | ] |
983 | 1043 | }, |
984 | 1044 | "tea_leaf": { |
985 | 1045 | "allOf": [ |
986 | | - { "$ref": "#/components/schemas/base_versioned_product" }, |
| 1046 | + { |
| 1047 | + "$ref": "#/components/schemas/base_versioned_product" |
| 1048 | + }, |
987 | 1049 | { |
988 | 1050 | "type": "object", |
989 | 1051 | "properties": { |
|
1304 | 1366 | "format": "uuid" |
1305 | 1367 | } |
1306 | 1368 | }, |
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 | 1369 | "parameters": { |
1333 | 1370 | "page-offset": { |
1334 | 1371 | "name": "page-offset", |
|
1423 | 1460 | "schema": { |
1424 | 1461 | "$ref": "#/components/schemas/type_uuid" |
1425 | 1462 | } |
| 1463 | + }, |
| 1464 | + "standard_pagination": { |
| 1465 | + "page_offset": { |
| 1466 | + "$ref": "#/components/parameters/page-offset" |
| 1467 | + }, |
| 1468 | + "page_size": { |
| 1469 | + "$ref": "#/components/parameters/page-size" |
| 1470 | + } |
1426 | 1471 | } |
1427 | 1472 | }, |
1428 | 1473 | "securitySchemes": { |
|
1446 | 1491 | ] |
1447 | 1492 | }, |
1448 | 1493 | "responses": { |
| 1494 | + "base_error": { |
| 1495 | + "type": "object", |
| 1496 | + "properties": { |
| 1497 | + "error": { |
| 1498 | + "type": "string" |
| 1499 | + }, |
| 1500 | + "message": { |
| 1501 | + "type": "string" |
| 1502 | + } |
| 1503 | + } |
| 1504 | + }, |
| 1505 | + "404-object-by-id-not-found": { |
| 1506 | + "description": "Object requested by identifier not found", |
| 1507 | + "content": { |
| 1508 | + "application/json": {} |
| 1509 | + } |
| 1510 | + }, |
| 1511 | + "401-unauthorized": { |
| 1512 | + "description": "Authentication required", |
| 1513 | + "content": { |
| 1514 | + "application/json": {} |
| 1515 | + } |
| 1516 | + }, |
1449 | 1517 | "standard_errors": { |
1450 | 1518 | "400": { |
1451 | 1519 | "description": "Invalid request body", |
|
1466 | 1534 | } |
1467 | 1535 | } |
1468 | 1536 | }, |
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 | 1537 | "operations": { |
1480 | 1538 | "standard_delete": { |
1481 | 1539 | "responses": { |
|
0 commit comments