Create Comment
add new comment into the post
POST
/posts/{postId}/comments
<Description of the endpoint>
Headers
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Request-Body
Name
Type
Description
text
string
content of the comment
anonymity
boolean
anonymity of the comment
Response
{
"commentId": 1,
"text": "우왕 내용이당",
"anonymity": true,
"commentorId": 1
}
// 'createdDate'와 'updatedDate'는 서버에서 자동으로 관리되며 요청에 포함되지 않습니다.
피드백 받은 내용
익명성 여부를 설정할 수 있다면 Request Body에 anonymity 필드 추가
Response에 "commentor": "익명1" 대신 anonymity: true로
Last updated