feat: add limit/pagination to rewards endpoint #139
Labels
No Label
ai-changes-requested
ai-failed
ai-merged
ai-pr-opened
ai-reviewed
ai-reviewing
ai-reviewing
ai-working
bug
enhancement
evolution
performance
phase-0
phase-1a
phase-1b
phase-1c
phase-1d
security
tech-debt
todo
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/paper-dynasty-database#139
Loading…
Reference in New Issue
Block a user
No description provided.
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?
The
GET /api/v2/rewardsendpoint returns all 8,800+ records with nolimitparameter. Add an optionallimit: intquery param (default 100, max 500).Found during smoke test development — this endpoint returns the entire table (~9k rows) causing slow responses.
PR opened: #152
Added
limit: Optional[int] = 100toGET /api/v2/rewards, capped at 500 viamax(0, min(limit, 500)). Applied after all filters.