특정 게시글에 댓글 등록(익명 가능)

API
comment
METHOD
POST
PATH
api/comments
개발완료
담당자

Description

<댓글 등록>
특정 게시글에 댓글 등록(익명 가능)

Request

Content-type: application/json
Shell
복사
{ "postId": 1, "content": "댓글 내용", "anonymous": "FALSE" }
JSON
복사

Response

{ "id": 1, "memberId": 1, "memberName": "John", "postId": 1, "content": "댓글 내용", "anonymous": false, "createdAt": "2024-09-26T02:56:37.716213", "updatedAt": "2024-09-26T02:56:37.716239" }
JSON
복사

Error

HTTP/1.1 4XX
”에러 메시지”