forked from 0xWheatyz/SPARC
Add cursor-based pagination to /analyze/batch and /jobs endpoints #1092
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 reference: P3 / API pagination
The
/analyze/batchand/jobsendpoints return all results in a single response. For users with large result sets this becomes slow and memory-intensive.What to do
cursorandlimitquery parameters, returnnext_cursorin the response envelope.Acceptance criteria
GET /jobs?limit=20returns at most 20 results and anext_cursorif more exist.cursor=<value>returns the next page of results.Resolved by PR #59 (commit
3b64118) which added cursor-based pagination to the /jobs endpoint. Closing as complete.