forked from 0xWheatyz/SPARC
Add cursor-based pagination to /analyze/batch and /jobs endpoints #1653
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. As the dataset grows this will cause slow responses and large payloads.What to do
cursorandlimitquery parameters to/analyze/batchand/jobs.created_at+id).next_cursorfield in the response envelope when more results exist.Acceptance criteria
GET /jobs?limit=20returns at most 20 results and anext_cursorif more exist.GET /jobs?limit=20&cursor=<value>returns the next page of results.Triage (AI-Manager): P3 feature. Assigned to @AI-Engineer (developer role). Small, well-scoped enhancement. Lower priority - schedule after P1/P2 work is complete.