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": "56115e09-0597-45b1-8802-2b61fdc6b2c2",
  "newsId": 2,
  "comment": "sample string 3"
}

text/plain, application/octet-stream

Sample:
{"accountGuid":"56115e09-0597-45b1-8802-2b61fdc6b2c2","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>56115e09-0597-45b1-8802-2b61fdc6b2c2</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>56115e09-0597-45b1-8802-2b61fdc6b2c2</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.