Skip to content

rest api

jinyoung_choi edited this page Sep 22, 2019 · 1 revision

login

  • 로그인
  • URL : /login
  • Method : POST
  • Content :
{
 id : "123"
 pass_word : "123"
}

sign up

  • 회원가입
  • URL : /signup
  • Method : POST
  • Content :
{
 id : "123"
 pass_word : "123"
 email : "[email protected]"
}

user

  • user 정보 불러오기
  • URL : /user
  • Method : GET
  • Content :
{
 id : "123"
 pass_word : "123"
 email : "[email protected]"
}

review

  • user가 작성한 리뷰 불러오기
  • URL : /user/{userid}/review
  • Method : GET
  • Content :
{
 name : "123"
 rating : 3.4
 review : "별로"
}
  • user가 작성한 특정 리뷰 삭제
  • URL : /user/{userid}/review/{reviewid}
  • Method : DELETE

tour

  • 주변 관광지 불러오기
  • URL : /tour
  • Method : GET
  • Content :
{
 name : "123"
 location : "11.22.33"
}
  • 특정 조건을 만족하는 관광지 검색
  • URL : /tour/search=aaa&p1=true&p2=true ...
  • Method : POST
  • Content :
{
 name : "123"
 location : "11.22.33"
 condition : [true,true,false ...]
}
  • 해당 관광지 정보 불러오기
  • URL : /tour/{tourid}
  • Method : GET
  • Content :
{
 name : "123"
 condition : [true,true,false ...]
 rating : 3.4
 review : ["aaa","bbb",...]
}
  • 해당 관광지 리뷰 작성
  • URL : /tour/{tourid}
  • Method : POST
  • Content :
{
 name : "123"
 rating : 3.4
 review : "aaa"
}

hotel,food,conv,hop,pha,move 는 tour와 같음

Clone this wiki locally