Skip to content

Commit

Permalink
[feat/3] swagger 명세 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
dlguszoo committed Jul 4, 2024
1 parent 96cb60c commit 338e8d1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/com/umc/dream/controller/DreamController.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ private ApiResponse<List<GetDreamResponseDto>> GetDream(@RequestParam Long user_
}

@GetMapping("/diary/{user_id}/{diary_id}")
@Operation(summary = "내 꿈 일기 상세 조회", description = "내 꿈 일기 상세 조회 API입니다")
@Parameters({
@Parameter(name = "user_id", description = "자신의 pk"),
@Parameter(name = "dream_id", description = "꿈 일기의 pk")
})
private ApiResponse<ViewDreamResponseDto> ViewDream(@RequestParam Long user_id, @RequestParam Long dream_id) {
ViewDreamResponseDto viewDreamResponseDto = dreamService.viewDream(user_id, dream_id);
return ApiResponse.onSuccess(viewDreamResponseDto);
Expand Down

0 comments on commit 338e8d1

Please sign in to comment.