From 90e701b41182d054a1c7cb32d34193e40187e3d0 Mon Sep 17 00:00:00 2001 From: bymyself Date: Sat, 19 Jul 2025 18:15:59 -0700 Subject: [PATCH] Fix more duplicate content blocks (upload and view endpoints) - Fixed duplicate content in /api/object_info/{node_class} GET - Fixed duplicate content in /api/upload/image POST - Fixed duplicate content in /api/upload/mask POST - Fixed duplicate content in /api/view GET - Moved response schemas to appropriate status codes --- openapi.yaml | 49 ++++++++++++++++++++++++------------------------- 1 file changed, 24 insertions(+), 25 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index 8214dc700..5a91951dd 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -292,18 +292,18 @@ paths: responses: '200': description: Success - '500': - description: Internal server error - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorResponse' content: application/json: schema: type: object additionalProperties: $ref: '#/components/schemas/NodeInfo' + '500': + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' /api/upload/image: post: tags: @@ -345,18 +345,18 @@ paths: responses: '200': description: Success - '500': - description: Internal server error - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorResponse' content: application/json: schema: $ref: '#/components/schemas/UploadResponse' '400': description: Bad request + '500': + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' /api/upload/mask: post: tags: @@ -384,19 +384,18 @@ paths: responses: '200': description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/UploadResponse' + '400': + description: Bad request '500': description: Internal server error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' - content: - application/json: - schema: - type: object - $ref: '#/components/schemas/UploadResponse' - '400': - description: Bad request /api/view: get: tags: @@ -448,12 +447,6 @@ paths: responses: '200': description: Success - '500': - description: Internal server error - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorResponse' content: image/*: schema: @@ -463,6 +456,12 @@ paths: description: Bad request '404': description: File not found + '500': + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' /api/view_metadata/{folder_name}: get: tags: