Skip to content

Commit

Permalink
✨ 프로필 이미지 업로드, 삭제, 조회 API 추가 (#38)
Browse files Browse the repository at this point in the history
* 🩹 extension required 추가

* ✨ 프로필 이미지 업로드, 삭제, 조회 API 추가
  • Loading branch information
waterfogSW authored Dec 7, 2024
1 parent 4768665 commit b4118d6
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,32 @@ paths:
'500':
$ref: '#/components/responses/InternalServerError'

/users/my/profile-images/{imageId}:
delete:
summary: 프로필 이미지 삭제
description: 특정 프로필 이미지를 삭제합니다.
tags:
- users
operationId: deleteProfileImage
security:
- BearerAuth: [ ]
parameters:
- in: path
name: imageId
required: true
schema:
type: string
format: uuid
description: 삭제할 프로필 이미지 ID
responses:
'204':
description: 삭제 성공
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'

/users/my/desiredPartner:
put:
Expand Down Expand Up @@ -751,6 +777,11 @@ components:
name:
type: string
description: 사용자 이름
profileImages:
type: array
description: 프로필 이미지 목록
items:
$ref: '#/components/schemas/ProfileImage'
phoneNumber:
type: string
description: 사용자의 전화번호 (한국 휴대폰 번호 형식)
Expand Down Expand Up @@ -1150,6 +1181,7 @@ components:
$ref: '#/components/schemas/ProfileImageExtension'
required:
- imageId
- extension

ProfileWidget:
type: object
Expand Down Expand Up @@ -1189,3 +1221,21 @@ components:
type: string
enum: [ PNG ]
description: 프로필 이미지 확장자

ProfileImage:
type: object
properties:
id:
type: string
format: uuid
description: 이미지 식별자
url:
type: string
format: uri
description: 이미지 URL
extension:
$ref: '#/components/schemas/ProfileImageExtension'
required:
- id
- url
- extension

0 comments on commit b4118d6

Please sign in to comment.