Summary
Now, we can effectively write RESTful APIs using the Spring Framework. We learned how to create complex objects using JSON and how we can handle them when creating requests and responses in our API. We know how we can use HTTP verbs and statuses to define the ubiquitous language of our API, to provide a clear communication to the API consumers. And finally, we learned how to handle errors and answer back to the users of our RESTful microservice.
Remember our microservices principles when you build your API, Domain-Driven Design is a perfect way to separate your API service following your domain mapping. But these APIs follow the standard approach of most microservices, using traditional blocking operations. In the next chapter, we ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access