Skip to content

Commit

Permalink
#27 fix:swagger트러블 슈팅= commentController에 @ApiImplicitParam 어토테이션 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
xhaktmchl committed Nov 6, 2022
1 parent 3ad4651 commit 8e54765
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ public ApplicationResponse<CommentRes> 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<List<CommentRes>> findAllComments(@PathVariable("clipBoardId") Long clipBoardId, @PathVariable("userId") Long userId){
return commentService.findAllComments(clipBoardId, userId);
Expand All @@ -74,10 +70,6 @@ public ApplicationResponse<List<CommentRes>> 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<DeleteCommentRes> deleteComment(@PathVariable("commentId") Long commentId, @RequestBody @Validated DeleteCommentReq deleteCommentReq){
return commentService.deleteComment(deleteCommentReq, commentId);
Expand All @@ -96,10 +88,6 @@ public ApplicationResponse<DeleteCommentRes> 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<CommentRes> updateComment(@PathVariable("commentId") Long commentId, @RequestBody @Validated PatchCommentReq patchCommentReq){
return commentService.updateComment(patchCommentReq, commentId);
Expand Down

0 comments on commit 8e54765

Please sign in to comment.