Skip to content

Add pagination to GET /tasks endpoint #2

Open

Description

@tonysong8

Feature Request

The GET /tasks endpoint returns all tasks with no limit. As the dataset grows this will become slow and return too much data.

Proposed Solution

Add page and limit query parameters:

GET /tasks?page=2&limit=20

Response should include metadata:

{
  "data": [...],
  "total": 120,
  "page": 2,
  "limit": 20
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions