I have been looking at various examples of how to use Spring with REST. Our end target is a Spring HATEOAS/HAL
setup
I have seen two distinct methods for rendering REST within Spring
Via
@RestController
within a ControllerVia
@RepositoryRestResource
within a Repository
The thing I am struggling to find is why would you use one over the other. When trying to implement HAL
which is best?
Our database backend is Neo4j.
See Question&Answers more detail:os