POST api/NewsComment/PostComment
Request Information
URI Parameters
None.
Body Parameters
CommentPostModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ArticleId | integer |
None. |
|
| UserName | string |
None. |
|
| UserEmail | string |
None. |
|
| CommentText | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"ArticleId": 1,
"UserName": "sample string 2",
"UserEmail": "sample string 3",
"CommentText": "sample string 4"
}
text/xml
Sample:
<CommentPostModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ProjectAPI.Controllers.api"> <ArticleId>1</ArticleId> <CommentText>sample string 4</CommentText> <UserEmail>sample string 3</UserEmail> <UserName>sample string 2</UserName> </CommentPostModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/xml
Sample:
Sample not available.