forked from 0xWheatyz/SPARC
Add cursor-based pagination to /analyze/batch and /jobs endpoints #822
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?
Background
The
/analyze/batchand/jobsendpoints return all results in a single response. As the dataset grows this will become slow and memory-intensive.What to do
GET /jobsusing anaftercursor parameter and alimitparameter (default 20, max 100)next_cursorfield (null if no more pages)Acceptance criteria
GET /jobs?limit=10returns at most 10 results with anext_cursorGET /jobs?after=<cursor>returns the next pageGET /jobs/countendpoint or response header)References
Roadmap item: P3 -- API pagination
This issue has already been resolved and merged into main via PR #59 (feat: add cursor-based pagination to /jobs endpoint). Closing as completed.
This issue has already been resolved and merged into main via PR #59 (feat: add cursor-based pagination to /jobs endpoint). Closing as completed.