Skip to content

Commit

Permalink
✨ 프로필 위젯 관련 API 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
waterfogSW committed Nov 3, 2024
1 parent f81da79 commit b7d77e2
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,34 @@ paths:
$ref: '#/components/responses/Unauthorized'
'500':
$ref: '#/components/responses/InternalServerError'
/users/profileWidgets:
put:
summary: 프로필 위젯 추가 및 수정
description: 현재 사용자의 프로필 위젯을 추가 및 수정합니다.
tags:
- users
operationId: putProfileWidget
security:
- BearerAuth: [ ]
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PutProfileWidgetRequest'
responses:
'201':
description: 프로필 위젯 추가 성공
content:
application/json:
schema:
$ref: '#/components/schemas/PutProfileWidgetResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'500':
$ref: '#/components/responses/InternalServerError'

/auth/token/refresh:
post:
Expand Down Expand Up @@ -588,6 +616,10 @@ components:
$ref: '#/components/schemas/UserProfile'
desiredPartner:
$ref: '#/components/schemas/UserDesiredPartner'
profileWidgets:
type: array
items:
$ref: '#/components/schemas/ProfileWidget'
required:
- name
- phoneNumber
Expand Down Expand Up @@ -787,3 +819,35 @@ components:
type: string
enum: [ ONLY_MY_AREA, INCLUDE_SURROUNDING_REGIONS, ANYWHERE ]
description: 선호하는 거리 (내 지역만, 주변 지역 포함, 어디든)

PutProfileWidgetRequest:
$ref: '#/components/schemas/ProfileWidget'

PutProfileWidgetResponse:
$ref: '#/components/schemas/ProfileWidget'

ProfileWidget:
type: object
properties:
type:
$ref: '#/components/schemas/ProfileWidgetType'
content:
type: string
description: 위젯 내용
maxLength: 40

ProfileWidgetType:
type: string
enum: [
HOBBY,
STYLE,
BODY_TYPE,
MUSIC,
DRAMA_MOVIE,
BOOK,
MBTI,
RELIGION,
SMOKING,
DRINKING,
]
description: 프로필 위젯 타입

0 comments on commit b7d77e2

Please sign in to comment.