-
Notifications
You must be signed in to change notification settings - Fork 1
3 3. 댓글 대댓글 수정
Donghoon Lee edited this page Nov 2, 2021
·
3 revisions
메소드 | 경로 | 짧은 설명 |
---|---|---|
PUT | http://ServerAddress:3000/edit/:commentId | 댓글 대댓글 수정 |
변수 | 타입 | 설명 |
---|---|---|
"token" | STRING | 액세스 토큰 |
변수 | 타입 | 설명 |
---|---|---|
"commentId" | STRING | 댓글 or 대댓글 Id |
변수 | 타입 | 설명 |
---|---|---|
"content" | STRING | 내용 |
"parentType" | STRING | 부모가 게시글인지 댓글인지 여부("board" or "comment") |
"parentId" | STRING | 부모요소의 ID |
"UserId" | STRING | 댓글 or 대댓글 주인의 ID |
- parentType은 "board"와 "comment" 둘 중 하나이다.
- parentId는 부모 게시글이나 부모 댓글의 Id이다.
Success: 댓글 대댓글 수정 성공 (200)
{
"게시물 수정 완료"
}
fail: 입력값 미등록시 (400)
{
"요청이 잘못되었습니다. 재검토하고 재요청할 필요가 있습니다."
}
fail: 헤더 토큰 유무 (401)
{
message: "You are not authenticated!"
}
fail: 헤더 유효하지 않은 토큰을 입력한 경우 (403)
{
message: "Token is not valid!"
}
fail: 권한이 없는 경우 (403)
{
message: "You are not allowed to do that!"
}