Summary

In this chapter, we discussed the Inventory component of our sample RESTful web service and worked on our first endpoint. We explored how to quickly run and access this endpoint, and we even threw in a bonus endpoint to list rooms by categories.

In the next chapter, we will explore in more detail how to control the JSON format of responses, along with the DTO pattern and why it is useful for decoupling the different layers of a system.

Get Building a RESTful Web Service with Spring 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.