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

[GET] /api/v1/courts/all

  • 전체 농구장 조회

Request

 

Response

  • JSON (예시)
{ "courts": [ { "name": "관악구민운동장 농구장", "latitude": 38.987654, "longtitude": 12.309472, "image": "aHR0cHM6Ly9pYmIuY28vcXMwSnZXYg", "basketCount": 2, "createdAt": "2021-01-01T12:20:10", "updatedAt": "2021-01-01T12:20:10" }, { "name": "서울시 농구장", "latitude": 209.987654, "longtitude": 1123.309472, "image": "aHR0cHM6Ly9pYmIuY28vcXMwSnZXYg", "basketCount": 2, "createdAt": "2021-01-01T12:20:10", "updatedAt": "2021-01-01T12:20:10" }, { "name": "한강 농구장", "latitude": 7777.987654, "longtitude": 888.309472, "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.[].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 응답시간