Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

경로 조회 명세서 #13

Open
jyb2605 opened this issue Jul 29, 2019 · 0 comments
Open

경로 조회 명세서 #13

jyb2605 opened this issue Jul 29, 2019 · 0 comments

Comments

@jyb2605
Copy link
Owner

jyb2605 commented Jul 29, 2019

경로 조회

Request

HTTP Method URI
GET /map/paths
  • Header
Name Value Description
content-type application/json
authorization AAAAN2d......oU= Oauth 토큰
  • parameter

Query

Name Value Description
tripNo 16 여행 구분자
  • example
http://101.101.160.246:3000/map/paths


Response

Success

  • Status: 200
  • Header
Name Value Description
content-type application/json
  • Body
Name Value Description
code 200 response 코드번호
message 경로 조회 성공 response 메세지
locations
ㄴ latitude
ㄴ longitude
Object Array
ㄴ 위도
ㄴ 경도
경로 정보
{
      "code":200,
      "message":"경로 조회 성공",
      "locations": [
            {
                  "latitude": 14.24512421,
                  "longitude": 42.5341851
            },
            {
                  "latitude": 14.24512426,
                  "longitude": 42.5341852
            },
            {
                  "latitude": 14.24512430,
                  "longitude": 42.5341859
            }
      ]
}

Fail

Status Description
300 토큰 인증 실패
301 유효하지 않은 여행 번호

<Status>

{
      "code":300,
      "message":"토큰 인증 실패"
}


relate to issue

FIXME: Describe relate to issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant