POST api/AutoSell/Date/Serverid/Timespan
查询自助售票机指定日期和线路ID的可售的时段信息
Request Information
URI Parameters
None.
Body Parameters
AutoSellTimeSpanParm| Name | Description | Type | Additional information |
|---|---|---|---|
| date |
日期 |
string |
None. |
| servercode |
线路的ID |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"date": "sample string 1",
"servercode": "sample string 2"
}
application/xml, text/xml
Sample:
<AutoSellTimeSpanParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm.AutoSell"> <date>sample string 1</date> <servercode>sample string 2</servercode> </AutoSellTimeSpanParm>
application/x-www-form-urlencoded
Sample:
Sample not available.
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
查询自助售票机指定日期和线路ID的可售的时段信息
Collection of AutoSellTimeSpanResult| Name | Description | Type | Additional information |
|---|---|---|---|
| servercode |
检票站点代码 |
string |
None. |
| servername |
检票站点名称 |
string |
None. |
| date |
预约日期 |
string |
None. |
| timespan |
时段号 |
integer |
None. |
| starttime |
起始时间hh:mm |
string |
None. |
| endtime |
截止时间hh:mm |
string |
None. |
| totalamount |
通量 |
integer |
None. |
| remainamount |
剩余可预约人数 |
integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"servercode": "sample string 1",
"servername": "sample string 2",
"date": "sample string 3",
"timespan": 4,
"starttime": "sample string 5",
"endtime": "sample string 6",
"totalamount": 7,
"remainamount": 8
},
{
"servercode": "sample string 1",
"servername": "sample string 2",
"date": "sample string 3",
"timespan": 4,
"starttime": "sample string 5",
"endtime": "sample string 6",
"totalamount": 7,
"remainamount": 8
}
]
application/xml, text/xml
Sample:
<ArrayOfAutoSellTimeSpanResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Result.AutoSell">
<AutoSellTimeSpanResult>
<date>sample string 3</date>
<endtime>sample string 6</endtime>
<remainamount>8</remainamount>
<servercode>sample string 1</servercode>
<servername>sample string 2</servername>
<starttime>sample string 5</starttime>
<timespan>4</timespan>
<totalamount>7</totalamount>
</AutoSellTimeSpanResult>
<AutoSellTimeSpanResult>
<date>sample string 3</date>
<endtime>sample string 6</endtime>
<remainamount>8</remainamount>
<servercode>sample string 1</servercode>
<servername>sample string 2</servername>
<starttime>sample string 5</starttime>
<timespan>4</timespan>
<totalamount>7</totalamount>
</AutoSellTimeSpanResult>
</ArrayOfAutoSellTimeSpanResult>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.