POST api/News/AddComment

Request Information

URI Parameters

None.

Body Parameters

NewsCommentModel
NameDescriptionTypeAdditional information
accountGuid

globally unique identifier

None.

newsId

integer

None.

comment

string

None.

Request Formats

application/json, text/json

Sample:
{
  "accountGuid": "6b49b201-5e58-49b5-adcb-0dbda187be84",
  "newsId": 2,
  "comment": "sample string 3"
}

text/plain, application/octet-stream

Sample:
{"accountGuid":"6b49b201-5e58-49b5-adcb-0dbda187be84","newsId":2,"comment":"sample string 3"}

application/xml, text/xml

Sample:
<NewsCommentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RashakaApi.ApiRequestBody">
  <accountGuid>6b49b201-5e58-49b5-adcb-0dbda187be84</accountGuid>
  <comment>sample string 3</comment>
  <newsId>2</newsId>
</NewsCommentModel>

multipart/form-data, application/form-data

Sample:
<NewsCommentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RashakaApi.ApiRequestBody"><accountGuid>6b49b201-5e58-49b5-adcb-0dbda187be84</accountGuid><comment>sample string 3</comment><newsId>2</newsId></NewsCommentModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/plain, application/octet-stream, application/xml, text/xml, multipart/form-data, application/form-data

Sample:

Sample not available.