Post

post 관련 api method를 설명한 페이지

거리를 기준으로 식당 조회 메서드

GET get/restaurants

x, y, range를 기준으로 식당 조회 (ST_Distance_Sphehe 사용)

Query Parameters

Name
Type
Description

longitude*

double

경도

latitude*

double

위도

range*

double

거리

[
    {
        "id": 6,
        "location": {
            "x": 37.5786,
            "y": 26.978
        },
        "restaurantName": "경복궁1",
        "categories": [
            "분위기",
            "맛집"
        ],
        "hashTags": [
            "한식",
            "양식"
        ],
        "memberNames": [
            "정국",
            "",
            "RM"
        ],
        "scrapCount": 0,
        "visitorReviewScore": 0.0,
        "visitorReviewCount": 0
    },
    {
        "id": 7,
        "location": {
            "x": 38.5786,
            "y": 27.978
        },
        "restaurantName": "경복궁",
        "categories": [
            "분위기",
            "맛집"
        ],
        "hashTags": [
            "한식",
            "양식"
        ],
        "memberNames": [
            "정국",
            "",
            "RM"
        ],
        "scrapCount": 0,
        "visitorReviewScore": 0.0,
        "visitorReviewCount": 0
    }
]

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