From 2155c92b1e89e43ed97a6909ee0774a53e6f1205 Mon Sep 17 00:00:00 2001 From: jhhong0509 Date: Sat, 22 Oct 2022 11:46:09 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=B3=B4=EC=83=81=20=ED=8A=B8=EB=9E=9C?= =?UTF-8?q?=EC=9E=AD=EC=85=98=20API=20=EC=8A=A4=EC=9B=A8=EA=B1=B0=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../router/AccessManagementRouter.kt | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/authorization-infrastructure/src/main/kotlin/com/xquare/authorization/v1authorizationservice/authority/accessmanagement/router/AccessManagementRouter.kt b/authorization-infrastructure/src/main/kotlin/com/xquare/authorization/v1authorizationservice/authority/accessmanagement/router/AccessManagementRouter.kt index 75a19a3..84fdc3b 100644 --- a/authorization-infrastructure/src/main/kotlin/com/xquare/authorization/v1authorizationservice/authority/accessmanagement/router/AccessManagementRouter.kt +++ b/authorization-infrastructure/src/main/kotlin/com/xquare/authorization/v1authorizationservice/authority/accessmanagement/router/AccessManagementRouter.kt @@ -100,6 +100,29 @@ class AccessManagementRouter( ) ], ) + ), + RouterOperation( + path = "/authorities/access-management/basic/{userId}", + method = [RequestMethod.DELETE], + produces = [MediaType.APPLICATION_JSON_VALUE], + consumes = [MediaType.APPLICATION_JSON_VALUE], + params = ["userId"], + operation = Operation( + operationId = "deleteBasicAuthorities", + summary = "Delete Basic Authorities", + description = "사용자가 가지고 있는 기본 권한을 삭제합니다. (보상 트랜잭션 API)", + parameters = [ + Parameter( + name = "userId", + description = "사용자 아이디", + `in` = ParameterIn.PATH, + allowEmptyValue = false, + required = true + ) + ], + requestBody = RequestBody(content = []), + responses = [ApiResponse(responseCode = "204", description = "삭제 성공")], + ) ) ) fun accessManagementRouters() = coRouter {