POST api/Retail/News

Documentation for 'News'.

Request Information

Parameters

NameDescriptionAdditional information
Info
Documentation for 'Info'.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "info": "sample string 1"
}

application/xml, text/xml

Sample:
<RetailController.Params xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bravissh33.Controllers">
  <info>sample string 1</info>
</RetailController.Params>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'FormUrlEncodedMediaTypeFormatterTracer' to write type 'Params'.

Response Information

Response body formats

application/json, text/json

Sample:
[
  {
    "Nid": 1,
    "Descr": "sample string 2",
    "username": "sample string 3",
    "date": "sample string 4"
  },
  {
    "Nid": 1,
    "Descr": "sample string 2",
    "username": "sample string 3",
    "date": "sample string 4"
  },
  {
    "Nid": 1,
    "Descr": "sample string 2",
    "username": "sample string 3",
    "date": "sample string 4"
  }
]

application/xml, text/xml

Sample:
<ArrayOfNews xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bravissh33">
  <News>
    <Descr>sample string 2</Descr>
    <Nid>1</Nid>
    <date>sample string 4</date>
    <username>sample string 3</username>
  </News>
  <News>
    <Descr>sample string 2</Descr>
    <Nid>1</Nid>
    <date>sample string 4</date>
    <username>sample string 3</username>
  </News>
  <News>
    <Descr>sample string 2</Descr>
    <Nid>1</Nid>
    <date>sample string 4</date>
    <username>sample string 3</username>
  </News>
</ArrayOfNews>