Heart
좋아요 생성
POST /api/v1/hearts
Headers
Name
Type
Description
Authorization*
string
accessToken
Request Body
Name
Type
Description
id*
number
type id
heart_type*
string
post or comment
{
"message": "좋아요 생성 성공"
}{
"code": "JSON_001",
"message": "잘못된 JSON 요청입니다",
"detail_message": "heartType: 널이어서는 안됩니다, "
}{
"code": "TOKEN_001",
"message": "유효하지 않은 토큰입니다",
"detail_message": "An error occurred while attempting to decode the Jwt: Jwt expired at 2023-09-30T13:57:22Z"
}{
"code": "HEART_002",
"message": "중복된 좋아요입니다",
"detail_message": "이미 좋아요를 누른 게시글입니다"
}좋아요 삭제
DELETE /api/v1/hearts
Headers
Name
Type
Description
Authorization*
string
accessToken
Request Body
Name
Type
Description
id*
number
type id
heart_type*
string
post or comment
{
"message": "좋아요 생성 성공"
}{
"code": "JSON_001",
"message": "잘못된 JSON 요청입니다",
"detail_message": "heartType: 널이어서는 안됩니다, "
}{
"code": "TOKEN_001",
"message": "유효하지 않은 토큰입니다",
"detail_message": "An error occurred while attempting to decode the Jwt: Jwt expired at 2023-09-30T13:57:22Z"
}{
"code": "HEART_001",
"message": "존재하지 않는 좋아요입니다",
"detail_message": "게시글에 대한 좋아요가 없습니다"
}Last updated