GET api/FlightApi/GetCitiesByCountryId?countryId={countryId}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
countryId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of CityName | 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 |
|
CountryId | integer |
None. |
|
Code | string |
String length: inclusive between 0 and 10 |
Response Formats
application/json, text/json
Sample:
[ { "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" } ]
application/xml, text/xml
Sample:
<ArrayOfCity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Flynet.Common.DataContracts"> <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> </ArrayOfCity>