From b4118d6a2e2cf6d57430fe47d6c4a45b9f9817e8 Mon Sep 17 00:00:00 2001 From: San Kim Date: Sat, 7 Dec 2024 20:23:11 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=ED=94=84=EB=A1=9C=ED=95=84=20?= =?UTF-8?q?=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EC=97=85=EB=A1=9C=EB=93=9C,=20?= =?UTF-8?q?=EC=82=AD=EC=A0=9C,=20=EC=A1=B0=ED=9A=8C=20API=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80=20(#38)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ๐Ÿฉน extension required ์ถ”๊ฐ€ * โœจ ํ”„๋กœํ•„ ์ด๋ฏธ์ง€ ์—…๋กœ๋“œ, ์‚ญ์ œ, ์กฐํšŒ API ์ถ”๊ฐ€ --- openapi.yaml | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/openapi.yaml b/openapi.yaml index 4990b1f..14ed35f 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -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: @@ -751,6 +777,11 @@ components: name: type: string description: ์‚ฌ์šฉ์ž ์ด๋ฆ„ + profileImages: + type: array + description: ํ”„๋กœํ•„ ์ด๋ฏธ์ง€ ๋ชฉ๋ก + items: + $ref: '#/components/schemas/ProfileImage' phoneNumber: type: string description: ์‚ฌ์šฉ์ž์˜ ์ „ํ™”๋ฒˆํ˜ธ (ํ•œ๊ตญ ํœด๋Œ€ํฐ ๋ฒˆํ˜ธ ํ˜•์‹) @@ -1150,6 +1181,7 @@ components: $ref: '#/components/schemas/ProfileImageExtension' required: - imageId + - extension ProfileWidget: type: object @@ -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