POST api/NewspaperMaster/AddNewspaper
Request Information
URI Parameters
None.
Body Parameters
NewspaperMaster| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| NewspaperName | string |
None. |
|
| Rate | decimal number |
None. |
|
| CompanyId | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"NewspaperName": "sample string 2",
"Rate": 3.0,
"CompanyId": "sample string 4"
}
application/xml, text/xml
Sample:
<NewspaperMaster xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewsPaperApi.Models"> <CompanyId>sample string 4</CompanyId> <Id>1</Id> <NewspaperName>sample string 2</NewspaperName> <Rate>3</Rate> </NewspaperMaster>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResultModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Status | integer |
None. |
|
| Message | string |
None. |
|
| Response | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"Status": 1,
"Message": "sample string 2",
"Response": {}
}
application/xml, text/xml
Sample:
<ResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewsPaperApi.Models"> <Message>sample string 2</Message> <Response /> <Status>1</Status> </ResultModel>