forked from 0xWheatyz/SPARC
Add cursor-based pagination to /analyze/batch and /jobs endpoints #324
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 — API pagination
The
/analyze/batchand/jobsendpoints return all records in a single response. Large datasets will cause slow responses and high memory usage.Work Required
cursorandlimitquery parameters, return anext_cursorin the responseAcceptance Criteria
GET /jobs?limit=20returns at most 20 results and anext_cursorif more existcursor=<value>returns the next page starting after the cursornext_cursorisnullThis issue has already been resolved in the fork's main branch. Already implemented in PR #59 (feat: add cursor-based pagination to /jobs endpoint).
Closing as completed.