POST api/News/Add
Request Information
URI Parameters
None.
Body Parameters
NewsModelName | Description | Type | Additional information |
---|---|---|---|
ID | integer |
None. |
|
HeadLine | string |
None. |
|
Body | string |
None. |
|
Scrollable | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "ID": 1, "HeadLine": "sample string 2", "Body": "sample string 3", "Scrollable": true }
application/xml, text/xml
Sample:
<NewsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DAWebAPI.Models"> <Body>sample string 3</Body> <HeadLine>sample string 2</HeadLine> <ID>1</ID> <Scrollable>true</Scrollable> </NewsModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
integerResponse Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>