This is an example of how we can use Spring Web (REST) and Clean architectural patterns, especially
when it comes to separating Controller
and Presenter
.
This example was inspired by the discussion in this very interesting post:
Use case containing the presenter or returning data?
And, of course, here is the reference article by Robert C. Martin