GET api/Sys/GetRegion?cityId={cityId}

根据城市Id获取region

Request Information

URI Parameters

NameDescriptionTypeAdditional information
cityId

integer

Required

Body Parameters

None.

Response Information

Resource Description

RequestResultOfListOfAppRegion
NameDescriptionTypeAdditional information
ResultCode

integer

None.

Message

string

None.

Data

Collection of AppRegion

None.

Response Formats

application/json, text/json

Sample:
{
  "ResultCode": 1,
  "Message": "sample string 2",
  "Data": [
    {
      "RegionId": 1,
      "Name": "sample string 2",
      "CityId": 3
    },
    {
      "RegionId": 1,
      "Name": "sample string 2",
      "CityId": 3
    }
  ]
}

text/html

Sample:
{"ResultCode":1,"Message":"sample string 2","Data":[{"RegionId":1,"Name":"sample string 2","CityId":3},{"RegionId":1,"Name":"sample string 2","CityId":3}]}

application/xml, text/xml

Sample:
<RequestResultOfArrayOfAppRegionuLl3U5VP xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MF.Common">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/MF.Model">
    <d2p1:AppRegion>
      <d2p1:CityId>3</d2p1:CityId>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:RegionId>1</d2p1:RegionId>
    </d2p1:AppRegion>
    <d2p1:AppRegion>
      <d2p1:CityId>3</d2p1:CityId>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:RegionId>1</d2p1:RegionId>
    </d2p1:AppRegion>
  </Data>
  <Message>sample string 2</Message>
  <ResultCode>1</ResultCode>
</RequestResultOfArrayOfAppRegionuLl3U5VP>