POST api/publish/rent

出租

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

Request 信息

URI 参数

None.

Body 参数

参数

RentModel
名称说明数据类型附加信息
CustId

用户Id【选填】

integer

None.

CustName

用户名【选填】

string

None.

ClientId

设备id

string

Required

Max length: 50

BuildingName

小区名称

string

Required

Max length: 50

BuildingId

小区id

integer

Required

RoomCount

户型

integer

Required

Range: inclusive between 1 and 10

Area

面积区间

decimal number

Required

Price

价格区间

decimal number

Required

Phone

手机号码

string

Matching regular expression pattern: ^1[3|5|8|4|7][0-9]{9}$

Max length: 11

Description

描述补充

string

Max length: 500

Platform

发布平台-来源

string

Required

City

城市

string

Required

Token

token

string

Required

Request 数据格式

application/json, text/json

示例:
{
  "CustId": 1,
  "CustName": "sample string 1",
  "ClientId": "sample string 2",
  "BuildingName": "sample string 3",
  "BuildingId": 4,
  "RoomCount": 5,
  "Area": 6.1,
  "Price": 7.1,
  "Phone": "sample string 8",
  "Description": "sample string 9",
  "Platform": "sample string 10",
  "City": "sample string 11",
  "Token": "sample string 12"
}

application/xml, text/xml

示例:
<RentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Publish">
  <Platform i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API" />
  <Token xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 12</Token>
  <City xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 11</City>
  <Area>6.1</Area>
  <BuildingId>4</BuildingId>
  <BuildingName>sample string 3</BuildingName>
  <ClientId>sample string 2</ClientId>
  <CustId>1</CustId>
  <CustName>sample string 1</CustName>
  <Description>sample string 9</Description>
  <Phone>sample string 8</Phone>
  <Platform>sample string 10</Platform>
  <Price>7.1</Price>
  <RoomCount>5</RoomCount>
</RentModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果集

PublishResult
名称说明数据类型附加信息
NoticeCustCount

通知的经纪人数

integer

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

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

application/xml, text/xml

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