Backend with Node.js
🛣️ Routes, REST and API design
Group routes with Router, design a REST API with resources and status codes, and paginate, filter and sort collections.
What you'll learn
- Group routes by resource with
Routerand readreq.paramsandreq.query - Design a REST API with plural resources and appropriate HTTP methods
- Return the correct status code (
200,201,204,400,404) - Filter, sort and paginate collections from query parameters
Lessons
Express Router: routes and parametersGroup routes and read params and query. REST design: resources and statusesNouns, methods and status codes. Pagination, filtering and sortingApply req.query to a collection.Practice this module in the app
DevPath is a hands-on course: you read the theory here; in the app you put it into practice with exercises that really run, offline.
Start free in the app →