POST api/common/getdataversion

获取基础数据的版本号,用于基础数据升级

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

Request 信息

URI 参数

None.

Body 参数

参数

CityModel
名称说明数据类型附加信息
City

城市

string

Required

Token

token

string

Required

Platform

string

None.

Request 数据格式

application/json, text/json

示例:
{
  "City": "sample string 1",
  "Token": "sample string 2",
  "Platform": "sample string 3"
}

application/xml, text/xml

示例:
<CityModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">
  <Platform>sample string 3</Platform>
  <Token>sample string 2</Token>
  <City>sample string 1</City>
</CityModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果

DataVersionResult
名称说明数据类型附加信息
Cities

开放的城市

decimal number

None.

Region

区域

decimal number

None.

Board

版块

decimal number

None.

Subway

地铁

decimal number

None.

Rate

利率

decimal number

None.

House

房源

HouseVersion

None.

School

学区

SchoolVersion

None.

Building

小区

BuildingVersion

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "Cities": 1.1,
  "Region": 2.1,
  "Board": 3.1,
  "Subway": 4.1,
  "Rate": 5.1,
  "House": {
    "HouseType": 1.1,
    "Deck": 2.1,
    "Direct": 3.1,
    "RoomType": 4.1,
    "Trade": {
      "Price": 1.1,
      "Area": 2.1,
      "Age": 3.1
    },
    "Lease": {
      "Price": 1.1,
      "Area": 2.1,
      "Rentway": 3.1
    },
    "New": {
      "Price": 1.1,
      "Area": 2.1,
      "DeliveryDate": 3.1,
      "NewStatus": 4.1
    }
  },
  "School": {
    "Level": 1.1,
    "SchoolType": 2.1
  },
  "Building": {
    "HouseType": 1.1,
    "Price": 2.1
  },
  "ErrorCode": 0,
  "Msg": "sample string 6"
}

application/xml, text/xml

示例:
<DataVersionResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Common">
  <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 6</Msg>
  <Board>3.1</Board>
  <Building>
    <HouseType>1.1</HouseType>
    <Price>2.1</Price>
  </Building>
  <Cities>1.1</Cities>
  <House>
    <Deck>2.1</Deck>
    <Direct>3.1</Direct>
    <HouseType>1.1</HouseType>
    <Lease>
      <Area>2.1</Area>
      <Price>1.1</Price>
      <Rentway>3.1</Rentway>
    </Lease>
    <New>
      <Area>2.1</Area>
      <DeliveryDate>3.1</DeliveryDate>
      <NewStatus>4.1</NewStatus>
      <Price>1.1</Price>
    </New>
    <RoomType>4.1</RoomType>
    <Trade>
      <Age>3.1</Age>
      <Area>2.1</Area>
      <Price>1.1</Price>
    </Trade>
  </House>
  <Rate>5.1</Rate>
  <Region>2.1</Region>
  <School>
    <Level>1.1</Level>
    <SchoolType>2.1</SchoolType>
  </School>
  <Subway>4.1</Subway>
</DataVersionResult>