Skip to content

Add completed task filtering - #13

Closed
halkasimi wants to merge 1 commit into
aj-enns:mainfrom
halkasimi:halkasimi-completed-tasks-endpoint
Closed

halkasimi wants to merge 1 commit into
aj-enns:mainfrom
halkasimi:halkasimi-completed-tasks-endpoint

Conversation

@halkasimi

Copy link
Copy Markdown

Why

The task API has no way to retrieve only completed tasks. Add a query filter to the existing list endpoint so clients can request completed or incomplete tasks without changing the default all-tasks response.

Changes

  • Support GET /tasks?completed=true and GET /tasks?completed=false.
  • Return 400 for unsupported completed values.
  • Add API coverage for completed-only results and invalid filters, and document the query options.

Validation

  • npm test -- --run (13 tests passed)
  • npm run typecheck (passed)

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@halkasimi halkasimi closed this Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant