fix: DepartmentApi 권한 해제 경로 파라미터 수정
- DELETE /departments/{id}/permissions → /{id}/permissions/{permission}
- 실제 라우트와 Swagger 경로 일치
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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() {}
|
||||
|
||||
Reference in New Issue
Block a user