Skip to content

커리큘럼 CRUD API 수정#94

Merged
xihxxn merged 11 commits into
developfrom
#82
May 23, 2026
Merged

커리큘럼 CRUD API 수정#94
xihxxn merged 11 commits into
developfrom
#82

Conversation

@xihxxn

@xihxxn xihxxn commented May 23, 2026

Copy link
Copy Markdown
Collaborator

#️⃣연관된 이슈

#82

📝작업 내용

기존 세션 단위 커리큘럼 CRUD를 하루 단위(AM/PM)로 관리할 수 있는 API를 구현했습니다.


구현 내용

생성 POST /api/curriculums

  • AM/PM 세션 2개를 한 트랜잭션 내에서 동시 생성
  • 동일 날짜에 이미 세션이 존재하면 409 CONFLICT 반환
  • 생성 시 status는 BEFORE_SESSION으로 고정

조회 GET /api/curriculums

  • 전체 세션을 날짜 오름차순으로 조회
  • 서비스 레이어에서 sessionDate 기준 groupingBy 후 하루 단위 DTO로 반환

수정 PATCH /api/curriculums/{sessionDate}

  • sessionDate 기준 하루치 AM/PM 한 번에 수정
  • newSessionDate 필드로 날짜 변경 가능 (변경할 날짜에 이미 세션 존재 시 409 CONFLICT)
  • status, title, hostName 등 모든 필드 수정 가능
  • title이 빈 값이면 400 BAD_REQUEST 반환

삭제 DELETE /api/curriculums/{sessionDate}

  • sessionDate 기준 AM/PM 세션 동시 삭제

@xihxxn xihxxn linked an issue May 23, 2026 that may be closed by this pull request
4 tasks
@xihxxn xihxxn merged commit 597e56a into develop May 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feat] 커리큘럼 CRUD api 재설계

2 participants