Skip to content

Commit

Permalink
✨ 유저 프로필 수정 api spec정의
Browse files Browse the repository at this point in the history
  • Loading branch information
waterfogSW committed Nov 10, 2024
1 parent 1ec369e commit ddd63a1
Showing 1 changed file with 74 additions and 0 deletions.
74 changes: 74 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,36 @@ paths:
$ref: '#/components/responses/Unauthorized'
'500':
$ref: '#/components/responses/InternalServerError'

patch:
summary: 내 프로필 수정
description: 현재 로그인한 사용자의 프로필 정보를 수정합니다. (이름, 직군, 직장, 활동 지역)
tags:
- users
operationId: updateMyUserInfo
security:
- BearerAuth: [ ]
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateMyUserInfoRequest'
responses:
'200':
description: 수정 성공
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateMyUserInfoResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'500':
$ref: '#/components/responses/InternalServerError'


/users/profileWidgets:
put:
summary: 프로필 위젯 추가 및 수정
Expand Down Expand Up @@ -627,6 +657,50 @@ components:
- desiredPartner
- profileWidgets

UpdateMyUserInfoRequest:
type: object
description: 현재 사용자 프로필 수정 요청 (이름, 직군, 직장, 활동 지역)
properties:
name:
type: string
description: 사용자 이름
jobOccupation:
$ref: '#/components/schemas/JobOccupation'
companyId:
type: string
format: uuid
description: 사용자의 회사 ID
locationIds:
type: array
items:
type: string
format: uuid
description: 사용자의 활동 지역 목록 ID 리스트

UpdateMyUserInfoResponse:
type: object
properties:
id:
type: string
format: uuid
description: 사용자 식별자
name:
type: string
description: 사용자 이름
phoneNumber:
type: string
description: 사용자의 전화번호 (한국 휴대폰 번호 형식)
pattern: '^01[0-9]{8,9}$'
profile:
$ref: '#/components/schemas/UserProfile'
desiredPartner:
$ref: '#/components/schemas/UserDesiredPartner'
required:
- name
- phoneNumber
- profile
- desiredPartner

UserProfile:
type: object
description: 사용자 프로필 정보
Expand Down

0 comments on commit ddd63a1

Please sign in to comment.