GET api/Region/AllDistricts?city={city}

给定城市所有区(三级)

Request Information

URI Parameters

NameDescriptionTypeAdditional information
city

给定城市代码

integer

Required

Body Parameters

None.

Response Information

Resource Description

给定城市所有区(三级)

Collection of RegionDto
NameDescriptionTypeAdditional information
Name

地域名称

string

None.

Value

地域代码

integer

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: 无法访问已关闭的流。

text/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: 无法访问已关闭的流。

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>