Summary
In this chapter, we learned how to build RESTful APIs with DRF as part of a Django microservices application. We started with exploring what RESTful APIs are before we moved over to creating such APIs with DRF. We ended with error handling to make DRF-based RESTful APIs resilient and to provide helpful feedback to clients in case of bad requests or invalid data.
With this, you know what RESTful APIs are and how to develop them with DRF. Furthermore, for the sample application, you have the RESTful API in place as the gateway for the microservices to the database.
In the next chapter, we’ll build the microservices and learn how to orchestrate them with RabbitMQ and Celery.