GET api/Dispatch/GetTrips/{auth}
Use to get the active trips assigned to users office
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| auth |
Unique authorization identifier |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
GetTripsResp| Name | Description | Type | Additional information |
|---|---|---|---|
| IsSuccessful |
Method was successful (true/false) |
boolean |
None. |
| ErrorMessage |
If unsuccessful, the error message |
string |
None. |
| Items |
The list of active trips in your service area |
Collection of TripItem |
None. |
Response Formats
application/json, text/json
Sample:
{
"IsSuccessful": true,
"ErrorMessage": "sample string 2",
"Items": null
}
application/xml, text/xml
Sample:
<GetTripsResp 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> <Items i:nil="true" /> </GetTripsResp>