POST api/building/getbuildingname

获取小区名

默认返回json数据,若要返回xml格式数据在访问地址后加上xml=true

Request 信息

URI 参数

None.

Body 参数

参数

BuildingDetailModel
名称说明数据类型附加信息
Id

小区Id

integer

Required

HasTrade

是否返回二手房

boolean

None.

HasLease

是否返回出租房

boolean

None.

HasRoundBrokers

是否返回周边经纪人

boolean

None.

City

城市

string

Required

Token

token

string

Required

Platform

string

None.

Request 数据格式

application/json, text/json

示例:
{
  "Id": 1,
  "HasTrade": true,
  "HasLease": true,
  "HasRoundBrokers": true,
  "City": "sample string 5",
  "Token": "sample string 6",
  "Platform": "sample string 7"
}

application/xml, text/xml

示例:
<BuildingDetailModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Building">
  <Platform xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 7</Platform>
  <Token xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 6</Token>
  <City xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 5</City>
  <HasLease>true</HasLease>
  <HasRoundBrokers>true</HasRoundBrokers>
  <HasTrade>true</HasTrade>
  <Id>1</Id>
</BuildingDetailModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果

BuildingNameResult
名称说明数据类型附加信息
Name

小区名

string

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "Name": "sample string 1",
  "ErrorCode": 0,
  "Msg": "sample string 2"
}

application/xml, text/xml

示例:
<BuildingNameResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Building">
  <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">SUCCESS</ErrorCode>
  <Msg xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 2</Msg>
  <Name>sample string 1</Name>
</BuildingNameResult>