Community Service
HomeCommunity Service
Api Reference
  • User Activity
  • Comment
  • Comment V2
  • Post
Changelog Release
HomeCommunity Service
Api Reference
  • User Activity
  • Comment
  • Comment V2
  • Post
Changelog Release
  1. Comment Api
  • Introduction
  • Changelog Release
  • Local Development
  • UserActivity Api
    • Get User Comment
      GET
    • Get User Posts
      GET
    • Get User Activity Info
      GET
  • Comment Api
    • LikeUnlikeComment
      POST
    • CommentPost
      POST
    • UpdateComment
      POST
    • DeleteComment
      DELETE
    • Get Comment by Post Id
      GET
    • Get Reply Comment by Post Id and Post Id
      GET
  • CommentV2 Api
    • CommentPost
      POST
  • Post Api
    • GetAllPost
      GET
    • CreatePost
      POST
    • HidePost
      GET
    • GetAllLikedPosts
      GET
    • LikeUnlikePost
      POST
    • ReportPost
      POST
    • SearchPosts
      GET
    • SharePost
      GET
    • UpdatePost
      POST
    • GetAllPostV2
      GET
    • VotePost
      POST
    • GetPost
      GET
    • DeletePost
      DELETE
    • GetRelatedPost
      GET
  1. Comment Api

LikeUnlikeComment

POST
/comment/like/{id}
Comment Api
Like and Unlike Comment Process

Request

Path Params
id
string 
required
Comment ID
Header Params
Authorization
string 
required
Insert your access token
Body Params application/json
like
boolean 
optional
Example
{
    "like": true
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/comment/like/' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "like": true
}'

Responses

🟢200OK
application/json
Body
createdAt
string 
optional
id
string 
optional
isLiked
boolean 
optional
isOwnComment
boolean 
optional
postId
string 
optional
repliedTo
object (dto.AuthorResponse) 
optional
fullName
string 
optional
id
string 
optional
urlImage
string 
optional
userId
string 
optional
repliedToCommentId
string 
optional
replyText
string 
optional
totalLike
integer 
optional
totalReply
integer 
optional
updatedAt
string 
optional
userId
object (dto.AuthorResponse) 
optional
Example
{
    "createdAt": "string",
    "id": "string",
    "isLiked": true,
    "isOwnComment": true,
    "postId": "string",
    "repliedTo": {
        "fullName": "string",
        "id": "string",
        "urlImage": "string",
        "userId": "string"
    },
    "repliedToCommentId": "string",
    "replyText": "string",
    "totalLike": 0,
    "totalReply": 0,
    "updatedAt": "string",
    "userId": {
        "fullName": "string",
        "id": "string",
        "urlImage": "string",
        "userId": "string"
    }
}
Modified at 2023-01-25 05:57:12
Previous
Get User Activity Info
Next
CommentPost
Built with