| GET,OPTIONS | /v1/visits/week |
|---|
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 CrewWeekCell
{
public virtual string Date { get; set; }
public virtual int VisitCount { get; set; }
public virtual int LoadPct { get; set; }
}
public partial class CrewWeekRow
{
public virtual int CrewID { get; set; }
public virtual string CrewName { get; set; }
public virtual string CrewColor { get; set; }
public virtual List<CrewWeekCell> Cells { get; set; } = [];
}
public partial class VisitWeekRequest
{
public virtual string From { get; set; }
public virtual int Days { get; set; }
}
public partial class VisitWeekResponse
{
public virtual string From { get; set; }
public virtual string To { get; set; }
public virtual List<string> Days { get; set; } = [];
public virtual List<CrewWeekRow> Rows { get; set; } = [];
public virtual ResponseStatus ResponseStatus { 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/visits/week HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"From":"String","To":"String","Days":["String"],"Rows":[{"CrewID":0,"CrewName":"String","CrewColor":"String","Cells":[{"Date":"String","VisitCount":0,"LoadPct":0}]}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}