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

/api/v1/user/{userId}

PUT - 프로필 편집 (수정)

Request

  • JSON (예시)
{ "nickname": "sds1", "description": "my name is sds", "skill": "초보", "position": "포워드" }
Field의 사본
Filed
Type
Description
비고
nickname
String
닉네임
중복 안됨, 15글자 이내
description
String
내 정보 수정
25글자 이내
skill
String
숙련도
enum
position
String
포지션

RESPONSE

  • JSON (예시)
{ "success": true, "data": { "createdAt": "2021-01-01T12:20:10", "updatedAt": "2021-01-01T12:20:10" } }
 
Field의 사본
Path
Type
Description
비고
success
Boolean
성공여부
true/false
created_at
datetime
updated_at
datetime
헤이 JsonFieldType에 DateTime이 존재하지 않네요~ 그냥 String으로 해야될꺼같아요
notion image
강홍구 리더님이랑 했던 실습코드를 첨부해놓겠습니다~
-젤리