forked from 0xWheatyz/SPARC
Add cursor-based pagination to /analyze/batch and /jobs endpoints #1372
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
/analyze/batchand/jobsreturn all results in a single response. For users with large patent datasets, this will become slow and memory-intensive.What to do
/jobsand/analyze/batchresult endpoints.cursorandlimitquery parameters; return anext_cursorin the response.Acceptance criteria
GET /jobs?limit=20returns the first 20 jobs and a cursor.[Repo Manager] This issue has already been resolved on the main branch. Verified by code inspection during triage. Closing.