POST api/EcoCar/Busi/Class/Add
开行一个新的环保车运营班次,需要判断返回值 ,errcode=0表示开新班次成功。
Request Information
URI Parameters
None.
Body Parameters
开行班次的参数。
EcoCarClassNewParmName | Description | Type | Additional information |
---|---|---|---|
lineid |
线路的ID |
string |
Required Max length: 4 |
carno |
车牌号码。 |
string |
Required Max length: 12 |
carnotype |
牌照类别,可按国家标准取值,如微型客车,小型客车,场内等。注意了,国家标准中对牌照类型是有标准取值的,1-大型汽车 3 小型汽车 Z 场内汽车(场内汽车不是交警管理,不能上路行驶,属质量技术监督局管) |
string |
Required Max length: 1 |
longitude |
当前的经度 |
decimal number |
None. |
latitude |
当前的纬度。 |
decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{ "lineid": "sample string 1", "carno": "sample string 2", "carnotype": "sample string 3", "longitude": 4.0, "latitude": 5.0 }
application/xml, text/xml
Sample:
<EcoCarClassNewParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm.EcoCar"> <carno>sample string 2</carno> <carnotype>sample string 3</carnotype> <latitude>5</latitude> <lineid>sample string 1</lineid> <longitude>4</longitude> </EcoCarClassNewParm>
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
开行一个新的环保车运营班次,需要判断返回值 ,errcode=0表示开新班次成功。
CommonOperationResultWithTagOfEcoCarClassItemName | Description | Type | Additional information |
---|---|---|---|
errcode | integer |
None. |
|
errmsg | string |
None. |
|
tag | EcoCarClassItem |
None. |
Response Formats
application/json, text/json
Sample:
{ "errcode": 1, "errmsg": "sample string 2", "tag": { "lineid": "sample string 1", "classid": "sample string 2", "carno": "sample string 3", "carnotype": "sample string 4", "seatingcapacity": 5, "ticketchecktype": "sample string 6", "normaltime": 7.0, "yhdlm": "sample string 8", "yhmc": "sample string 9", "startdate": "sample string 10", "starttime": "sample string 11", "runstatus": "sample string 12", "enddate": "sample string 13", "endtime": "sample string 14", "curlongitude": 15.0, "curlatitude": 16.0, "totalsellbillcount": 17, "totalticketcount": 18, "totalsummary": 19.0, "totalcheckcount": 20, "totalchecksummary": 21.0, "realtimelength": 22.0, "GateId": "sample string 23" } }
application/xml, text/xml
Sample:
<CommonOperationResultWithTagOfEcoCarClassIteminy84t6v 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:GateId>sample string 23</d2p1:GateId> <d2p1:carno>sample string 3</d2p1:carno> <d2p1:carnotype>sample string 4</d2p1:carnotype> <d2p1:classid>sample string 2</d2p1:classid> <d2p1:curlatitude>16</d2p1:curlatitude> <d2p1:curlongitude>15</d2p1:curlongitude> <d2p1:enddate>sample string 13</d2p1:enddate> <d2p1:endtime>sample string 14</d2p1:endtime> <d2p1:lineid>sample string 1</d2p1:lineid> <d2p1:normaltime>7</d2p1:normaltime> <d2p1:realtimelength>22</d2p1:realtimelength> <d2p1:runstatus>sample string 12</d2p1:runstatus> <d2p1:seatingcapacity>5</d2p1:seatingcapacity> <d2p1:startdate>sample string 10</d2p1:startdate> <d2p1:starttime>sample string 11</d2p1:starttime> <d2p1:ticketchecktype>sample string 6</d2p1:ticketchecktype> <d2p1:totalcheckcount>20</d2p1:totalcheckcount> <d2p1:totalchecksummary>21</d2p1:totalchecksummary> <d2p1:totalsellbillcount>17</d2p1:totalsellbillcount> <d2p1:totalsummary>19</d2p1:totalsummary> <d2p1:totalticketcount>18</d2p1:totalticketcount> <d2p1:yhdlm>sample string 8</d2p1:yhdlm> <d2p1:yhmc>sample string 9</d2p1:yhmc> </tag> </CommonOperationResultWithTagOfEcoCarClassIteminy84t6v>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.