forked from 0xWheatyz/SPARC
Add cursor-based pagination to /analyze/batch and /jobs endpoints #1615
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Roadmap item: P3 - Nice to Have
As the number of jobs and batch results grows, the endpoints will return increasingly large payloads. Cursor-based pagination would allow clients to page through results efficiently.
What to do
cursorandlimitquery parameters to/analyze/batchand/jobsnext_cursorin the response envelope when more results existAcceptance criteria
/jobssupports?limit=N&cursor=Xpagination/analyze/batchsupports?limit=N&cursor=Xpaginationnext_cursorwhen additional pages existRef: ROADMAP.md P3 - Nice to Have
This issue is already resolved in main. The
/jobsendpoint supports cursor-based pagination withlimitandcursorquery parameters. The response includes anext_cursorfield for fetching subsequent pages.