GET api/Dispatch/TripTemplateRoute/{auth}/{TripTemplateID}

Select route codes associated with a trip template

Request Information

URI Parameters

NameDescriptionTypeAdditional information
auth

User authorization identifier

string

Required

TripTemplateID

Trip template identifer

integer

Required

Body Parameters

None.

Response Information

Resource Description

SelectTripTemplateRouteResp
NameDescriptionTypeAdditional information
IsSuccessful

Method was successful (true/false)

boolean

None.

ErrorMessage

If unsuccessful, the error message

string

None.

RouteCodes

Listing of route codes associated with a trip template

Collection of TripTemplateRouteItem

None.

Response Formats

application/json, text/json

Sample:
{
  "IsSuccessful": true,
  "ErrorMessage": "sample string 2",
  "RouteCodes": null
}

application/xml, text/xml

Sample:
<SelectTripTemplateRouteResp 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>
  <RouteCodes i:nil="true" />
</SelectTripTemplateRouteResp>