mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-31 03:17:23 +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:
|
||||
type: integer
|
||||
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
|
||||
in: query
|
||||
schema:
|
||||
@ -6479,6 +6492,11 @@ components:
|
||||
type: integer
|
||||
has_more:
|
||||
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:
|
||||
type: object
|
||||
|
||||
Loading…
Reference in New Issue
Block a user