Join our community: https://t.me/+DOylgFv1jyJlNzM0
Description
GET /v1/streams only filters by sender and recipient. There is no way to filter by status, making it impossible to build a "completed streams history" or "paused streams" view efficiently.
What Needs to Happen
- Add
?status=active|cancelled|completed|paused filter
- Add
?token={address} to filter by token contract
- Add
?sort=createdAt|endTime|depositedAmount&order=asc|desc
- Add
?limit=20&offset=0 with hasMore in response
Files
backend/src/controllers/stream.controller.ts (listStreams)
Acceptance Criteria
Description
GET /v1/streamsonly filters bysenderandrecipient. There is no way to filter by status, making it impossible to build a "completed streams history" or "paused streams" view efficiently.What Needs to Happen
?status=active|cancelled|completed|pausedfilter?token={address}to filter by token contract?sort=createdAt|endTime|depositedAmount&order=asc|desc?limit=20&offset=0withhasMorein responseFiles
backend/src/controllers/stream.controller.ts(listStreams)Acceptance Criteria
?status=pausedreturns only paused streams?status=completedreturns only completed streams