Skip to content

[web-35-3] 관리자 캘린더 일정 삭제 API 구현#27

Merged
Chunwol merged 1 commit into
feature/web-35-2from
feature/web-35-3
May 23, 2026
Merged

[web-35-3] 관리자 캘린더 일정 삭제 API 구현#27
Chunwol merged 1 commit into
feature/web-35-2from
feature/web-35-3

Conversation

@Chunwol
Copy link
Copy Markdown
Member

@Chunwol Chunwol commented May 23, 2026

작업 내용

관리자 페이지에서 캘린더 일정을 일괄 삭제할 수 있는 API를 구현합니다. 멀티 선택을 지원합니다.

변경 사항

  • DELETE /api/v1/admin/calendar 엔드포인트 구현
  • @RequestParam + @NotEmpty 검증 (@Validated 적용)
  • AdminCalendarService.delete() 구현
  • CalendarScheduleRepositorycountByCalendarIdIn() 추가
  • 존재하지 않는 ID 삭제 시 404 RESOURCE_NOT_FOUND 에러 처리

API

캘린더 일정 삭제

DELETE /api/v1/admin/calendar?calendarIds=1&calendarIds=2&calendarIds=3

Request: Query Parameter calendarIds (필수, 1개 이상)

Response: 200 OK

{
  "success": true,
  "data": null
}

Error - calendarIds 미전달: 400 Bad Request
Error - 존재하지 않는 ID: 404 Not Found

테스트

  • DELETE /api/v1/admin/calendar?calendarIds=1 → 200 OK
  • calendarIds 미전달 시 400 에러
  • 존재하지 않는 ID 삭제 시 404 에러
  • 존재 + 미존재 ID 혼합 시 404 에러

@Chunwol Chunwol requested a review from chldPDms May 23, 2026 03:26
@Chunwol Chunwol self-assigned this May 23, 2026
@Chunwol Chunwol added the enhancement New feature or request label May 23, 2026
@Chunwol Chunwol force-pushed the feature/web-35-2 branch from 946ac68 to e5e5e54 Compare May 23, 2026 03:29
@Chunwol Chunwol force-pushed the feature/web-35-3 branch from ec96878 to 7876fa1 Compare May 23, 2026 03:29
@Chunwol Chunwol merged commit 454a403 into feature/web-35-2 May 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant