Hi I am using spring data rest and Ihave a weird issue when I am using PagingAndSortingRepository the response I get has a _self link as expected but with it also gives a duplicate link of the same entity hf:foo as evindent in the below response.
dupicate links "self" : { "href" : "http://localhost:8080/foos/8445" } and "hf:foo" : { "href" : "http://localhost:8080/foos/8445"
curl http://localhost:8080/foos?page=0&size=1
{
"_links" : {
"first" : {
"href" : "http://localhost:8080/foos?page=0&size=1"
},
"prev" : {
"href" : "http://localhost:8080/foos?page=0&size=1"
},
"self" : {
"href" : "http://localhost:8080/foos"
},
"next" : {
"href" : "http://localhost:8080/foos?page=2&size=1"
},
"last" : {
"href" : "http://localhost:8080/foos?page=81&size=1"
}
},
"_embedded" : {
"hf:foos" : [ {
"name" : "comsi",
"_links" : {
"self" : {
"href" : "http://localhost:8080/foos/8445"
},
"hf:foo" : {
"href" : "http://localhost:8080/foos/8445"
} ]
}
} ]
},
"page" : {
"size" : 1,
"totalElements" : 82,
"totalPages" : 82,
"number" : 1
}
}
please help .Is it an issue with the curie namespace .
selfandhf:fooare not the same, by definition. Just asfirstandprevare not. So what exactly is the issue? - Oliver Drotbohm