HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
♥️
2기 최종 프로젝트 팀별 공간
/
🌳
[팀 05] Forest
/
🪐
BE WorkSpace
/
🗯️
API 명세
/
✅
/api/v1/ridingposts/{postid}/comments
/api/v1/ridingposts/{postid}/comments
✅

/api/v1/ridingposts/{postid}/comments

HTTP 메서드
GET
contents-type
application-json
비고
라이딩 모집 글의 댓글 리스트 불러오기
연관된 페이지
3. 라이딩 디테일 페이지
속성
⏳ 유저 스토리
[ 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 : 대댓글 내용
  • 400 Bad Request
  • 404 Not Found
 

 
프론트와 논의 후 페이징 추가!!
 
pray
  1. 댓글 조회는 Authoriztion이 필요 없을것같은데 혹시 따로 사용될 곳이 있을까요??
  1. 대댓글을 표현하려면 commentDto 안에 commentDto가 또 있어야 할것같아요! ✅
//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" } ] } ]