GET api/Reference/GetCity?ProvincesId={ProvincesId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
ProvincesId

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of CityViewModel
NameDescriptionTypeAdditional information
ProvinceId

string

None.

CityId

integer

None.

Title

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ProvinceId": "sample string 1",
    "CityId": 2,
    "Title": "sample string 3"
  },
  {
    "ProvinceId": "sample string 1",
    "CityId": 2,
    "Title": "sample string 3"
  }
]

text/html

Sample:
[{"ProvinceId":"sample string 1","CityId":2,"Title":"sample string 3"},{"ProvinceId":"sample string 1","CityId":2,"Title":"sample string 3"}]

application/xml, text/xml

Sample:
<ArrayOfCityViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fruta.ViewModels">
  <CityViewModel>
    <CityId>2</CityId>
    <ProvinceId>sample string 1</ProvinceId>
    <Title>sample string 3</Title>
  </CityViewModel>
  <CityViewModel>
    <CityId>2</CityId>
    <ProvinceId>sample string 1</ProvinceId>
    <Title>sample string 3</Title>
  </CityViewModel>
</ArrayOfCityViewModel>