POST api/CountryModels
Request Information
URI Parameters
None.
Body Parameters
CountryModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| ISOCode | string |
Required |
|
| Name | string |
Required |
|
| NameCapital | string |
None. |
|
| ISO3 | string |
None. |
|
| NumCode | string |
None. |
|
| PhoneCode | string |
None. |
Request Formats
application/xml, text/xml
Sample:
<CountryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CCT.VerifyDoc.API.Models"> <ISO3>sample string 5</ISO3> <ISOCode>sample string 2</ISOCode> <Id>1</Id> <Name>sample string 3</Name> <NameCapital>sample string 4</NameCapital> <NumCode>sample string 6</NumCode> <PhoneCode>sample string 7</PhoneCode> </CountryModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
application/json, text/json
Sample:
{
"Id": 1,
"PhoneCode": "sample string 7",
"NumCode": "sample string 6",
"ISO3": "sample string 5",
"NameCapital": "sample string 4",
"Name": "sample string 3",
"ISOCode": "sample string 2"
}
Response Information
Resource Description
CountryModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| ISOCode | string |
Required |
|
| Name | string |
Required |
|
| NameCapital | string |
None. |
|
| ISO3 | string |
None. |
|
| NumCode | string |
None. |
|
| PhoneCode | string |
None. |
Response Formats
application/xml, text/xml
Sample:
<CountryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CCT.VerifyDoc.API.Models"> <ISO3>sample string 5</ISO3> <ISOCode>sample string 2</ISOCode> <Id>1</Id> <Name>sample string 3</Name> <NameCapital>sample string 4</NameCapital> <NumCode>sample string 6</NumCode> <PhoneCode>sample string 7</PhoneCode> </CountryModel>
application/json, text/json
Sample:
{
"Id": 1,
"PhoneCode": "sample string 7",
"NumCode": "sample string 6",
"ISO3": "sample string 5",
"NameCapital": "sample string 4",
"Name": "sample string 3",
"ISOCode": "sample string 2"
}