POST api/school/getbuildingscondition

获取学区的所有小区

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

Request 信息

URI 参数

None.

Body 参数

参数

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

学区Id

integer

Required

City

城市

string

Required

Token

token

string

Required

Platform

string

None.

Request 数据格式

application/json, text/json

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

application/xml, text/xml

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

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果

SchoolBuildingConditionResult
名称说明数据类型附加信息
Buildings

学区的小区

Collection of SchoolBuildingCondition

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "Buildings": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "TradeCount": 3
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "TradeCount": 3
    }
  ],
  "ErrorCode": 0,
  "Msg": "sample string 1"
}

application/xml, text/xml

示例:
<SchoolBuildingConditionResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.School">
  <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>
  <Buildings>
    <SchoolBuildingConditionResult.SchoolBuildingCondition>
      <Id>1</Id>
      <Name>sample string 2</Name>
      <TradeCount>3</TradeCount>
    </SchoolBuildingConditionResult.SchoolBuildingCondition>
    <SchoolBuildingConditionResult.SchoolBuildingCondition>
      <Id>1</Id>
      <Name>sample string 2</Name>
      <TradeCount>3</TradeCount>
    </SchoolBuildingConditionResult.SchoolBuildingCondition>
  </Buildings>
</SchoolBuildingConditionResult>