diff --git a/participation-service/src/main/java/com/kt/event/participation/presentation/controller/ParticipationController.java b/participation-service/src/main/java/com/kt/event/participation/presentation/controller/ParticipationController.java index d6c01a7..39f8b58 100644 --- a/participation-service/src/main/java/com/kt/event/participation/presentation/controller/ParticipationController.java +++ b/participation-service/src/main/java/com/kt/event/participation/presentation/controller/ParticipationController.java @@ -62,13 +62,14 @@ public class ParticipationController { /** * 참여자 목록 조회 * GET /participations/{eventId}/participants + * GET /events/{eventId}/participants (프론트엔드 호환) */ @Operation( summary = "참여자 목록 조회", description = "이벤트의 참여자 목록을 페이징하여 조회합니다. " + "정렬 가능한 필드: createdAt(기본값), participantId, name, phoneNumber, bonusEntries, isWinner, wonAt" ) - @GetMapping("/participations/{eventId}/participants") + @GetMapping({"/participations/{eventId}/participants", "/events/{eventId}/participants"}) public ResponseEntity>> getParticipants( @Parameter(description = "이벤트 ID", example = "evt_20250124_001") @PathVariable String eventId, @@ -90,8 +91,9 @@ public class ParticipationController { /** * 참여자 상세 조회 * GET /participations/{eventId}/participants/{participantId} + * GET /events/{eventId}/participants/{participantId} (프론트엔드 호환) */ - @GetMapping("/participations/{eventId}/participants/{participantId}") + @GetMapping({"/participations/{eventId}/participants/{participantId}", "/events/{eventId}/participants/{participantId}"}) public ResponseEntity> getParticipant( @PathVariable String eventId, @PathVariable String participantId) {