CoolCooool / Coolcool-Back

Coolcool Backend Repository
0 stars 0 forks source link

[feat] 댓글 API 설계 #87

Open miffyKing opened 1 year ago

miffyKing commented 1 year ago

목적

커뮤니티 게시글의 댓글 API 를 작성합니다.

상세

  • [ ] 댓글 API 작성

    참고

  • CC

miffyKing commented 1 year ago

Reply Api

Method Endpoint Description
create POST/replies/{post_id}/replies Creates a new reply for the specified post
findByPostId GET/replies?post_id={post_id} Retrieves a list of all replies for the specified post
findByReplyId GET/replies/reply_id Retrieves the specified reply
update PUT/replies/{post_id}/replies/{reply_id} Updates the specified reply
delete DELETE/replies/{post_id}/replies/{reply_id} Deletes the specified reply

miffyKing commented 1 year ago

Reply Api

Method Endpoint Description
create POST/replies Creates a new reply for the specified post
findReplies GET/replies Retrieves a list of all replies for the specified post
findReply GET/replies/reply_id Retrieves the specified reply
delete DELETE/replies/{reply_id} Deletes the specified reply

API 수정하였습니다. 게시글 별로 조회시 1:다 관계로 된 댓글들의 정보를 같이 전달 해 주기 때문에 댓글 조회 시 게시글의 id 가 필요하지 않을 것 같다 판단해 수정하였습니다.