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:

  1. have landing page @ context root exposing of rels
  2. decouple resources framework's resourcesupport
  3. decouple creation of links controllers themselves
  4. 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

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -