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: