DTO design with Jackson
When designing a REST API, it’s often necessary to vary the level of detail returned depending on the endpoint. For example, a “list all books” endpoint might only return a subset of each book’s fields, while a “get book by...