How can I use the HATEOAS principal in retrofit? Is there any way to use links in retrofit? Or should I parse it on my own?
links: [4]
0: {
rel: "self"
href: "https://localhost/api/product/9"
}-
1: {
rel: "comp"
href: "https://localhost/api/product/19/comp"
}-
2: {
rel: "eval"
href: "https://localhost/api/product/19/eval"
}
My general question is, how can I use links to resource (http://en.wikipedia.org/wiki/HATEOAS)? Is there any possibility? For example how can i invoke the "comp" href to the resource and get i parsed Java-Object (from JSON) return?