산삼펫 API
회원 가입 / 로그인 API
회원 가입 API
POST
localhost:3000/api/signup
Request Body
nickname*
string
user nickname
password*
string
password for user nickname
로그인 API
POST
localhost:3000/api/login
Request Body
nickname*
String
user nickname
password*
String
password for user nickname
산삼 시터 조회 API
산삼 시터 전체 조회 API
GET
localhost:3000/api/petsitters
산삼 시터 개인 조회 API
GET
localhost:3000/api/petsitters/:petsitterId
예약 CRUD API
예약 작성 API
POST
localhost:3000/api/reservations
Parmerter : user (req.locals.user)
Request Body
reservationAt*
datetime
datetime of reservation
petsitter_id *
String
petsitter_id of reservation
예약 전체 조회 API
GET
localhost:3000/api/reservations
Parmerter : user (req.locals.user)
예약 수정 API
PATCH
localhost:3000/api/reservations
Parmerter : user (req.locals.user)
Parmerter : reservationId (req.query)
Request Body
reservationAt*
datetime
reservation date
petsitter_id*
String
petsitter_id of reservation
예약 삭제 API
DELETE
localhost:3000/api/reservations
Parmerter : user (req.locals.user)
Parmerter : reservationId (req.query)
리뷰 CRUD API
리뷰 작성 API
POST
localhost:3000/api/petsitters/:petsitterId/review
Parmerter : user (req.locals.user)
Parmerter : petsitterId (req.params)
Request Body
content*
string
content of the review
star*
int
star of the review
리뷰 전체 조회 API
GET
localhost:3000/api/petsitters/:petsitterId/reviews
Parmerter : user (req.locals.user)
Parmerter : petsitterId (req.params)
리뷰 수정 API
PATCH
localhost:3000/api/petsitters/:petsitterId/review
Parmerter : user (req.locals.user)
Parmerter : petsitterId (req.params)
Parmeter : reviewId(req.query)
Request Body
content*
String
content of the comment
리뷰 삭제 API
DELETE
localhost:3000/api/petsitters/:petsitterId/review
Parmerter : user (req.locals.user)
Parmerter : petsitterId (req.params)
Parmeter : reviewId(req.query)
Last updated