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

[DELETE] /api/v1/courts

Request

  • JSON (예시)
{ "newCourtId":1 }
Body
Filed
Type
Description
비고
newCourtId
Number
사용자가 추가한 농구장 Id
status 변경을 위해, DENY
 
 

Response

  • JSON (예시)
{ "success": true, "serverDateTime": "2021-12-01T12:00:00" }
Body
Filed
Type
Description
비고
success
Boolean
요청 성공 여부
serverDateTime
String
api 응답시간
 
 

백 엔드

Transaction
  • court테이블
    • new_court_id를 입력받으면 DB에서에서 new_court_id를 이용해서 court record삭제
  • new_court 테이블에서 status를 deny로 변경