Skip to content

refactor: *Api 인터페이스에 중복된 URL 매핑을 지우고 컨트롤러에만 둔다 - #160

Merged
ff1451 merged 11 commits into
mainfrom
refactor/api-mapping-dedup
Oct 18, 2026
Merged

ff1451 merged 11 commits into
mainfrom
refactor/api-mapping-dedup

Conversation

@ff1451

@ff1451 ff1451 commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

요약

  • 18개 *Api 인터페이스에서 컨트롤러와 중복된 @Get/Post/Put/Patch/DeleteMapping 64개를 지웠습니다. 나머지 22개 *Api처럼 인터페이스에는 OpenAPI 문서 애노테이션만 남깁니다.
  • 지우기 전에 스크립트로 64개 매핑을 모두 컨트롤러의 같은 메서드와 대조했습니다. 63개는 path·method가 같았습니다.
  • 다른 하나는 AdminLedgerImportApi.preview입니다. 인터페이스에만 consumes = multipart/form-data가 있었는데, 구현 메서드에 매핑이 있으면 Spring은 인터페이스 매핑을 쓰지 않습니다. 그래서 지금도 적용되지 않던 값이고, 컨트롤러 쪽(consumes 없음)을 그대로 둡니다. 라우팅은 바뀌지 않습니다.

머지 순서

#148~#157 머지 후 main으로 rebase하고 ready로 바꿉니다. 이 PR의 변경은 마지막 커밋 하나입니다. #159와는 파일이 겹치지 않습니다.

검증

  • 로컬: 컴파일
  • 전체 테스트(엔드포인트 통합 테스트): CI

ff1451 added 10 commits October 18, 2026 21:52
…into chore/merge-train

# Conflicts:
#	src/main/java/com/bcsdlab/bcsdinternalapiv2/curriculum/service/AdminCurriculumService.java
auth·member·ledger·reservation 등 18개 *Api 인터페이스가 컨트롤러와 같은 매핑을 한 번 더 적고 있었다.
나머지 22개처럼 인터페이스에는 OpenAPI 문서 애노테이션만 두고, 매핑은 컨트롤러에만 둔다.

구현 메서드에 매핑이 있으면 Spring은 인터페이스 쪽 매핑을 쓰지 않으므로 라우팅은 그대로다.
AdminLedgerImportApi.preview만 인터페이스에 consumes=multipart가 더 있었는데,
지금도 적용되지 않던 값이라 컨트롤러 쪽(consumes 없음)을 그대로 둔다.
@coderabbitai

coderabbitai Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 7 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bcea6d94-dbb4-4635-a143-cb849c16eac4
📥 Commits

Reviewing files that changed from the base of the PR and between dd4c3d0 and 8802961.

📒 Files selected for processing: 18
  • src/main/java/com/bcsdlab/bcsdinternalapiv2/auth/controller/AuthApi.java
  • src/main/java/com/bcsdlab/bcsdinternalapiv2/auth/controller/PasswordResetApi.java
  • src/main/java/com/bcsdlab/bcsdinternalapiv2/game/controller/GameApi.java
  • src/main/java/com/bcsdlab/bcsdinternalapiv2/home/controller/HomeApi.java
  • src/main/java/com/bcsdlab/bcsdinternalapiv2/ledger/controller/AdminDuesApi.java
  • src/main/java/com/bcsdlab/bcsdinternalapiv2/ledger/controller/AdminDuesExemptionApi.java
  • src/main/java/com/bcsdlab/bcsdinternalapiv2/ledger/controller/AdminDuesNotificationApi.java
  • src/main/java/com/bcsdlab/bcsdinternalapiv2/ledger/controller/AdminDuesRosterApi.java
  • src/main/java/com/bcsdlab/bcsdinternalapiv2/ledger/controller/AdminLedgerApi.java
  • src/main/java/com/bcsdlab/bcsdinternalapiv2/ledger/controller/AdminLedgerImportApi.java
  • src/main/java/com/bcsdlab/bcsdinternalapiv2/member/controller/AdminMemberApi.java
  • src/main/java/com/bcsdlab/bcsdinternalapiv2/member/controller/MemberApi.java
  • src/main/java/com/bcsdlab/bcsdinternalapiv2/member/controller/MemberDirectoryApi.java
  • src/main/java/com/bcsdlab/bcsdinternalapiv2/member/controller/ServiceMemberApi.java
  • src/main/java/com/bcsdlab/bcsdinternalapiv2/reservation/controller/MyReservationApi.java
  • src/main/java/com/bcsdlab/bcsdinternalapiv2/reservation/controller/ReservationApi.java
  • src/main/java/com/bcsdlab/bcsdinternalapiv2/reservation/controller/ReservationGroupApi.java
  • src/main/java/com/bcsdlab/bcsdinternalapiv2/track/controller/TrackApi.java
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ff1451
ff1451 marked this pull request as ready for review October 18, 2026 13:39
@ff1451
ff1451 merged commit 2c17e6e into main Oct 18, 2026
3 checks passed
@ff1451
ff1451 deleted the refactor/api-mapping-dedup branch October 18, 2026 13:51
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.

1 participant