POST api/houseprice/getgujia

房屋估价

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

Request 信息

URI 参数

None.

Body 参数

参数

GuJiaModel
名称说明数据类型附加信息
filter

小区名称或地址

string

Required

house_type

房屋类型

string

Required

room_type

几室

integer

Required

area

面积

decimal number

Required

hall

几厅

integer

None.

toilet

几卫

integer

None.

floor_building

楼幢

string

None.

floor

所在楼层

integer

None.

totalfloor

总楼层

integer

None.

toward

朝向

string

None.

renovation

装修

string

None.

house_number

户号

string

None.

builted_time

年份

integer

None.

City

城市

string

Required

Token

token

string

Required

Platform

string

None.

Request 数据格式

application/json, text/json

示例:
{
  "filter": "sample string 1",
  "house_type": "sample string 2",
  "room_type": 3,
  "area": 4.1,
  "hall": 1,
  "toilet": 1,
  "floor_building": "sample string 5",
  "floor": 1,
  "totalfloor": 1,
  "toward": "sample string 6",
  "renovation": "sample string 7",
  "house_number": "sample string 8",
  "builted_time": 1,
  "City": "sample string 9",
  "Token": "sample string 10",
  "Platform": "sample string 11"
}

application/xml, text/xml

示例:
<GuJiaModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.HousePrice">
  <Platform xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 11</Platform>
  <Token xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 10</Token>
  <City xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 9</City>
  <area>4.1</area>
  <builted_time>1</builted_time>
  <filter>sample string 1</filter>
  <floor>1</floor>
  <floor_building>sample string 5</floor_building>
  <hall>1</hall>
  <house_number>sample string 8</house_number>
  <house_type>sample string 2</house_type>
  <renovation>sample string 7</renovation>
  <room_type>3</room_type>
  <toilet>1</toilet>
  <totalfloor>1</totalfloor>
  <toward>sample string 6</toward>
</GuJiaModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果

GuJiaResult
名称说明数据类型附加信息
Rent

租金

decimal number

None.

Price

均价

decimal number

None.

TotalPrice

总价

decimal number

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "Rent": 1.1,
  "Price": 2.1,
  "TotalPrice": 3.1,
  "ErrorCode": 0,
  "Msg": "sample string 4"
}

application/xml, text/xml

示例:
<GuJiaResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.HousePrice">
  <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 4</Msg>
  <Price>2.1</Price>
  <Rent>1.1</Rent>
  <TotalPrice>3.1</TotalPrice>
</GuJiaResult>