-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Is your feature request related to a problem? Please describe.
Right now, donor and donation data is not consistently paginated in the backend. The donors lambda returns full datasets. As the dataset grows, returning everything at once will increase payload size, and make frontend list views harder to manage
Describe the solution you'd like
Add/extend GET /donors to support pagination (page, limit).
Add donations list endpoint (either GET /donations or GET /projects/{projectId}/donations) with pagination.
Return a consistent envelope, e.g.:
data: [...]
pagination: { page, limit, totalItems, totalPages }
Validate invalid pagination params (page < 1, limit < 1, non-integers) and return 400.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Existing pagination behavior in users can be used as a reference implementation.
Need one consistent style across lambdas so frontend can reuse the same pagination handling logic.