From 282bcce5ae99aeb0a7069a2334d85a6f2c8059ce Mon Sep 17 00:00:00 2001 From: kent Date: Sun, 21 Dec 2025 14:31:17 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20DepartmentApi=20=EA=B6=8C=ED=95=9C=20?= =?UTF-8?q?=ED=95=B4=EC=A0=9C=20=EA=B2=BD=EB=A1=9C=20=ED=8C=8C=EB=9D=BC?= =?UTF-8?q?=EB=AF=B8=ED=84=B0=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - DELETE /departments/{id}/permissions → /{id}/permissions/{permission} - 실제 라우트와 Swagger 경로 일치 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- app/Swagger/v1/DepartmentApi.php | 29 +++++++---------------------- 1 file changed, 7 insertions(+), 22 deletions(-) diff --git a/app/Swagger/v1/DepartmentApi.php b/app/Swagger/v1/DepartmentApi.php index b2660a1..b47c4c5 100644 --- a/app/Swagger/v1/DepartmentApi.php +++ b/app/Swagger/v1/DepartmentApi.php @@ -496,40 +496,25 @@ public function upsertPermission() {} /** * @OA\Delete( - * path="/api/v1/departments/{id}/permissions", - * summary="부서 권한 해제(단건/배치)", - * description="지정 권한을 부서 매핑에서 제거합니다. 단건 또는 items 배열을 모두 지원합니다.", + * path="/api/v1/departments/{id}/permissions/{permission}", + * summary="부서 권한 해제", + * description="지정 권한을 부서 매핑에서 제거합니다.", * tags={"Department"}, * security={{"ApiKeyAuth": {}},{"BearerAuth": {}}}, * - * @OA\Parameter(name="id", in="path", required=true, @OA\Schema(type="integer", example=7)), - * - * @OA\RequestBody( - * required=true, - * - * @OA\JsonContent(oneOf={ - * - * @OA\Schema(ref="#/components/schemas/DepartmentPermissionRevokeSingle"), - * @OA\Schema(ref="#/components/schemas/DepartmentPermissionRevokeMany") - * }) - * ), + * @OA\Parameter(name="id", in="path", required=true, description="부서 ID", @OA\Schema(type="integer", example=7)), + * @OA\Parameter(name="permission", in="path", required=true, description="권한 ID", @OA\Schema(type="integer", example=15)), * * @OA\Response(response=200, description="부서 권한 해제 성공", * * @OA\JsonContent( * * @OA\Property(property="success", type="boolean", example=true), - * @OA\Property(property="message", type="string", example="부서 권한 해제 성공"), - * @OA\Property(property="data", type="object", - * @OA\Property(property="processed", type="integer", example=2), - * @OA\Property(property="succeeded", type="integer", example=2), - * @OA\Property(property="failed", type="array", @OA\Items(type="object")) - * ) + * @OA\Property(property="message", type="string", example="부서 권한 제거") * ) * ), * - * @OA\Response(response=404, description="부서 없음", @OA\JsonContent(ref="#/components/schemas/ErrorResponse")), - * @OA\Response(response=422, description="검증 실패", @OA\JsonContent(ref="#/components/schemas/ErrorResponse")) + * @OA\Response(response=404, description="부서 또는 권한 없음", @OA\JsonContent(ref="#/components/schemas/ErrorResponse")) * ) */ public function revokePermission() {}