GET api/EcoCar/Setting/Vehical/Query/ByLine?lineid={lineid}&carstatus={carstatus}
获取某个线路上的车辆的列表。
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
lineid |
线路ID。 |
string |
Required |
carstatus |
车辆状态,1正常营运,2停止营运。 |
string |
Default value is 1 |
Body Parameters
None.
Response Information
Resource Description
获取某个线路上的车辆的列表。
CommonOperationResultWithTagOfIEnumerableOfEcoCarVehicalItemName | Description | Type | Additional information |
---|---|---|---|
errcode | integer |
None. |
|
errmsg | string |
None. |
|
tag | Collection of EcoCarVehicalItem |
None. |
Response Formats
application/json, text/json
Sample:
{ "errcode": 1, "errmsg": "sample string 2", "tag": [ { "carno": "sample string 1", "carnotype": "sample string 2", "seatingcapacity": 3, "carstatus": "sample string 4", "sttartingdate": "sample string 5", "endingdate": "sample string 6", "totalofcalsses": 7, "totalofpassengers": 8, "totalofincome": 9.0 }, { "carno": "sample string 1", "carnotype": "sample string 2", "seatingcapacity": 3, "carstatus": "sample string 4", "sttartingdate": "sample string 5", "endingdate": "sample string 6", "totalofcalsses": 7, "totalofpassengers": 8, "totalofincome": 9.0 } ] }
application/xml, text/xml
Sample:
<CommonOperationResultWithTagOfArrayOfEcoCarVehicalIteminy84t6v xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer"> <errcode>1</errcode> <errmsg>sample string 2</errmsg> <tag xmlns:d2p1="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Common"> <d2p1:EcoCarVehicalItem> <d2p1:carno>sample string 1</d2p1:carno> <d2p1:carnotype>sample string 2</d2p1:carnotype> <d2p1:carstatus>sample string 4</d2p1:carstatus> <d2p1:endingdate>sample string 6</d2p1:endingdate> <d2p1:seatingcapacity>3</d2p1:seatingcapacity> <d2p1:sttartingdate>sample string 5</d2p1:sttartingdate> <d2p1:totalofcalsses>7</d2p1:totalofcalsses> <d2p1:totalofincome>9</d2p1:totalofincome> <d2p1:totalofpassengers>8</d2p1:totalofpassengers> </d2p1:EcoCarVehicalItem> <d2p1:EcoCarVehicalItem> <d2p1:carno>sample string 1</d2p1:carno> <d2p1:carnotype>sample string 2</d2p1:carnotype> <d2p1:carstatus>sample string 4</d2p1:carstatus> <d2p1:endingdate>sample string 6</d2p1:endingdate> <d2p1:seatingcapacity>3</d2p1:seatingcapacity> <d2p1:sttartingdate>sample string 5</d2p1:sttartingdate> <d2p1:totalofcalsses>7</d2p1:totalofcalsses> <d2p1:totalofincome>9</d2p1:totalofincome> <d2p1:totalofpassengers>8</d2p1:totalofpassengers> </d2p1:EcoCarVehicalItem> </tag> </CommonOperationResultWithTagOfArrayOfEcoCarVehicalIteminy84t6v>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.