Request
PATCH /api/v1/comments/{commentId}
{
content: "반갑습니다.",
}
Response
200 Success
{
message: "댓글 수정 성공",
status: 200,
data: {
commentId: 0,
content: "반갑습니다.",
createdAt: "2022-07-26T11:26:24",
updatedAt: "2022-07-26T11:28:49",
isEdited: true,
isDeleted: false,
user: {
userId: 0,
nickname: "미스터공공",
profileImage: "www.naver.com"
},
likeCount: 0,//좋아요 갯수
likeCount: false,//좋아요 여부
childrenCount: 0,//자식댓글 갯수
}
}
400 Bad Request - 필수 필드 누락이나 글자 수 초과 시
{
message: "댓글 수정 실패 - 양식이 잘못되었습니다.",
status: 400,
code: "미정"
}
403 Forbidden - 유저가 로그인 되어있지 않거나 유저의 권한이 없을 시
{
message: "댓글 수정 실패 - 권한이 없습니다.",
status: 403,
code: "미정"
}
500 Server Error - 서버 내부 문제. 발생 시 비상.
{
message: "서버 에러",
status: 500,
code: "미정"
}