Summary
The current GET /tasks/ endpoint returns all tasks in a single response. Adding pagination and filtering makes this a more realistic, production-grade API.
Acceptance criteria
Notes
This mirrors real-world API patterns used in production FastAPI services and is a common interview topic.
Summary
The current
GET /tasks/endpoint returns all tasks in a single response. Adding pagination and filtering makes this a more realistic, production-grade API.Acceptance criteria
GET /tasks/?skip=0&limit=20— offset-based pagination with configurable defaultsGET /tasks/?status=completed— filter by completion statusGET /tasks/?q=keyword— optional keyword search on task titletotal,skip,limit, anditemsfields (envelope pattern)Notes
This mirrors real-world API patterns used in production FastAPI services and is a common interview topic.