In the previous chapter, we implemented a catalog module that exposed functions for data manipulation for the items in the catalog application. These functions made use of the express.js request object to parse the incoming data in the body and then to carry out the appropriate database operation. Each function populated the response object with a relevant status code and response body payload, if needed. Finally, we bound each function to a route, accepting HTTP requests.
Now, it's time to look closer into the URLs of the routes and into the returned HTTP status codes per operation.
In this chapter, we will cover the following topics:
- Endpoint URLs and HTTP status codes best practices
- Extensibility and versioning
- Linked data