HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
🧚
[1기]최종 프로젝트 데브코스
/
🏀
[팀14] 슬램 - 우리 주변 농구장 예약
/
🧭
Domain 설계 - 초안 건드리지 말 것
/
[POST] /api/v1/reservations

[POST] /api/v1/reservations

Request

  • JSON (예시)
{ "userId": 2, "courtId": 7, "startTime": "2021-01-01T12:20:10", "endTime": "2021-01-01T12:20:10", "hasBall": "false" }
Body
Field
Type
Description
비고
userId
Number
사용자 아이디
courtId
Number
농구장 아이디
startTime
String
예약 시작 시간
YYYY-mm-DDThh:MM:ss
endTime
String
예약 종료 시간
YYYY-mm-DDThh:MM:ss
hasBall
Boolean
농구공 유무
 
 

 

Response

  • JSON(예시)
{ "succes": "true", "data": { "reservationId": 2, "createdAt": "2021-01-01T12:20:10", "updatedAt": "2021-01-01T12:20:10" }, "serverDateTime": "2021-12-01T12:00:00" }
Body
Field
Type
Description
비고
success
Boolean
성공/실패 여부
data.[].reservationId
Number
예약 아이디
data.[].createdAt
String
생성 시간
YYYY-mm-DDThh:MM:ss
data.[].updatedAt
String
수정 시간
YYYY-mm-DDThh:MM:ss
serverDateTime
String
api 응답시간