mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-10 09:12:31 +08:00
spec: document If-None-Match header on conditional GET endpoints
Both `getNodeInfoSchema` and `getNodeByID` advertise `ETag` response headers and a `304 Not Modified` response, but the spec didn't declare the `If-None-Match` request header that triggers conditional validation. Adding it as an optional header parameter on both ops so client codegen exposes the conditional-GET pattern.
This commit is contained in:
parent
b4d7389cc2
commit
cae16c91a9
13
openapi.yaml
13
openapi.yaml
@ -2580,6 +2580,13 @@ paths:
|
|||||||
summary: Get pre-rendered node info schema
|
summary: Get pre-rendered node info schema
|
||||||
description: "[cloud-only] Returns the static ComfyUI object_info schema, identical for every caller, rendered once at startup with empty model/user-file context. Served by a raw HTTP handler that writes pre-rendered bytes with ETag + Cache-Control validators for RFC 7232 conditional GETs."
|
description: "[cloud-only] Returns the static ComfyUI object_info schema, identical for every caller, rendered once at startup with empty model/user-file context. Served by a raw HTTP handler that writes pre-rendered bytes with ETag + Cache-Control validators for RFC 7232 conditional GETs."
|
||||||
x-runtime: [cloud]
|
x-runtime: [cloud]
|
||||||
|
parameters:
|
||||||
|
- name: If-None-Match
|
||||||
|
in: header
|
||||||
|
required: false
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
description: Entity tag previously returned by this endpoint. When present and matching, the server returns 304 Not Modified.
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: Node info schema
|
description: Node info schema
|
||||||
@ -2661,6 +2668,12 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
description: Node class identifier
|
description: Node class identifier
|
||||||
|
- name: If-None-Match
|
||||||
|
in: header
|
||||||
|
required: false
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
description: Entity tag previously returned by this endpoint. When present and matching, the server returns 304 Not Modified.
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: Single node definition
|
description: Single node definition
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user