Skip to content

Add status filter and pagination to list streams endpoint #338

@ogazboiz

Description

@ogazboiz

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

  • ?status=paused returns only paused streams
  • ?status=completed returns only completed streams
  • Pagination and sort work correctly

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programbackendBackend related tasks

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions