Skip to content

Commit

Permalink
kahluaband#69 Refactor: 스웨거 설명 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
woogieon8on committed Nov 9, 2024
1 parent 30952b2 commit 2d41824
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,14 @@ public ApiResponse<ReservationListResponse> getReservationListByDate(@RequestPar
}

@GetMapping("/v1/reservation/check")
@Operation(summary = "사용자 예약내역 조회", description = "사용자의 전체 예약내역을 조회합니다.")
public ApiResponse<ReservationListResponse> getReservationList(@AuthenticationPrincipal AuthDetails authDetails) {

return ApiResponse.onSuccess(reservationService.getByUser(authDetails.user()));
}

@DeleteMapping("/v1/reservation/check/{reservationId}")
@Operation(summary = "예약내역 삭제", description = "지정한 예약내역을 삭제합니다.")
public ApiResponse<?> delete(@PathVariable Long reservationId) {

reservationService.delete(reservationId);
Expand Down

0 comments on commit 2d41824

Please sign in to comment.