Skip to content

Commit 158eb40

Browse files
committed
PostController description 작성
1 parent 6b36d08 commit 158eb40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

back/src/main/java/com/back/domain/post/post/controller/PostController.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public class PostController {
2626
private final PostDetailFacade postDetailFacade;
2727

2828

29-
@Operation(summary = "게시글 조회 - 페이징 처리")
29+
@Operation(summary = "게시글 조회 - 페이징 처리", description = "keyword는 null 일수 있습니다. keyword는 title, member name(작성자 이름) 검색에 활용됩니다. \n 페이지는 10개씩 보여줍니다.")
3030
@GetMapping("/page/{postType}")
3131
public RsData<PostPagingResponse> getPostWithPage(
3232
@PathVariable Post.PostType postType,
@@ -85,7 +85,7 @@ public RsData<Void> removePost(@PathVariable Long post_id) {
8585
return new RsData<>("200", "게시글 삭제 성공", null);
8686
}
8787

88-
@Operation(summary = "게시글 수정")
88+
@Operation(summary = "게시글 수정", description = "title, content은 공백이거나 null 일 수 없습니다. 글자수 제한은 없습니다. ")
8989
@PutMapping("/{post_id}")
9090
public RsData<Void> updatePost(@PathVariable Long post_id
9191
,@Valid @RequestBody PostModifyRequest postModifyRequest) {
@@ -118,7 +118,7 @@ public RsData<PostLikedResponse> disLikePost(@PathVariable Long post_id) {
118118
}
119119

120120

121-
@Operation(summary = "게시글 상세페이지")
121+
@Operation(summary = "게시글 상세페이지", description = "사용자 단건 조회시 사용")
122122
@GetMapping("/detail/{post_id}")
123123
public RsData<PostDetailResponse> getPostDetail(@PathVariable Long post_id) {
124124

0 commit comments

Comments
 (0)