Skip to content

Commit

Permalink
Merge pull request #32 from jjuuuunnii/main
Browse files Browse the repository at this point in the history
Fix. 4-2 api 수정
  • Loading branch information
jjuuuunnii authored Jan 12, 2024
2 parents 4db1ddc + 101ad37 commit 19d3638
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 19d3638

Please sign in to comment.