Open miffyKing opened 1 year ago
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 |
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 가 필요하지 않을 것 같다 판단해 수정하였습니다.
목적