Closed orubel closed 12 months ago
passed as "Header X-LINK-RELATIONS=true"
LinkedRelations are built in RequestInitializationFilter at cache and ApiInterceptor at postHandler
We need to create LinkRelationsService to contain all methods and handle hand off of HttpServletRequest
done.Tested. closing.
Unlike HATEOAS that AUTOMATICALLY sends back a ton of additional data that you may not want, I wanted to make this optional upon REQUEST.
You can send a HEADER ('X-LINK-REQUEST') for the related links and it wouyld provide a 'concatenated'response:
Naturally like everything else, this would be related to the requesting users ROLES in their token.
This makes us more feature compliant with HATEOS while not being as bloated as HATEOS