From 8825127daa2ef40fb8860f8f1f786f796f101f4b Mon Sep 17 00:00:00 2001 From: choeun7 Date: Fri, 22 Mar 2024 18:06:50 +0900 Subject: [PATCH] =?UTF-8?q?[Fix]=20ImageController=20Endpoint=20=EC=97=90?= =?UTF-8?q?=EB=9F=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/image/presentation/ImageController.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/ttubeog/domain/image/presentation/ImageController.java b/src/main/java/com/ttubeog/domain/image/presentation/ImageController.java index c62fe46..01723f8 100644 --- a/src/main/java/com/ttubeog/domain/image/presentation/ImageController.java +++ b/src/main/java/com/ttubeog/domain/image/presentation/ImageController.java @@ -82,7 +82,7 @@ public ResponseEntity 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 findImageBySpotId( @CurrentUser HttpServletRequest request, @@ -96,7 +96,7 @@ public ResponseEntity 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 findImageByStoreId( @CurrentUser HttpServletRequest request, @@ -110,7 +110,7 @@ public ResponseEntity 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 findImageByGuestBookId( @CurrentUser HttpServletRequest request, @@ -125,7 +125,7 @@ public ResponseEntity 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 deleteImageBySpotId( @RequestParam Long spotId @@ -138,7 +138,7 @@ public ResponseEntity 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 deleteImageByStoreId( @RequestParam Long storeId @@ -151,7 +151,7 @@ public ResponseEntity 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 deleteImageByGuestBookId( @RequestParam Long guestBookId