GET api/lookup/Cities
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of CityDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Name | string |
None. |
|
| CountryId | integer |
None. |
|
| Country | CountryDto |
None. |
|
| IsActive | boolean |
None. |
|
| Id | integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Name": "sample string 1",
"CountryId": 2,
"Country": {
"Name": "sample string 1",
"Code": "sample string 2",
"Id": 3
},
"IsActive": true,
"Id": 4
},
{
"Name": "sample string 1",
"CountryId": 2,
"Country": {
"Name": "sample string 1",
"Code": "sample string 2",
"Id": 3
},
"IsActive": true,
"Id": 4
}
]
application/xml, text/xml
Sample:
<ArrayOfCityDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MayaserSolutions.Domain">
<CityDto>
<Id>4</Id>
<Country>
<Id>3</Id>
<Code>sample string 2</Code>
<Name>sample string 1</Name>
</Country>
<CountryId>2</CountryId>
<IsActive>true</IsActive>
<Name>sample string 1</Name>
</CityDto>
<CityDto>
<Id>4</Id>
<Country>
<Id>3</Id>
<Code>sample string 2</Code>
<Name>sample string 1</Name>
</Country>
<CountryId>2</CountryId>
<IsActive>true</IsActive>
<Name>sample string 1</Name>
</CityDto>
</ArrayOfCityDto>