Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API contract to GET /tasks (with query) #83

Closed
ivinayakg opened this issue Jul 24, 2022 · 1 comment · May be fixed by #82
Closed

API contract to GET /tasks (with query) #83

ivinayakg opened this issue Jul 24, 2022 · 1 comment · May be fixed by #82

Comments

@ivinayakg
Copy link
Contributor

ivinayakg commented Jul 24, 2022

This is to extend the ability of the GET /tasks API from the backend to also support filtering by parameters passed as queries.
The functioning would be as follows:-

  1. If no query parameters passed i.e limit or offset then the response will get all the tasks there are in the database or default to a no. of documents to return.
  2. If query parameters limit and offset is passed then it would return all the documents which are created after the created time of the <task_object> whose id = offset, plus would only return n no. of documents where n = limit and therefore would also work as a paginated API.
@prakashchoudhary07
Copy link
Contributor

Closing this as the PR linked to this issue has been closed, as the API contracts are outdated, and new API contracts have been updated

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 a pull request may close this issue.

2 participants