изменить структуру по умолчанию для ссылок HATEOAS - PullRequest
0 голосов
/ 24 октября 2019

Как изменить стандартную структуру ссылок Hateoas:

 "first": {
    "href": "http://localhost:8081/api/offer/?page=0&size=20"
 },
 "self": {
    "href": "http://localhost:8081/api/offer/"
 },
 "next": {
    "href": "http://localhost:8081/api/offer/?page=1&size=20"
 },
 "last": {
     "href": "http://localhost:8081/api/offer/?page=2&size=20"
 }

, чтобы она была такой:

 {
    "href": "http://localhost:8081/api/offer/?page=0&size=20",
    "rel" : "next",
    "method": "GET"
 },
...