forked from 0xWheatyz/SPARC
Feature: cursor-based pagination for /analyze/batch and /jobs endpoints #539
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 results without pagination. This will become a performance issue as the dataset grows.Task
/jobs(e.g.?cursor=<last_job_id>&limit=50)/analyze/batchresult listingsnext_cursorin the response body when more results existAcceptance Criteria
/jobsacceptscursorandlimitquery parametersnext_cursorwhen additional pages existVerified complete:
PaginatedJobsResponsemodel withnext_cursorfield exists./jobsendpoint anddatabase.pysupport cursor-based pagination. Closing as implemented.