Post
post 관련 api method를 설명한 페이지
거리를 기준으로 식당 조회 메서드
GET
get/restaurants
x, y, range를 기준으로 식당 조회 (ST_Distance_Sphehe 사용)
Query Parameters
Name
Type
Description
longitude*
double
경도
latitude*
double
위도
range*
double
거리
Scrap 기능을 위한 메서드
POST
/user/scrap
Query Parameters
Name
Type
Description
id*
Long
post의 id(pk)
Headers
Name
Type
Description
Authorization
String
login시 생성 된 accessToken
Scrap한 글들을 조회하는 메서드
GET
/user/scrap/list
Query Parameters
Name
Type
Description
page
int
defaultValue -> 0
size
int
defaultValue -> 5
Headers
Name
Type
Description
Authorization*
String
login시 생성 된 accessToken
Last updated