mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-07-31 02:06:45 +00:00
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
This commit is contained in:
parent
90d6b88739
commit
90e701b411
49
openapi.yaml
49
openapi.yaml
@ -292,18 +292,18 @@ paths:
|
|||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: Success
|
description: Success
|
||||||
'500':
|
|
||||||
description: Internal server error
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: '#/components/schemas/ErrorResponse'
|
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
$ref: '#/components/schemas/NodeInfo'
|
$ref: '#/components/schemas/NodeInfo'
|
||||||
|
'500':
|
||||||
|
description: Internal server error
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ErrorResponse'
|
||||||
/api/upload/image:
|
/api/upload/image:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
@ -345,18 +345,18 @@ paths:
|
|||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: Success
|
description: Success
|
||||||
'500':
|
|
||||||
description: Internal server error
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: '#/components/schemas/ErrorResponse'
|
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/UploadResponse'
|
$ref: '#/components/schemas/UploadResponse'
|
||||||
'400':
|
'400':
|
||||||
description: Bad request
|
description: Bad request
|
||||||
|
'500':
|
||||||
|
description: Internal server error
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ErrorResponse'
|
||||||
/api/upload/mask:
|
/api/upload/mask:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
@ -384,19 +384,18 @@ paths:
|
|||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: Success
|
description: Success
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/UploadResponse'
|
||||||
|
'400':
|
||||||
|
description: Bad request
|
||||||
'500':
|
'500':
|
||||||
description: Internal server error
|
description: Internal server error
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/ErrorResponse'
|
$ref: '#/components/schemas/ErrorResponse'
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
type: object
|
|
||||||
$ref: '#/components/schemas/UploadResponse'
|
|
||||||
'400':
|
|
||||||
description: Bad request
|
|
||||||
/api/view:
|
/api/view:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
@ -448,12 +447,6 @@ paths:
|
|||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: Success
|
description: Success
|
||||||
'500':
|
|
||||||
description: Internal server error
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: '#/components/schemas/ErrorResponse'
|
|
||||||
content:
|
content:
|
||||||
image/*:
|
image/*:
|
||||||
schema:
|
schema:
|
||||||
@ -463,6 +456,12 @@ paths:
|
|||||||
description: Bad request
|
description: Bad request
|
||||||
'404':
|
'404':
|
||||||
description: File not found
|
description: File not found
|
||||||
|
'500':
|
||||||
|
description: Internal server error
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ErrorResponse'
|
||||||
/api/view_metadata/{folder_name}:
|
/api/view_metadata/{folder_name}:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user