Description
Offer stable cursor pagination in addition to offset/limit for large datasets.
Requirements and context
- Backward compatible query params.
- Document in OpenAPI.
Suggested execution
Fork and branch
Fork the repo and create a branch:
git checkout -b feature/credit-lines-cursor-pagination
Implement changes
- Extend
CreditLineService.getAllCreditLines and repository interfaces.
- Update
GET /api/credit/lines handler.
- Add tests for first page, next cursor, and exhaustion.
Test and commit
Run tests, cover edge cases, and attach test output plus security or ops notes (auth, PII, Stellar keys) in the PR.
Run tests
Example commit message
feat(api): cursor pagination for credit lines
Guidelines
-
Minimum 95% coverage on touched modules where applicable (npm test / coverage report).
-
Clear documentation (OpenAPI openapi.yaml, README, and inline comments for non-obvious logic).
-
Timeframe: 96 hours.
-
Run npm run build or tsc if types change.
-
Keep OpenAPI in sync with route behavior.
Description
Offer stable cursor pagination in addition to offset/limit for large datasets.
Requirements and context
Suggested execution
Fork and branch
Fork the repo and create a branch:
Implement changes
CreditLineService.getAllCreditLinesand repository interfaces.GET /api/credit/lineshandler.Test and commit
Run tests, cover edge cases, and attach test output plus security or ops notes (auth, PII, Stellar keys) in the PR.
Run tests
npm testExample commit message
Guidelines
Minimum 95% coverage on touched modules where applicable (
npm test/ coverage report).Clear documentation (OpenAPI
openapi.yaml, README, and inline comments for non-obvious logic).Timeframe: 96 hours.
Run
npm run buildortscif types change.Keep OpenAPI in sync with route behavior.