POST api/Countries
Returns any records matching the search criteria provided.
Request Information
URI Parameters
None.
Body Parameters
The parameters for the search
CountriesPostParametersName | Description | Type | Additional information |
---|---|---|---|
Name |
The country in which the port is located. Alphanumerics [0-9a-zA-Z] and '*' wilcard allowed. Case insensitive. Spaces must be encoded. |
string |
None. |
Alpha2code |
The ISO 2 character country code for the country in which the port is located. Alphanumerics [0-9a-zA-Z] and '*' wilcard allowed. Case insensitive. |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Name": "sample string 1", "Alpha2code": "sample string 2" }
application/xml, text/xml
Sample:
<CountriesPostParameters xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Name>sample string 1</Name> <Alpha2code>sample string 2</Alpha2code> </CountriesPostParameters>
Response Information
Resource Description
Collection of CountryName | Description | Type | Additional information |
---|---|---|---|
Name | string |
None. |
|
Alpha2Code | string |
None. |
|
Alpha3Code | string |
None. |
|
NumericCode | string |
None. |
|
Region | string |
None. |
|
Continent | string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Name": "sample string 1", "Alpha2Code": "sample string 2", "Alpha3Code": "sample string 3", "NumericCode": "sample string 4", "Region": "sample string 5", "Continent": "sample string 6" }, { "Name": "sample string 1", "Alpha2Code": "sample string 2", "Alpha3Code": "sample string 3", "NumericCode": "sample string 4", "Region": "sample string 5", "Continent": "sample string 6" } ]
application/xml, text/xml
Sample:
<ArrayOfCountry xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Country> <Name>sample string 1</Name> <Alpha2Code>sample string 2</Alpha2Code> <Alpha3Code>sample string 3</Alpha3Code> <NumericCode>sample string 4</NumericCode> <Region>sample string 5</Region> <Continent>sample string 6</Continent> </Country> <Country> <Name>sample string 1</Name> <Alpha2Code>sample string 2</Alpha2Code> <Alpha3Code>sample string 3</Alpha3Code> <NumericCode>sample string 4</NumericCode> <Region>sample string 5</Region> <Continent>sample string 6</Continent> </Country> </ArrayOfCountry>