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

Catalog Pagination (Backend) #34

Closed
ThatMegamind opened this issue Jan 21, 2024 · 0 comments · Fixed by #42
Closed

Catalog Pagination (Backend) #34

ThatMegamind opened this issue Jan 21, 2024 · 0 comments · Fixed by #42
Assignees
Labels

Comments

@ThatMegamind
Copy link
Collaborator

Instructions

  • Modify the GET /catalog route to accept a ‘limit’ and ‘page’ parameter in the req.query. The route should only return a max of ‘limit’ rows and based on ‘page’ offset the first page * limit records (note, the math will change depending on if you index page starting at 0 vs 1)

Notes

  • If there isn’t a ‘limit’ and ‘offset’ parameter, the default limit is 10 and offset 0.
  • See the corresponding frontend task for the other half of this task!

Acceptance Criteria

  • The route returns maximum of ‘limit’ records and changing ‘page’ results in the next set of records

Resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants