-
Notifications
You must be signed in to change notification settings - Fork 472
"Get Link functionality" of ResourceSupport class #542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Since Link and ResourceSupport are mediatype neutral containers, there is no need to force them to store things in relation to one mediatype (HAL in this case). However, the desire to retrieve ALL links related to a given rel makes sense, given RFC5988 supports this. |
gregturn
added a commit
that referenced
this issue
Mar 26, 2017
gregturn
added a commit
that referenced
this issue
Mar 26, 2017
gregturn
added a commit
that referenced
this issue
Mar 26, 2017
odrotbohm
pushed a commit
that referenced
this issue
Mar 26, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Links in a ResourceSupport class are stored in an ArrayList, this makes it possible to hold several links with the same 'rel' with different hrefs. If I call the method getLink(rel), only the first matching entry is returned.
On client side the produced JSON looks like a multi valued map with one or more entries for one rel.
Wouldn't it be better to use such a map in the ResourceSupport class itself to keep consistency?
The text was updated successfully, but these errors were encountered: