From b0ebc17c4c14cd01e3bf208b1083d589fa0b63c0 Mon Sep 17 00:00:00 2001 From: lsn5963 <77337977+lsn5963@users.noreply.github.com> Date: Wed, 1 Jan 2025 18:36:29 +0900 Subject: [PATCH] =?UTF-8?q?[DOCS]=20AUTH=20=EA=B4=80=EB=A0=A8=20API=20?= =?UTF-8?q?=EB=AA=85=EC=84=B8=EC=84=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/static/openapi.json | 43 +++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/src/main/resources/static/openapi.json b/src/main/resources/static/openapi.json index 0aaaebe..3f4a4dd 100644 --- a/src/main/resources/static/openapi.json +++ b/src/main/resources/static/openapi.json @@ -39,7 +39,7 @@ ], "paths": { - "/auth": { + "/auth/login": { "post": { "tags": ["Auth"], "summary": "카카오 로그인", @@ -78,6 +78,47 @@ } } }, + "/auth": { + "delete": { + "tags": ["Auth"], + "summary": "회원 탈퇴", + "description": "해당 유저의 가입을 탈퇴합니다.", + "parameters": [ + { + "name": "Authorization", + "in": "header", + "required": true, + "description": "Bearer 액세스 토큰을 입력하세요.", + "schema": { + "type": "string", + "example": "Bearer {accessToken}" + } + } + ], + "responses": { + "200": { + "description": "회원 탈퇴 성공", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Message" + } + } + } + }, + "400": { + "description": "회원 탈퇴 실패", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, "/write": { "post": { "tags": ["Write"],