GET api/FlightApi/GetCountriesWithCities
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of Country| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
Required String length: inclusive between 0 and 50 |
|
| NameAr | string |
Required String length: inclusive between 0 and 50 |
|
| LocalizedName | string |
String length: inclusive between 0 and 50 |
|
| Code | string |
Required String length: inclusive between 0 and 10 |
|
| FlagImagePath | string |
String length: inclusive between 0 and 1000 |
|
| PhoneCode | string |
String length: inclusive between 0 and 50 |
|
| Cities | Collection of City |
None. |
|
| RegionId | integer |
None. |
|
| EnabledOnCOD | boolean |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"Name": "sample string 2",
"NameAr": "sample string 3",
"LocalizedName": "sample string 4",
"Code": "sample string 5",
"FlagImagePath": "sample string 6",
"PhoneCode": "sample string 7",
"Cities": [
{
"Id": 1,
"Name": "sample string 2",
"NameAr": "sample string 3",
"LocalizedName": "sample string 4",
"CountryId": 5,
"Code": "sample string 6"
},
{
"Id": 1,
"Name": "sample string 2",
"NameAr": "sample string 3",
"LocalizedName": "sample string 4",
"CountryId": 5,
"Code": "sample string 6"
}
],
"RegionId": 1,
"EnabledOnCOD": true
},
{
"Id": 1,
"Name": "sample string 2",
"NameAr": "sample string 3",
"LocalizedName": "sample string 4",
"Code": "sample string 5",
"FlagImagePath": "sample string 6",
"PhoneCode": "sample string 7",
"Cities": [
{
"Id": 1,
"Name": "sample string 2",
"NameAr": "sample string 3",
"LocalizedName": "sample string 4",
"CountryId": 5,
"Code": "sample string 6"
},
{
"Id": 1,
"Name": "sample string 2",
"NameAr": "sample string 3",
"LocalizedName": "sample string 4",
"CountryId": 5,
"Code": "sample string 6"
}
],
"RegionId": 1,
"EnabledOnCOD": true
}
]
application/xml, text/xml
Sample:
<ArrayOfCountry xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Flynet.Common.DataContracts">
<Country>
<Cities>
<City>
<Code>sample string 6</Code>
<CountryId>5</CountryId>
<Id>1</Id>
<LocalizedName>sample string 4</LocalizedName>
<Name>sample string 2</Name>
<NameAr>sample string 3</NameAr>
</City>
<City>
<Code>sample string 6</Code>
<CountryId>5</CountryId>
<Id>1</Id>
<LocalizedName>sample string 4</LocalizedName>
<Name>sample string 2</Name>
<NameAr>sample string 3</NameAr>
</City>
</Cities>
<Code>sample string 5</Code>
<EnabledOnCOD>true</EnabledOnCOD>
<FlagImagePath>sample string 6</FlagImagePath>
<Id>1</Id>
<LocalizedName>sample string 4</LocalizedName>
<Name>sample string 2</Name>
<NameAr>sample string 3</NameAr>
<PhoneCode>sample string 7</PhoneCode>
<RegionId>1</RegionId>
</Country>
<Country>
<Cities>
<City>
<Code>sample string 6</Code>
<CountryId>5</CountryId>
<Id>1</Id>
<LocalizedName>sample string 4</LocalizedName>
<Name>sample string 2</Name>
<NameAr>sample string 3</NameAr>
</City>
<City>
<Code>sample string 6</Code>
<CountryId>5</CountryId>
<Id>1</Id>
<LocalizedName>sample string 4</LocalizedName>
<Name>sample string 2</Name>
<NameAr>sample string 3</NameAr>
</City>
</Cities>
<Code>sample string 5</Code>
<EnabledOnCOD>true</EnabledOnCOD>
<FlagImagePath>sample string 6</FlagImagePath>
<Id>1</Id>
<LocalizedName>sample string 4</LocalizedName>
<Name>sample string 2</Name>
<NameAr>sample string 3</NameAr>
<PhoneCode>sample string 7</PhoneCode>
<RegionId>1</RegionId>
</Country>
</ArrayOfCountry>