GET api/2.0/community/blog/{postid}/comment
Returns a list of all the comments on the blog post with the ID specified in the request.
Name |
Description |
Type |
Example |
postid
sent in url
|
Post ID (GUID)
|
guid
|
9924256A-739C-462b-AF15-E652A3B1B6EB
|
GET api/2.0/community/blog/%229924256A-739C-462b-AF15-E652A3B1B6EB%22/comment
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
application/json
{
"status": 0,
"response": {
"Id": "c2020-12-03T21:36:13.0325127Z",
"Created": "2020-12-03T21:36:13.0325127Z",
"Updated": "c2020-12-03T21:36:13.0325127Z",
"CreatedBy": {
"Id": "00000000-0000-0000-0000-000000000000",
"DisplayName": "Mike Zanyatski",
"Title": "Manager",
"AvatarSmall": "url to small avatar",
"ProfileUrl": "\\/Products\\/People\\/Profile.aspx?user=administrator"
},
"Text": "comment text",
"ParentId": "c2020-12-03T21:36:13.0325127Z"
}
}
text/xml
<result>
<status>0</status>
<response>
<Id>c2020-12-03T21:36:13.0325127Z</Id>
<Created>2020-12-03T21:36:13.0325127Z</Created>
<Updated>c2020-12-03T21:36:13.0325127Z</Updated>
<CreatedBy>
<Id>00000000-0000-0000-0000-000000000000</Id>
<DisplayName>Mike Zanyatski</DisplayName>
<Title>Manager</Title>
<AvatarSmall>url to small avatar</AvatarSmall>
<ProfileUrl>\/Products\/People\/Profile.aspx?user=administrator</ProfileUrl>
</CreatedBy>
<Text>comment text</Text>
<ParentId>c2020-12-03T21:36:13.0325127Z</ParentId>
</response>
</result>