GET api/Region/GetAllAreas?city={city}
获取当前城市下所有的区县
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
city |
给定城市编码 |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
获取当前城市下所有的区县
Collection of RegionDtoName | Description | Type | Additional information |
---|---|---|---|
Name |
地域名称 |
string |
None. |
Value |
地域代码 |
integer |
None. |
Response Formats
application/json
Sample:
Sample not available.
text/json
Sample:
Sample not available.
application/xml, text/xml
Sample:
<ArrayOfRegionDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Dto.Region"> <RegionDto> <Name>sample string 1</Name> <Value>2</Value> </RegionDto> <RegionDto> <Name>sample string 1</Name> <Value>2</Value> </RegionDto> </ArrayOfRegionDto>