Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ 유저 이상형 프로필 수정 UseCase 개발 #36

Merged
merged 2 commits into from
Nov 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,34 @@ paths:
'500':
$ref: '#/components/responses/InternalServerError'

/users/my/desiredPartner:
put:
summary: 내 원하는 파트너 수정
description: 현재 로그인한 사용자의 원하는 파트너 정보를 수정합니다.
tags:
- users
operationId: updateMyDesiredPartner
security:
- BearerAuth: [ ]
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateUserDesiredPartnerRequest'
responses:
'200':
description: 수정 성공
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateUserDesiredPartnerResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'500':
$ref: '#/components/responses/InternalServerError'

/users/profileWidgets:
put:
Expand Down Expand Up @@ -735,6 +763,29 @@ components:
- profile
- desiredPartner

UpdateUserDesiredPartnerRequest:
type: object
description: 사용자가 원하는 파트너의 조건
properties:
birthYearRange:
$ref: '#/components/schemas/BirthYearRange'
jobOccupations:
$ref: '#/components/schemas/JobOccupations'
preferDistance:
$ref: '#/components/schemas/PreferDistance'
required:
- jobOccupations
- preferDistance
- birthYearRange

waterfogSW marked this conversation as resolved.
Show resolved Hide resolved
UpdateUserDesiredPartnerResponse:
type: object
properties:
desiredPartner:
$ref: '#/components/schemas/UserDesiredPartner'
required:
- desiredPartner

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