Red Hat Bugzilla – Bug 845244
links in JSON results are difficult to navigate
Last modified: 2015-02-05 20:19:10 EST
Description of problem:
When a resource is returned as JSON the associated links are modeled as an array with a 'rel' and 'href' tag.
While this follows the HATEOS convention it's unnecessarily tedious to navigate and discover the semantics of each link. I can't pick a known relation; I have to iterate an array, pick the 'rel' key and evaluate.
Though there's no standard mechanism to express links with JSON there's some consensus that the current pattern is not friendly and other patterns are available that follow HATEOS conventions and are more accessible.
A resaonable summary of the issue and suggestions
see HAL - the Hypertext Application Language
see this post where a facebook engineer describes their use:
Heiko please comment...
Changed in master 1913e7e27d495
This was less than trivial, as the standard jax-rs way does not allow for this.
Links now look like this:
As this is MODIFIED or ON_QA, setting milestone to ER1.