diff --git a/src/main/java/com/bbteam/budgetbuddies/domain/comment/controller/CommentController.java b/src/main/java/com/bbteam/budgetbuddies/domain/comment/controller/CommentController.java index 9fad3bb4..8254f21e 100644 --- a/src/main/java/com/bbteam/budgetbuddies/domain/comment/controller/CommentController.java +++ b/src/main/java/com/bbteam/budgetbuddies/domain/comment/controller/CommentController.java @@ -70,7 +70,7 @@ public ApiResponse> findAllBySupp return ApiResponse.onSuccess(result); } - @PostMapping("/comments/delete/{commentId}") + @DeleteMapping("/comments/delete/{commentId}") public ApiResponse deleteComment(@PathVariable("commentId") @ExistComment Long commentId) { discountCommentService.deleteComment(commentId); return ApiResponse.onSuccess("ok"); @@ -82,7 +82,7 @@ public ApiResponse findSupportOne(@Pat return ApiResponse.onSuccess(result); } - @PostMapping("/supports/comments/modify") + @PutMapping("/supports/comments/modify") public ApiResponse modifySupportOne( @RequestBody CommentRequestDto.CommentModifyDto dto) { CommentResponseDto.SupportInfoCommentDto result = supportCommentService.modifyComment(dto); @@ -95,13 +95,11 @@ public ApiResponse findDiscountOne(@P return ApiResponse.onSuccess(result); } - @PostMapping("/discounts/comments/modify") + @PutMapping("/discounts/comments/modify") public ApiResponse modifyDiscountOne( @RequestBody CommentRequestDto.CommentModifyDto dto) { CommentResponseDto.DiscountInfoCommentDto result = discountCommentService.modifyComment(dto); return ApiResponse.onSuccess(result); } - - } diff --git a/src/main/java/com/bbteam/budgetbuddies/domain/comment/controller/CommentControllerApi.java b/src/main/java/com/bbteam/budgetbuddies/domain/comment/controller/CommentControllerApi.java index bd26e8d2..9054b374 100644 --- a/src/main/java/com/bbteam/budgetbuddies/domain/comment/controller/CommentControllerApi.java +++ b/src/main/java/com/bbteam/budgetbuddies/domain/comment/controller/CommentControllerApi.java @@ -85,7 +85,7 @@ ApiResponse> findAllBySupportInfo }) public ApiResponse deleteComment(@PathVariable("commentId") @ExistComment Long commentId); - @Operation(summary = "[User] SupportInfo의 댓글 요청 API ", description = "특정 댓글을 요청하는 API입니다.") + @Operation(summary = "[User] SupportInfo의 특정 댓글 요청 API ", description = "특정 댓글을 요청하는 API입니다.") @ApiResponses({ @io.swagger.v3.oas.annotations.responses.ApiResponse(responseCode = "COMMON200", description = "OK, 성공"), }) @@ -107,7 +107,7 @@ ApiResponse modifySupportOne( @RequestBody CommentRequestDto.CommentModifyDto dto); - @Operation(summary = "[User] DiscountInfo의 댓글 요청 API ", description = "특정 댓글을 요청하는 API입니다.") + @Operation(summary = "[User] DiscountInfo의 특정 댓글 요청 API", description = "특정 댓글을 요청하는 API입니다.") @ApiResponses({ @io.swagger.v3.oas.annotations.responses.ApiResponse(responseCode = "COMMON200", description = "OK, 성공"), })