Trendsic Platform Service

<back to all web services

WorkerAppCrewRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/worker/crew

export class WorkerCrewRow
{
    public ContactID: number;
    public WorkerName: string;
    public Phone: string;
    public JobID: number;
    public Status: string;
    public PropertyName: string;
    public Address: string;

    public constructor(init?: Partial<WorkerCrewRow>) { (Object as any).assign(this, init); }
}

export class WorkerAppCrewResponse
{
    public ResponseStatus: ResponseStatus;
    public IsCrewLead: boolean;
    public DateLabel: string;
    public Rows: WorkerCrewRow[] = [];

    public constructor(init?: Partial<WorkerAppCrewResponse>) { (Object as any).assign(this, init); }
}

export class WorkerAppCrewRequest
{
    public Date: string;

    public constructor(init?: Partial<WorkerAppCrewRequest>) { (Object as any).assign(this, init); }
}

TypeScript WorkerAppCrewRequest DTOs

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

HTTP + JSV

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

GET /v1/worker/crew HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	IsCrewLead: False,
	DateLabel: String,
	Rows: 
	[
		{
			ContactID: 0,
			WorkerName: String,
			Phone: String,
			JobID: 0,
			Status: String,
			PropertyName: String,
			Address: String
		}
	]
}