[openapi] Update server URL to use /api prefix

- Changed server URL from / to /api to reflect the canonical API path
- Made device index field nullable to match actual server response

This addresses the review comment about endpoints needing the /api/ prefix.
This commit is contained in:
bymyself 2025-06-28 22:30:24 -07:00
parent d65ad9940b
commit 2a032017b2

View File

@ -16,7 +16,7 @@ info:
url: https://github.com/comfyanonymous/ComfyUI/blob/master/LICENSE
servers:
- url: /
- url: /api
description: Default ComfyUI server
tags:
@ -889,6 +889,7 @@ components:
description: Device type
index:
type: integer
nullable: true
description: Device index
vram_total:
type: number