맛집 추가
REQUEST
POST /api/restaurants/1/favorite HTTP/1.1
Content-Type: application/json;charset=UTF-8
Content-Length: 115
Host: localhost:8080
{
"groupId" : 1,
"restName" : "원할머니 보쌈",
"latitude" : 37.481079886,
"longitude" : 126.9530287
}
PATH PARAMETERS
Parameter | Description |
---|---|
|
식당 아이디 |
RESPONSE BODY
{
"success" : true,
"result" : true
}
RESPONSE FIELD
Path | Type | Description |
---|---|---|
|
|
성공 여부 |
|
|
성공 여부 |
맛집 삭제
REQUEST
DELETE /api/restaurants/1/favorite?groupId=1 HTTP/1.1
Content-Type: application/json;charset=UTF-8
Host: localhost:8080
PATH PARAMETERS
Parameter | Description |
---|---|
|
식당 아이디 |
RESPONSE BODY
{
"success" : true,
"result" : true
}
RESPONSE FIELD
Path | Type | Description |
---|---|---|
|
|
성공 여부 |
|
|
성공 여부 |
맛집 리스트 조회
REQUEST
GET /api/restaurants/favorite?groupId=1 HTTP/1.1
Content-Type: application/json;charset=UTF-8
Host: localhost:8080
RESPONSE BODY
{
"success" : true,
"result" : {
"content" : [ {
"restId" : "223412312",
"restName" : "원할머니 보쌈",
"latitude" : 37.481079886,
"longitude" : 126.9530287
} ],
"pageable" : {
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"offset" : 0,
"pageNumber" : 0,
"pageSize" : 10,
"paged" : true,
"unpaged" : false
},
"last" : true,
"totalPages" : 1,
"totalElements" : 1,
"size" : 10,
"number" : 0,
"sort" : {
"empty" : true,
"sorted" : false,
"unsorted" : true
},
"first" : true,
"numberOfElements" : 1,
"empty" : false
}
}
RESPONSE FIELD
Path | Type | Description |
---|---|---|
|
|
성공 여부 |
|
|
식당 아이디 |
|
|
식당 이름 |
|
|
위도 |
|
|
경도 |
|
|
전체 데이터 수 |
|
|
전체 페이지 수 |
|
|
첫 페이지 여부 |
|
|
마지막 페이지 여부 |
|
|
빈 데이터 여부 |
|
|
사이즈 |
|
|
페이지 |