GET api/Likes?postId={postId}&likeType={likeType}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| postId | integer |
Required |
|
| likeType | LikeType |
Required |
Body Parameters
None.
Response Information
Resource Description
Likes| Name | Description | Type | Additional information |
|---|---|---|---|
| token | string |
None. |
|
| status | string |
None. |
|
| message | string |
None. |
|
| selectedLikes | Collection of LikeModel |
None. |
Response Formats
application/json, text/json
Sample:
{
"token": "sample string 1",
"status": "sample string 2",
"message": "sample string 3",
"selectedLikes": [
{
"LikeId": 1,
"PostId": 2,
"PosterId": 3,
"PosterEmoji": "sample string 4",
"DateCreated": "2026-02-04T03:30:42.8259593+00:00",
"Type": 6
},
{
"LikeId": 1,
"PostId": 2,
"PosterId": 3,
"PosterEmoji": "sample string 4",
"DateCreated": "2026-02-04T03:30:42.8259593+00:00",
"Type": 6
}
]
}
application/xml, text/xml
Sample:
<Status.Likes xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ethos.Models">
<message>sample string 3</message>
<selectedLikes>
<LikeModel>
<DateCreated>2026-02-04T03:30:42.8259593+00:00</DateCreated>
<LikeId>1</LikeId>
<PostId>2</PostId>
<PosterEmoji>sample string 4</PosterEmoji>
<PosterId>3</PosterId>
<Type>6</Type>
</LikeModel>
<LikeModel>
<DateCreated>2026-02-04T03:30:42.8259593+00:00</DateCreated>
<LikeId>1</LikeId>
<PostId>2</PostId>
<PosterEmoji>sample string 4</PosterEmoji>
<PosterId>3</PosterId>
<Type>6</Type>
</LikeModel>
</selectedLikes>
<status>sample string 2</status>
<token>sample string 1</token>
</Status.Likes>