[ Description ]
- 게시글의 댓글 모두 불러오기
[ request ]
- Pathvariable
- postid : 게시글 아이디
[ Responses ]
- 200 OK
- commentDto : List (댓글)
- comment id : 댓글 아이디
- parent comment id : 부모 댓글 아이디(0)
- author id : 댓글 작성자 아이디
- author name : 댓글 작성자 이름
- created at : 댓글 작성 시각
- authorImageUrl : 사용자 이미지
- contents : 댓글 내용
- commentDto : List (대댓글)
- comment id : 대댓글 아이디
- parent comment id : 부모 댓글 아이디
- author id : 대댓글 작성자 아이디
- author name : 대댓글 작성자 이름
- created at : 댓글 작성 시각
- author image url : 사용자 이미지
- contents : 대댓글 내용
//Response "comments" : [ { "commentId" : 1, "parentCommentId" : 0, "authorId" : 10001, "authorName" : "admin", "authorImageUrl" : "http://amazon.com/url", "createdAt" : 시간 "contents" : "blahblahblahhhh" "childComments" : [ { "commentId" : 2, "parentCommentId" : 1, "authorId" : 10004, "authorName" : "newnewnewguest", "authorImageUrl" : "http://amazon.com/url", "createdAt" : 시간 "contents" : "okokokookok" } ] } ]
- 400 Bad Request
- 404 Not Found
프론트와 논의 후 페이징 추가!!
pray
- 댓글 조회는 Authoriztion이 필요 없을것같은데 혹시 따로 사용될 곳이 있을까요??
- 대댓글을 표현하려면 commentDto 안에 commentDto가 또 있어야 할것같아요! ✅