5

Creating RESTful APIs for Microservices

Application programming interfaces (APIs) play an essential role in software development because they support loose coupling of software components, improving factors such as the maintainability and robustness of applications. This also applies to microservices applications where APIs are key components to meet microservices principles such as being self-contained and resilient.

APIs come in different forms, but we’ll focus on REpresentational State Transfer (RESTful) APIs because they are microservices in themselves and fit well in the microservices architecture.

In this chapter, you’ll learn what RESTful APIs are and how you can build them with Django and the Django REST Framework (DRF). You’ll also ...

Get Hands-On Microservices with Django now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.