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() {}