| GET,OPTIONS | /v1/worker/myday |
|---|
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using CRM.AgencyPlatform.API.Internal;
namespace CRM.AgencyPlatform.API.Internal
{
public partial class WorkerMyDayRequest
{
public virtual string Date { get; set; }
}
public partial class WorkerMyDayResponse
{
public virtual ResponseStatus ResponseStatus { get; set; }
public virtual string Route { get; set; }
public virtual string DateLabel { get; set; }
public virtual bool IsCrewLead { get; set; }
public virtual bool IsCrewMember { get; set; }
public virtual List<WorkerVisit> Visits { get; set; } = [];
}
public partial class WorkerVisit
{
public virtual int WorkerScheduleItemID { get; set; }
public virtual int JobID { get; set; }
public virtual int SortOrder { get; set; }
public virtual string Status { get; set; }
public virtual string PropertyName { get; set; }
public virtual string Address { get; set; }
public virtual string TimeWindow { get; set; }
public virtual string DistanceLabel { get; set; }
public virtual string ServiceSummary { get; set; }
public virtual int? AreaCount { get; set; }
public virtual string AccessNotes { get; set; }
public virtual bool HasRestrictedDetails { get; set; }
public virtual bool CanViewRestricted { get; set; }
public virtual string PriorVisitNotes { get; set; }
public virtual bool RainRisk { get; set; }
public virtual string CompletedAtLabel { get; set; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/worker/myday HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Route":"String","DateLabel":"String","IsCrewLead":false,"IsCrewMember":false,"Visits":[{"WorkerScheduleItemID":0,"JobID":0,"SortOrder":0,"Status":"String","PropertyName":"String","Address":"String","TimeWindow":"String","DistanceLabel":"String","ServiceSummary":"String","AreaCount":0,"AccessNotes":"String","HasRestrictedDetails":false,"CanViewRestricted":false,"PriorVisitNotes":"String","RainRisk":false,"CompletedAtLabel":"String"}]}