POST api/Country/AddCountry
Request Information
URI Parameters
None.
Body Parameters
CountryVM| Name | Description | Type | Additional information |
|---|---|---|---|
| CountryId | integer |
None. |
|
| CountryName | string |
None. |
|
| IsActive | boolean |
None. |
|
| Message | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"countryId": 1,
"countryName": "sample string 2",
"isActive": true,
"message": "sample string 4"
}
application/xml, text/xml
Sample:
<CountryVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IMS.VM"> <CountryId>1</CountryId> <CountryName>sample string 2</CountryName> <IsActive>true</IsActive> <Message>sample string 4</Message> </CountryVM>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
stringResponse Formats
application/json, text/json
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>