forked from 0xWheatyz/SPARC
Add cursor-based pagination to /analyze/batch and /jobs endpoints #752
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 large result sets this can be slow and expensive.What to do
cursorandlimitquery parameters to both endpointsnext_cursorfield in the response body when more results are availablelimitto 20; cap at 100Acceptance criteria
cursorandlimitquery paramsnext_cursor(ornullwhen on the last page)limit=5returns at most 5 resultsResolved.
/jobsendpoint acceptscursorandlimitquery parameters with cursor-based pagination. Responses includenext_cursor(null on last page). Default limit 10, max 100.