POST api/collector/postbuilding

收藏小区

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

Request 信息

URI 参数

None.

Body 参数

参数

BuildingCollectorModel
名称说明数据类型附加信息
BuildingInfo

小区信息

BuildingCollector

None.

City

城市

string

Required

Token

token

string

Required

Platform

string

None.

Request 数据格式

application/json, text/json

示例:
{
  "BuildingInfo": {
    "Id": 1,
    "RegionName": "sample string 2",
    "BoardName": "sample string 3",
    "BuildingName": "sample string 4",
    "Photo": "sample string 5",
    "BuildAvgPrice": 6.1,
    "HangRate": 7.1,
    "LeaseCount": 8,
    "TradeCount": 9
  },
  "City": "sample string 1",
  "Token": "sample string 2",
  "Platform": "sample string 3"
}

application/xml, text/xml

示例:
<BuildingCollectorModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Collector">
  <Platform xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 3</Platform>
  <Token xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 2</Token>
  <City xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 1</City>
  <BuildingInfo>
    <BoardName>sample string 3</BoardName>
    <BuildAvgPrice>6.1</BuildAvgPrice>
    <BuildingName>sample string 4</BuildingName>
    <HangRate>7.1</HangRate>
    <Id>1</Id>
    <LeaseCount>8</LeaseCount>
    <Photo>sample string 5</Photo>
    <RegionName>sample string 2</RegionName>
    <TradeCount>9</TradeCount>
  </BuildingInfo>
</BuildingCollectorModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果

AddCollectorResult
名称说明数据类型附加信息
NewId

添加后的id

integer

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

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

application/xml, text/xml

示例:
<AddCollectorResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Collector">
  <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>
  <NewId>1</NewId>
</AddCollectorResult>