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

[GET] /api/v1/users/{userId}

 
내 정보를 보는 api와 남의 정보를 보는 api가 나눠져야함
  • 내 정보 : 토큰
  • 남의 정보 : userId만 있으면 된다
 

Request

PathVariable
Filed
Type
Description
비고
userId
Number
사용자 구별키
 

RESPONSE

favoriteCourt는 남의 정보볼때만 보내주자
→ courtId 같이 보내줘야함
  • JSON (예시)
{ "success": true, "data": { "createdAt": "2021-01-01T12:20:10", "updatedAt": "2021-01-01T12:20:10", "followerCount": 5, "followingCount": 3, "profileImage" : "https://www.s3.com", "description": "my name is sds", "skill": "BEGINNER", "position": "PF" "favoriteCourt" : [ "설악산", "한강공원", "굴다리" ] } "serverDateTime": "2021-12-01T12:00:00" }
 
Body
Path
Type
Description
비고
success
Boolean
성공여부
true/false
data[].created_at
String
이거 확인 필요 ?? 어떻게 할지
data[].updated_at
String
data[].followerCount
Number
내가 팔로우 당한 인원 수
data[].followingCount
Number
내가 팔로잉한 인원 수
data[].profileImage
String
profile Image
data[].description
String
자기 소개
data[].skill
String
숙련도
BEGINNER -뉴비 INTERMEDIATE- 중수 MASTER- 고수
data[].position
String
포지션
PF (Power Forward) SF (Small Forward) SG (Shooting Guard) PG (Point Guard)
data[].favoriteCourt
Array
선호하는 코트
serverDateTime
String
api 응답시간