POST api/building/getrentpricechart

租金走势

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

Request 信息

URI 参数

None.

Body 参数

参数

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

小区Id

integer

Required

EndDate

[可选]截至日期,如2014-11,表示2014年11月

string

None.

Month

月份,默认6个月

integer

None.

HasCount

是否返回套数

boolean

None.

HasRate

是否返回涨幅

boolean

None.

RoomCount

【可选】返回最大几室的数据,默认4

integer

None.

City

城市

string

Required

Token

token

string

Required

Platform

string

None.

Request 数据格式

application/json, text/json

示例:
{
  "Id": 1,
  "EndDate": "sample string 2",
  "Month": 1,
  "HasCount": true,
  "HasRate": true,
  "RoomCount": 1,
  "City": "sample string 5",
  "Token": "sample string 6",
  "Platform": "sample string 7"
}

application/xml, text/xml

示例:
<BuildingPriceChartModel 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>
  <EndDate>sample string 2</EndDate>
  <HasCount>true</HasCount>
  <HasRate>true</HasRate>
  <Id>1</Id>
  <Month>1</Month>
  <RoomCount>1</RoomCount>
</BuildingPriceChartModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果

RentPriceChartResult
名称说明数据类型附加信息
Chart

图表数据

RentPriceChart

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "Chart": {
    "Labels": [
      "sample string 1",
      "sample string 2"
    ],
    "Rent": [
      [
        1,
        2
      ],
      [
        1,
        2
      ]
    ],
    "Count": [
      [
        1,
        2
      ],
      [
        1,
        2
      ]
    ],
    "RentRate": [
      [
        1.1,
        2.1
      ],
      [
        1.1,
        2.1
      ]
    ]
  },
  "ErrorCode": 0,
  "Msg": "sample string 1"
}

application/xml, text/xml

示例:
<RentPriceChartResult 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 1</Msg>
  <Chart>
    <Count xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:ArrayOflong>
        <d3p1:long>1</d3p1:long>
        <d3p1:long>2</d3p1:long>
      </d3p1:ArrayOflong>
      <d3p1:ArrayOflong>
        <d3p1:long>1</d3p1:long>
        <d3p1:long>2</d3p1:long>
      </d3p1:ArrayOflong>
    </Count>
    <Labels xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </Labels>
    <Rent xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:ArrayOflong>
        <d3p1:long>1</d3p1:long>
        <d3p1:long>2</d3p1:long>
      </d3p1:ArrayOflong>
      <d3p1:ArrayOflong>
        <d3p1:long>1</d3p1:long>
        <d3p1:long>2</d3p1:long>
      </d3p1:ArrayOflong>
    </Rent>
    <RentRate xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:ArrayOffloat>
        <d3p1:float>1.1</d3p1:float>
        <d3p1:float>2.1</d3p1:float>
      </d3p1:ArrayOffloat>
      <d3p1:ArrayOffloat>
        <d3p1:float>1.1</d3p1:float>
        <d3p1:float>2.1</d3p1:float>
      </d3p1:ArrayOffloat>
    </RentRate>
  </Chart>
</RentPriceChartResult>