Skip to content

Commit

Permalink
✨ 내 프로필 조회 API 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
waterfogSW committed Oct 9, 2024
1 parent 193eda2 commit 7d29ff4
Showing 1 changed file with 71 additions and 0 deletions.
71 changes: 71 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,29 @@ paths:
'500':
$ref: '#/components/responses/InternalServerError'

/users/my:
get:
summary: 내 프로필 조회
description: 현재 로그인한 사용자의 프로필 정보를 조회합니다.
tags:
- users
operationId: getMyUserInfo
security:
- BearerAuth: [ ]
responses:
'200':
description: 조회 성공
content:
application/json:
schema:
$ref: '#/components/schemas/GetMyUserInfoResponse'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'500':
$ref: '#/components/responses/InternalServerError'

/auth/token/refresh:
post:
summary: 액세스 토큰 갱신
Expand Down Expand Up @@ -339,6 +362,34 @@ components:
code: "1002"
message: "리소스를 찾을 수 없습니다."

Unauthorized:
description: 토큰 만료
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
unauthorized:
value:
time: "2024-05-01T00:00:00Z"
type: "AUTH"
code: "1001"
message: "인증에 실패했습니다."

Forbidden:
description: 권한 없음
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
forbidden:
value:
time: "2024-05-01T00:00:00Z"
type: "AUTH"
code: "1002"
message: "토큰이 만료되었습니다."

InternalServerError:
description: 서버 오류
content:
Expand Down Expand Up @@ -496,6 +547,26 @@ components:
- profile
- desiredPartner

GetMyUserInfoResponse:
type: object
properties:
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 7d29ff4

Please sign in to comment.