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"],