POST v1_0/api/Content/CommentPost
Request Information
URI Parameters
None.
Body Parameters
CommentPostName | Description | Type | Additional information |
---|---|---|---|
ParentId | integer |
None. |
|
Comment | string |
Required |
|
ContentOwnerId | string |
None. |
|
ParentUserId | string |
None. |
|
ContentId | string |
Required |
|
ContentType | string |
Required |
|
FromUserId | string |
None. |
|
EmotionTypeId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "ParentId": 1, "Comment": "sample string 2", "ContentOwnerId": "sample string 3", "ParentUserId": "sample string 4", "ContentId": "sample string 5", "ContentType": "sample string 6", "FromUserId": "sample string 7", "EmotionTypeId": 8 }
application/xml, text/xml
Sample:
<CommentPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CsharpCornerAPI.Models.v1_0"> <ContentId>sample string 5</ContentId> <ContentType>sample string 6</ContentType> <EmotionTypeId>8</EmotionTypeId> <FromUserId>sample string 7</FromUserId> <Comment>sample string 2</Comment> <ContentOwnerId>sample string 3</ContentOwnerId> <ParentId>1</ParentId> <ParentUserId>sample string 4</ParentUserId> </CommentPost>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |