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

[PATCH] /api/v1/reservations/{reservationId}

✅
예약 변경 하기

REQUEST

Header

headers { Authorization: "Bearer ${token}" } // 토큰으로 부터 userId를 추출함
 
PathVariable
Field
Type
Description
비고
reservationId
Number
예약 아이디
Body
Field
Type
Description
비고
startTime
String
예약 시작 시간
YYYY-mm-DDThh:MM:ss
endTime
String
예약 종료 시간
YYYY-mm-DDThh:MM:ss
hasBall
Boolean
농구공 유무
  • Body 예시
{ "startTime": "2021-01-01T12:20:10.000Z", "endTime": "2021-01-01T12:20:10.000Z", "hasBall": "false" }
 
 

 

RESPONSE

Body
Field
Type
Description
비고
reservationId
Number
예약 아이디
courtId
Number
농구장 아이디
startTime
Number
농구장 시작시간
endTime
Number
농구장 종료시간
hasBall
Boolean
농구공 여부
createdAt
String
생성 시간
YYYY-mm-DDThh:MM:ss
updatedAt
String
수정 시간
YYYY-mm-DDThh:MM:ss
  • Body 예시
{ "id": 2, "userId": 2, "courtId": 1, "startTime": "2021-01-01T12:20:10.000Z", "endTime": "2021-01-01T12:20:10.000Z", "hasBall": "false" "createdAt": "2021-01-01T12:20:10.000Z", "updatedAt": "2021-01-01T12:20:10.000Z", }