From c9d1fb9e363c8074e0d391eb566b254cd067d47d Mon Sep 17 00:00:00 2001 From: San Kim Date: Sat, 4 Jan 2025 21:08:17 +0900 Subject: [PATCH 1/2] =?UTF-8?q?Feat(User)=20:=20=EC=9C=A0=EC=A0=80=20?= =?UTF-8?q?=EC=BB=A4=EB=84=A5=EC=85=98=20=ED=99=9C=EC=84=B1=ED=99=94=20?= =?UTF-8?q?=EC=83=81=ED=83=9C=20=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- openapi.yaml | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/openapi.yaml b/openapi.yaml index 14ed35f..2291445 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -297,6 +297,35 @@ paths: '500': $ref: '#/components/responses/InternalServerError' + /users/my/connection/status: + put: + summary: 유저 커넥션 활성화 상태 변경 + description: 현재 로그인한 사용자의 커넥션 상태를 활성화 또는 비활성화합니다. + tags: + - Users + operationId: updateConnectionStatus + security: + - BearerAuth: [ ] + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateConnectionStatusRequest' + responses: + '200': + description: 상태 변경 성공 + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateConnectionStatusResponse' + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '500': + $ref: '#/components/responses/InternalServerError' + /users/profileWidgets: put: summary: 프로필 위젯 추가 및 수정 @@ -1183,6 +1212,27 @@ components: - imageId - extension + UpdateConnectionStatusRequest: + type: object + properties: + status: + type: string + enum: [ ACTIVE, INACTIVE ] + description: "변경할 커넥션 상태 (ACTIVE: 활성화, INACTIVE: 비활성화)" + required: + - status + + UpdateConnectionStatusResponse: + type: object + properties: + status: + type: string + enum: [ ACTIVE, INACTIVE ] + description: 현재 커넥션 상태 + required: + - status + + ProfileWidget: type: object properties: From 8e20201cbba7c7a78fc5b3d7db947f9397b564c0 Mon Sep 17 00:00:00 2001 From: San Kim Date: Sat, 4 Jan 2025 21:16:09 +0900 Subject: [PATCH 2/2] fix --- openapi.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi.yaml b/openapi.yaml index 2291445..11f9398 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -302,7 +302,7 @@ paths: summary: 유저 커넥션 활성화 상태 변경 description: 현재 로그인한 사용자의 커넥션 상태를 활성화 또는 비활성화합니다. tags: - - Users + - users operationId: updateConnectionStatus security: - BearerAuth: [ ]