가장 많이 저장된 식당 순위 조회
REQUEST
GET /api/restaurants/ranking/storage/number HTTP/1.1
Content-Type: application/json;charset=UTF-8
Host: localhost:8080
RESPONSE BODY
{
"success" : true,
"result" : [ {
"rank" : 1,
"restId" : "223412312",
"restName" : "원할머니 보쌈",
"totalFavorite" : 5
}, {
"rank" : 2,
"restId" : "223992312",
"restName" : "메가 커피",
"totalFavorite" : 4
}, {
"rank" : 3,
"restId" : "212412312",
"restName" : "새마을식당",
"totalFavorite" : 3
}, {
"rank" : 4,
"restId" : "223412772",
"restName" : "일미집",
"totalFavorite" : 2
}, {
"rank" : 5,
"restId" : "883412312",
"restName" : "정돈",
"totalFavorite" : 1
} ]
}
RESPONSE FIELD
Path | Type | Description |
---|---|---|
|
|
성공 여부 |
|
|
순위 |
|
|
식당 아이디 |
|
|
식당 이름 |
|
|
맛집 저장 횟수 |
가장 최근에 저장된 식당 순위 조회
REQUEST
GET /api/restaurants/ranking/storage/time HTTP/1.1
Content-Type: application/json;charset=UTF-8
Host: localhost:8080
RESPONSE BODY
{
"success" : true,
"result" : [ {
"rank" : 1,
"restId" : "223412312",
"restName" : "원할머니 보쌈",
"savedAt" : "2023-07-09T22:15:17.983776"
}, {
"rank" : 2,
"restId" : "223992312",
"restName" : "메가 커피",
"savedAt" : "2023-07-09T22:15:17.983776"
}, {
"rank" : 3,
"restId" : "212412312",
"restName" : "새마을식당",
"savedAt" : "2023-07-09T22:15:17.983776"
}, {
"rank" : 4,
"restId" : "223412772",
"restName" : "일미집",
"savedAt" : "2023-07-09T22:15:17.983776"
}, {
"rank" : 5,
"restId" : "883412312",
"restName" : "정돈",
"savedAt" : "2023-07-09T22:15:17.983776"
} ]
}
RESPONSE FIELD
Path | Type | Description |
---|---|---|
|
|
성공 여부 |
|
|
순위 |
|
|
식당 아이디 |
|
|
식당 이름 |
|
|
맛집 저장 시간 |