You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Instructions
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 firstpage * limit
records (note, the math will change depending on if you index page starting at 0 vs 1)Notes
Acceptance Criteria
Resources
The text was updated successfully, but these errors were encountered: