rest - How to use Spring Hateoas with the most decoupling possible -
basically want generate restful service spring-data restrepositories need add significant amount of domain logic services in addition use 2 different data sources. poc. of tutorials have found reference building links either in controller when creating resource or using resource assembler , pointing methods. there few examples have found use entity links, appears more "decoupled" way of doing this. furthermore, have no clear way of generating landing page @ context root without writing own controller , spitting out instance of resource support (which fine thinking there better way). know new project, of examples find copy/paste of each other.
my requirements such:
- have landing page @ context root exposing of rels
- decouple resources framework's resourcesupport
- decouple creation of links controllers themselves
- apply both collection , singleton patters hal browser shows links correctly
i sure there best practices in someone's mind, maybe oliver's, , capture can build poc correctly.
Comments
Post a Comment