From 8e547650b2d1e431ae2cc752fc4b1d567fb19da3 Mon Sep 17 00:00:00 2001 From: xhaktmchl Date: Sun, 6 Nov 2022 14:02:57 +0900 Subject: [PATCH] =?UTF-8?q?#27=20fix:swagger=ED=8A=B8=EB=9F=AC=EB=B8=94=20?= =?UTF-8?q?=EC=8A=88=ED=8C=85=3D=20commentController=EC=97=90=20@ApiImplic?= =?UTF-8?q?itParam=20=EC=96=B4=ED=86=A0=ED=85=8C=EC=9D=B4=EC=85=98=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../server/board/controller/CommenrController.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/server/src/main/java/com/yogit/server/board/controller/CommenrController.java b/server/src/main/java/com/yogit/server/board/controller/CommenrController.java index 456db49..a617f80 100644 --- a/server/src/main/java/com/yogit/server/board/controller/CommenrController.java +++ b/server/src/main/java/com/yogit/server/board/controller/CommenrController.java @@ -52,10 +52,6 @@ public ApplicationResponse createComment(@RequestBody @Validated Cre @ApiResponse(code= 404, message = "존재하지 않는 클립보드입니다."), @ApiResponse(code = 4000 , message = "서버 오류입니다.") }) - @ApiImplicitParams({ - @ApiImplicitParam(name = "userId", required = true, dataTypeClass = Long.class, example = "1"), - @ApiImplicitParam(name = "clipBoardId", required = true, dataTypeClass = Long.class, example = "1") - }) @GetMapping("/clipboard/{clipBoardId}/user/{userId}") public ApplicationResponse> findAllComments(@PathVariable("clipBoardId") Long clipBoardId, @PathVariable("userId") Long userId){ return commentService.findAllComments(clipBoardId, userId); @@ -74,10 +70,6 @@ public ApplicationResponse> findAllComments(@PathVariable("clip @ApiResponse(code= 404, message = "존재하지 않는 코멘트입니다."), @ApiResponse(code = 4000 , message = "서버 오류입니다.") }) - @ApiImplicitParams({ - @ApiImplicitParam(name = "userId", required = true, dataTypeClass = Long.class, example = "1"), - @ApiImplicitParam(name = "commentId", required = true, dataTypeClass = Long.class, example = "1") - }) @PatchMapping("/{commentId}") public ApplicationResponse deleteComment(@PathVariable("commentId") Long commentId, @RequestBody @Validated DeleteCommentReq deleteCommentReq){ return commentService.deleteComment(deleteCommentReq, commentId); @@ -96,10 +88,6 @@ public ApplicationResponse deleteComment(@PathVariable("commen @ApiResponse(code= 404, message = "존재하지 않는 코멘트입니다."), @ApiResponse(code = 4000 , message = "서버 오류입니다.") }) - @ApiImplicitParams({ - @ApiImplicitParam(name = "userId", required = true, dataTypeClass = Long.class, example = "1"), - @ApiImplicitParam(name = "commentId", required = true, dataTypeClass = Long.class, example = "1") - }) @PatchMapping("/{commentId}/content") public ApplicationResponse updateComment(@PathVariable("commentId") Long commentId, @RequestBody @Validated PatchCommentReq patchCommentReq){ return commentService.updateComment(patchCommentReq, commentId);