Comment
댓글 생성
POST /api/v1/comments
Headers
Name
Type
Description
Authorization*
string
accessToken
Request Body
Name
Type
Description
post_id*
number
content*
string
{
"message": "댓글 생성 성공"
}{
"code": "JSON_001",
"message": "잘못된 JSON 요청입니다",
"detail_message": "postId: 널이어서는 안됩니다, "
}{
"code": "TOKEN_001",
"message": "유효하지 않은 토큰입니다",
"detail_message": "An error occurred while attempting to decode the Jwt: Jwt expired at 2023-09-30T13:57:22Z"
}댓글 수정
PATCH /api/v1/comments/{id}
Path Parameters
Name
Type
Description
id*
number
Headers
Name
Type
Description
Authorization*
string
accessToken
Request Body
Name
Type
Description
content
string
{
"message": "댓글 수정 성공"
}{
"code": "JSON_001",
"message": "잘못된 JSON 요청입니다",
"detail_message": "content: 공백일 수 없습니다, "
}{
"code": "TOKEN_001",
"message": "유효하지 않은 토큰입니다",
"detail_message": "An error occurred while attempting to decode the Jwt: Jwt expired at 2023-09-30T13:57:22Z"
}{
"code": "COMMENT_001",
"message": "존재하지 않는 댓글입니다",
"detail_message": "존재하지 않는 comment id입니다"
}댓글 삭제
DELETE /api/v1/comments/{id}
Path Parameters
Name
Type
Description
id*
number
Headers
Name
Type
Description
Authorization*
string
accessToken
{
"message": "댓글 삭제 성공"
}{
"code": "TOKEN_001",
"message": "유효하지 않은 토큰입니다",
"detail_message": "An error occurred while attempting to decode the Jwt: Jwt expired at 2023-09-30T13:57:22Z"
}{
"code": "COMMENT_001",
"message": "존재하지 않는 댓글입니다",
"detail_message": "존재하지 않는 comment id입니다"
}Last updated