GET api/Dispatch/GetTripRoutes/{auth}/{TripID}
Get the list of route codes assigned to the trip
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
auth |
Unique authorization identifier |
string |
Required |
TripID |
The trip identifier to which the stops will be added |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
GetTripRoutesRespName | Description | Type | Additional information |
---|---|---|---|
IsSuccessful |
Set to true if method was successful |
boolean |
None. |
ErrorMessage |
The error message if method call was not successful |
string |
None. |
TripRoutes |
List of route codes assigned to a trip |
Collection of TripRoute |
None. |
Response Formats
application/json, text/json
Sample:
{ "IsSuccessful": true, "ErrorMessage": "sample string 2", "TripRoutes": null }
application/xml, text/xml
Sample:
<GetTripRoutesResp xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mnx.WebApi.Transportation.Models"> <ErrorMessage>sample string 2</ErrorMessage> <IsSuccessful>true</IsSuccessful> <TripRoutes i:nil="true" /> </GetTripRoutesResp>