Skip to content

Commit

Permalink
[Fix] ImageController Endpoint 에러 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
choeun7 committed Mar 22, 2024
1 parent f509153 commit 8825127
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public ResponseEntity<CommonDto> createGuestBookImage(
@ApiResponse(responseCode = "200", description = "이미지 조회 성공", content = { @Content(mediaType = "application/json", schema = @Schema(implementation = ImageResponseDto.class) ) } ),
@ApiResponse(responseCode = "400", description = "이미지 조회 실패", content = { @Content(mediaType = "application/json", schema = @Schema(implementation = ErrorResponse.class) ) } ),
})
@GetMapping(value = "/{spotId}")
@GetMapping(value = "/spot/{spotId}")
// @ResponseStatus(value = HttpStatus.OK)
public ResponseEntity<CommonDto> findImageBySpotId(
@CurrentUser HttpServletRequest request,
Expand All @@ -96,7 +96,7 @@ public ResponseEntity<CommonDto> findImageBySpotId(
@ApiResponse(responseCode = "200", description = "이미지 조회 성공", content = { @Content(mediaType = "application/json", schema = @Schema(implementation = ImageResponseDto.class) ) } ),
@ApiResponse(responseCode = "400", description = "이미지 조회 실패", content = { @Content(mediaType = "application/json", schema = @Schema(implementation = ErrorResponse.class) ) } ),
})
@GetMapping(value = "/{storeId}")
@GetMapping(value = "/store/{storeId}")
// @ResponseStatus(value = HttpStatus.OK)
public ResponseEntity<CommonDto> findImageByStoreId(
@CurrentUser HttpServletRequest request,
Expand All @@ -110,7 +110,7 @@ public ResponseEntity<CommonDto> findImageByStoreId(
@ApiResponse(responseCode = "200", description = "이미지 조회 성공", content = { @Content(mediaType = "application/json", schema = @Schema(implementation = ImageResponseDto.class) ) } ),
@ApiResponse(responseCode = "400", description = "이미지 조회 실패", content = { @Content(mediaType = "application/json", schema = @Schema(implementation = ErrorResponse.class) ) } ),
})
@GetMapping(value = "/{guestBookId}")
@GetMapping(value = "/guestbook/{guestBookId}")
// @ResponseStatus(value = HttpStatus.OK)
public ResponseEntity<CommonDto> findImageByGuestBookId(
@CurrentUser HttpServletRequest request,
Expand All @@ -125,7 +125,7 @@ public ResponseEntity<CommonDto> findImageByGuestBookId(
@ApiResponse(responseCode = "200", description = "이미지 삭제 성공", content = { @Content(mediaType = "application/json", schema = @Schema(implementation = Message.class) ) } ),
@ApiResponse(responseCode = "400", description = "이미지 삭제 실패", content = { @Content(mediaType = "application/json", schema = @Schema(implementation = ErrorResponse.class) ) } ),
})
@DeleteMapping(value = "/{spotId}")
@DeleteMapping(value = "/spot/{spotId}")
// @ResponseStatus(value = HttpStatus.OK)
public ResponseEntity<CommonDto> deleteImageBySpotId(
@RequestParam Long spotId
Expand All @@ -138,7 +138,7 @@ public ResponseEntity<CommonDto> deleteImageBySpotId(
@ApiResponse(responseCode = "200", description = "이미지 삭제 성공", content = { @Content(mediaType = "application/json", schema = @Schema(implementation = Message.class) ) } ),
@ApiResponse(responseCode = "400", description = "이미지 삭제 실패", content = { @Content(mediaType = "application/json", schema = @Schema(implementation = ErrorResponse.class) ) } ),
})
@DeleteMapping(value = "/{storeId}")
@DeleteMapping(value = "/store/{storeId}")
// @ResponseStatus(value = HttpStatus.OK)
public ResponseEntity<CommonDto> deleteImageByStoreId(
@RequestParam Long storeId
Expand All @@ -151,7 +151,7 @@ public ResponseEntity<CommonDto> deleteImageByStoreId(
@ApiResponse(responseCode = "200", description = "이미지 삭제 성공", content = { @Content(mediaType = "application/json", schema = @Schema(implementation = Message.class) ) } ),
@ApiResponse(responseCode = "400", description = "이미지 삭제 실패", content = { @Content(mediaType = "application/json", schema = @Schema(implementation = ErrorResponse.class) ) } ),
})
@DeleteMapping(value = "/{guestBookId}")
@DeleteMapping(value = "/guestbook/{guestBookId}")
// @ResponseStatus(value = HttpStatus.OK)
public ResponseEntity<CommonDto> deleteImageByGuestBookId(
@RequestParam Long guestBookId
Expand Down

0 comments on commit 8825127

Please sign in to comment.