GET api/EcoCar/Setting/Line/Sites/V/Query/ById/{lineid}
依据线路ID,查询线路途经的站点的清单。
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
lineid |
环保车运营线路的ID。 |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
依据线路ID,查询线路途经的站点的清单。
Collection of EcoCarLineSiteItemName | Description | Type | Additional information |
---|---|---|---|
siteindex |
站点序号,最小的序号,表示线路的首站点(一般为1,但没有强制约定必须为1)。 |
integer |
Required |
siteid |
站点ID。 |
string |
Required Max length: 4 Min length: 4 |
sitename |
站点名称。 |
string |
Required Max length: 30 |
Response Formats
application/json, text/json
Sample:
[ { "siteindex": 1, "siteid": "sample string 2", "sitename": "sample string 3" }, { "siteindex": 1, "siteid": "sample string 2", "sitename": "sample string 3" } ]
application/xml, text/xml
Sample:
<ArrayOfEcoCarLineSiteItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Common.EcoCar"> <EcoCarLineSiteItem> <siteid>sample string 2</siteid> <siteindex>1</siteindex> <sitename>sample string 3</sitename> </EcoCarLineSiteItem> <EcoCarLineSiteItem> <siteid>sample string 2</siteid> <siteindex>1</siteindex> <sitename>sample string 3</sitename> </EcoCarLineSiteItem> </ArrayOfEcoCarLineSiteItem>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.