-
Notifications
You must be signed in to change notification settings - Fork 0
Create comment
김은우 edited this page Mar 20, 2020
·
1 revision
Context-type : application/json
POST /api/post/:id/comment
header
{
"Cookie": "쿠키 값"
}
body
{
"content": "댓글입니다"
}
Success : 200
{
"id": 2,
"content": "댓글입니다",
"isDeleted": false,
"createdAt": "2020-03-19T05:58:20.000Z",
"updatedAt": "2020-03-19T06:06:31.000Z",
"UserId": "1",
"PostId": "2",
"ParentId": "null",
"User": {
"id": 1,
"nickname": "aaa",
"Img": {
"src": "123.jpg",
}
}
}
Fail : 404 포스트가 없을 경우
"message": "포스트가 존재하지 않습니다."