[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 url: https://github.com/comfyanonymous/ComfyUI/blob/master/LICENSE
servers: servers:
- url: / - url: /api
description: Default ComfyUI server description: Default ComfyUI server
tags: tags:
@ -889,6 +889,7 @@ components:
description: Device type description: Device type
index: index:
type: integer type: integer
nullable: true
description: Device index description: Device index
vram_total: vram_total:
type: number type: number