diff --git a/src/main/java/com/snowthon/snowman/controller/UserController.java b/src/main/java/com/snowthon/snowman/controller/UserController.java index 41fbfb5..f8d252e 100644 --- a/src/main/java/com/snowthon/snowman/controller/UserController.java +++ b/src/main/java/com/snowthon/snowman/controller/UserController.java @@ -37,10 +37,10 @@ public ResponseDto archiving(@PathVariable("weatherId") Long regionId) { } //4-2. 모아 보기(상세) - @GetMapping("/vote-history/{voteHistoryId}") + @GetMapping("/vote-history/{archiveId}/details") @Operation(summary = "아카이빙 상세보기", description = "상세한 투표정보를 가져옵니다.") - public ResponseDto archivingDetail(@PathVariable Long voteHistoryId) { - return ResponseDto.ok(userService.getVoteHistoryById(voteHistoryId)); + public ResponseDto archivingDetail(@PathVariable Long archiveId) { + return ResponseDto.ok(userService.getVoteHistoryById(archiveId)); } // @PostMapping("/make-testUser") diff --git a/src/main/java/com/snowthon/snowman/dto/response/ArchivingDto.java b/src/main/java/com/snowthon/snowman/dto/response/ArchivingDto.java index bd01f4b..732b46d 100644 --- a/src/main/java/com/snowthon/snowman/dto/response/ArchivingDto.java +++ b/src/main/java/com/snowthon/snowman/dto/response/ArchivingDto.java @@ -28,7 +28,7 @@ public class ArchivingDto{ @Getter @NoArgsConstructor(access = lombok.AccessLevel.PROTECTED) public static class ArchivingDetailDto { - @JsonProperty("archive_id") @Schema(description = "아카이브 아이디", example = "1") + @JsonProperty("archiveId") @Schema(description = "아카이브 아이디", example = "1") @NotNull(message = "이름은 필수입니다.") private Long archiveId;