0
在HAL specification之後,如果self鏈接包含查詢參數,還是可以鏈接到第一頁? 由於HAL規範 - 自連接應該包含查詢參數嗎?
遵循一個例子:
請求:
my-service/movies/123/subtitles?page=3
實際JSON響應:
{
"count": 20,
"pagingSize": 5,
"_links": {
"next": {
"href": "/my-service/movies/123/subtitles?page=4"
},
"previous": {
"href": "/my-service/movies/123/subtitles?page=2"
},
"self": {
"href": "/my-service/movies/123/subtitles"
},
"movie": {
"href": "/my-service/movies/123"
}
},
"_embedded": {
"subtitles": [
{
"id": "111",
"_links": {
"self": {
"href": "/my-service/subtitles/111"
}
}
},
...
{
"id": "222",
"_links": {
"self": {
"href": "/my-service/subtitles/222"
}
}
}
]
}
}