Summary
In this chapter, we covered various aspects of working on web endpoints in a Micronaut application. We kick-started with the concept of assemblers or DTOs and then dived into how to create restful endpoints for supporting essential CRUD operations. Also, we experimented with some of the HTTP server APIs in the Micronaut framework. Lastly, we focused on the HTTP client aspects and created a client utility using micronaut-http-client
.
This chapter has given us the skills related to various practical aspects of working on restful microservices in the Micronaut framework. Furthermore, by exploring the HTTP client, we covered these aspects end to end. This hands-on knowledge to work on the web layer is pivotal in developing any microservice.
In the next chapter, we will work on securing the web layer of the pet-clinic
microservice by experimenting with different approaches and methods in safeguarding the restful endpoints.