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

/api/v1/courts/{userID}/detail/{courtId}

  • 사용자가 선택한 코트에 대한 자세한 정보 읽어오기
 

Request

PathVariable
Field
Type
Description
비고
userId
Number
사용자 아이디
courtId
Number
코트 아이디
 
 

Response

  • JSON (예시)
{ "success": true, "data": { "courtName": "관악구민운동장 농구장", "latitude": 38.987654, "longtitude": 12.309472, "courtReservation" : 3, "favoriteCheck" : true, "reservationCheck" : false; "image": "aHR0cHM6Ly9pYmIuY28vcXMwSnZXYg", "basketCount": 2, "createdAt": "2021-01-01T12:20:10", "updatedAt": "2021-01-01T12:20:10" } "serverDateTime": "2021-12-01T12:00:00" }
Field
Filed
Type
Description
비고
success
Boolean
요청 성공 여부
data.[].name
String
농구장 이름
data.[].latitude
Number
위도
data.[].longtitude
Number
경도
data[].courtReservation
Number
코트 예약자 수
data[].favoriteCheck
Boolean
코트에 대해 즐겨찾기 여부
유저 ID와 연결하여 즐겨찾기 되어있는지 확인
data[].reservationCheck
Boolean
코트에 대해 예약 여부
data.[].image
String
농구장 이미지
data.[].basketCount
Number
농구 골대 개수
1< 골대 개수 < 9 (전체 인원수 구하기 위함)
data.[].updatedAt
String
농구장 수정 시간
날짜 포맷: YYYY-mm-DDThh:MM:ss
data.[].createdAt
String
농구장 생성 시간
날짜 포맷: YYYY-mm-DDThh:MM:ss
serverDateTime
String
api 응답시간