GET api/citiesSimple
Gets a list of all cities.
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
A collection of CitySimpleViewModel objects.
Collection of Cyberlogic.eTourism.Domain.ViewModels.Location.CitySimpleViewModelName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Name | string |
None. |
|
PrefectureId | integer |
None. |
|
PrefectureName | string |
None. |
|
StateProvinceId | integer |
None. |
|
StateProvinceName | string |
None. |
|
CountryId | integer |
None. |
|
CountryName | string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Id": 1, "Name": "sample string 2", "PrefectureId": 3, "PrefectureName": "sample string 4", "StateProvinceId": 5, "StateProvinceName": "sample string 6", "CountryId": 7, "CountryName": "sample string 8" }, { "Id": 1, "Name": "sample string 2", "PrefectureId": 3, "PrefectureName": "sample string 4", "StateProvinceId": 5, "StateProvinceName": "sample string 6", "CountryId": 7, "CountryName": "sample string 8" } ]
text/html
Sample:
[{"Id":1,"Name":"sample string 2","PrefectureId":3,"PrefectureName":"sample string 4","StateProvinceId":5,"StateProvinceName":"sample string 6","CountryId":7,"CountryName":"sample string 8"},{"Id":1,"Name":"sample string 2","PrefectureId":3,"PrefectureName":"sample string 4","StateProvinceId":5,"StateProvinceName":"sample string 6","CountryId":7,"CountryName":"sample string 8"}]
application/xml, text/xml
Sample:
<ArrayOfCitySimpleViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Location"> <CitySimpleViewModel> <CountryId>7</CountryId> <CountryName>sample string 8</CountryName> <Id>1</Id> <Name>sample string 2</Name> <PrefectureId>3</PrefectureId> <PrefectureName>sample string 4</PrefectureName> <StateProvinceId>5</StateProvinceId> <StateProvinceName>sample string 6</StateProvinceName> </CitySimpleViewModel> <CitySimpleViewModel> <CountryId>7</CountryId> <CountryName>sample string 8</CountryName> <Id>1</Id> <Name>sample string 2</Name> <PrefectureId>3</PrefectureId> <PrefectureName>sample string 4</PrefectureName> <StateProvinceId>5</StateProvinceId> <StateProvinceName>sample string 6</StateProvinceName> </CitySimpleViewModel> </ArrayOfCitySimpleViewModel>