mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-06-01 20:07:37 +08:00
spec(assets): add cursor pagination params to GET /api/assets
Add 'after' query param and 'next_cursor' response field for keyset pagination. Matches the cloud Go implementation (BE-893) so frontend sees a unified contract across runtimes. Offset/limit remain as a deprecated fallback.
This commit is contained in:
parent
a8d2519058
commit
28f60ccea5
18
openapi.yaml
18
openapi.yaml
@ -1517,6 +1517,19 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
type: integer
|
type: integer
|
||||||
default: 0
|
default: 0
|
||||||
|
description: |
|
||||||
|
Deprecated in favor of `after` cursor pagination. When both are
|
||||||
|
supplied, `after` wins and `offset` is ignored.
|
||||||
|
- name: after
|
||||||
|
in: query
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
description: |
|
||||||
|
Opaque cursor for keyset pagination. Pass the `next_cursor` value
|
||||||
|
from a previous response to fetch the next page. Stable across
|
||||||
|
inserts/deletes between pages. Supported with `sort` values
|
||||||
|
`created_at`, `updated_at`, `name`, and `size`. Malformed or
|
||||||
|
unsupported cursors return 400 with `INVALID_CURSOR`.
|
||||||
- name: include_tags
|
- name: include_tags
|
||||||
in: query
|
in: query
|
||||||
schema:
|
schema:
|
||||||
@ -6479,6 +6492,11 @@ components:
|
|||||||
type: integer
|
type: integer
|
||||||
has_more:
|
has_more:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
next_cursor:
|
||||||
|
type: string
|
||||||
|
description: |
|
||||||
|
Opaque cursor to fetch the next page. Pass back as the `after`
|
||||||
|
query parameter. Omitted when there are no more results.
|
||||||
|
|
||||||
TagInfo:
|
TagInfo:
|
||||||
type: object
|
type: object
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user