Answer the question
In order to leave comments, you need to log in
How to navigate to an element's page when used on a HAL backend?
Links are returned from the server.
We display a general list of elements on the page by a general request, but how to make a button to view one element? If HAL were not used, then I would do the transition by id, but what if with HAL?
JSON example from server
"_links" : {
"self" : {
"href" : "http://localhost:8080/books/book/1"
},
},
Answer the question
In order to leave comments, you need to log in
You can use templated. Dynamic links based on parameters. And then rely on attributes.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question