Trendsic Platform Service

<back to all web services

RoutePlanCrewsRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/routeplan/crews
namespace CRM.AgencyPlatform.API.Internal

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type RoutePlanCrew() = 
        member val CrewID:Int32 = new Int32() with get,set
        member val CrewName:String = null with get,set
        member val CrewColor:String = null with get,set
        member val HomeZip:String = null with get,set
        member val YardLat:Nullable<Double> = new Nullable<Double>() with get,set
        member val YardLng:Nullable<Double> = new Nullable<Double>() with get,set
        member val DailyCapacityMin:Int32 = new Int32() with get,set
        member val WeeklyCapacityMin:Int32 = new Int32() with get,set
        member val Specialist:Boolean = new Boolean() with get,set

    [<AllowNullLiteral>]
    type RoutePlanCrewsResponse() = 
        member val Crews:ResizeArray<RoutePlanCrew> = new ResizeArray<RoutePlanCrew>() with get,set
        member val ResponseStatus:ResponseStatus = null with get,set

    [<AllowNullLiteral>]
    type RoutePlanCrewsRequest() = 
        class end

F# RoutePlanCrewsRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/routeplan/crews HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Crews":[{"CrewID":0,"CrewName":"String","CrewColor":"String","HomeZip":"String","YardLat":0,"YardLng":0,"DailyCapacityMin":0,"WeeklyCapacityMin":0,"Specialist":false}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}