Summary
In this chapter, we explored the fundamentals of designing REST APIs, including the methods, routes, and status codes used.
We explored an example of how to do that in code using the standard library. We also went through the most common REST actions used to create, retrieve, list, update, and delete instances from a REST resource and how to create your custom actions for resources.
All this knowledge is helpful, but our API lacks two crucial features: authentication and authorization. Without them, you are exposing all your data to any user who has access to it without restrictions, which is unacceptable in almost all cases. In the next chapter, we are going to see how authentication and authorization can be incorporated into our shopping list app.
Unlock this book’s exclusive benefits nowScan this QR code or go to packtpub.com/unlock, then search this book by name. |
...