diff --git a/openapi.yaml b/openapi.yaml index 14ed35f..11f9398 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: