I\'ve been going through my head the best way to design a JSON API using Spring MVC. As we all know IO is expensive, and thus I don\'t want to make the client make several A
Being aware that my answer comes quite late: I'd recommend to look at Projections.
Projections
What you're asking for is what projections are about.
Since you're asking about Spring I'd give this one a try: https://docs.spring.io/spring-data/rest/docs/current/reference/html/#projections-excerpts