POST
ToggleLike
Toggle Like through the Comment service.
/api.v1.comment.CommentService/ToggleLike Bearer required01
Request
ToggleCommentLikeRequest
ToggleCommentLikeRequestapi.v1.comment.ToggleCommentLikeRequest1 fields
Toggle Comment Like Request message.
commentIduint32Comment Id value.
{
"commentId": 1
}02
Response
ToggleCommentLikeResponse
ToggleCommentLikeResponseapi.v1.comment.ToggleCommentLikeResponse2 fields
Toggle Comment Like Response message.
isLikedboolIs Liked value.
likeCountint32Like Count value.
{
"isLiked": true,
"likeCount": 1
}03
Error handling
Common failure codes
unauthenticatedThe Bearer token is missing or invalid.
invalid_argumentThe request payload failed validation.
internalThe service could not complete the operation.