Summary

Congratulations on completing this chapter, where the skills and knowledge required to build a RESTful web service were discussed in detail. This chapter started off by explaining what REST is and how a web service can benefit by being RESTful, in terms of both development and maintenance. It talked about the requirements of the RESTful web service being developed, and used a UML use case diagram to explain the requirement visually.

This chapter also talked about how to understand the domain model of an application based on the requirements (the Moviee app), and used Spring Data MongoDB to convert domain model entities into MongoDB documents. A UML class diagram was used to explain the domain model in detail. Furthermore, the chapter explained how to write data repositories for those entities, using Spring Data MongoDB with minimum effort, in commonly used CRUD operations. It also explained how to write custom query methods in data repositories and how to encapsulate business logic inside Spring service components. Finally, it explained how to test these service components.

Toward the end, the chapter talked about how to use Spring WebFlux REST controllers to provide coordination between different services. Furthermore, it talked about how to protect controller endpoints using Spring Security to allow the basic authentication and authorization of users. Finally, it explained how to test Spring WebFlux controllers using WebFlux test cases. The chapter also demonstrated the use of Moviee in detail. Let's learn more about application development in the next chapter.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.62.122