| GET,OPTIONS | /v1/Calendar/{CalendarId} | ||
|---|---|---|---|
| GET,OPTIONS | /v1/Calendar/Project/{ProjectId} | ||
| GET,OPTIONS | /v1/Calendar/Location/{LocationId} | ||
| GET,OPTIONS | /v1/Calendar/Agent/{AgentId} | ||
| GET,OPTIONS | /v1/Calendar/Project/{ProjectId}/{StartDate}/{EndDate} | ||
| GET,OPTIONS | /v1/Calendar/Project/{ProjectId}/CalendarEventId/{CalendarEventId} | ||
| GET,OPTIONS | /v1/Calendar/{CalendarId}/{StartDate}/{EndDate} | ||
| GET,OPTIONS | /v1/Calendar/Project/{StartDate}/{EndDate} | ||
| GET,OPTIONS | /v1/Calendar/Project/ExpandRecurring/{ProjectId} | ||
| GET,OPTIONS | /v1/Calendar/CrewMember/Availability/{ContactId}/{StartDate}/{EndDate} | ||
| GET,OPTIONS | /v1/Calendar/Project/ExpandRecurring/{ProjectId}/{StartDate}/{EndDate} | ||
| GET,OPTIONS | /v1/Calendar/Project/ExpandRecurring/{ProjectId}/CalendarEventId/{CalendarEventId} | ||
| GET,OPTIONS | /v1/Calendar/Project/ExpandRecurring/ExpandAll/{ProjectId}/{StartDate}/{EndDate} |
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
type CalendarType =
| All = 0
| Pera = 1
| Google = 2
type CalendarFormat =
| Standard = 0
| ICS = 1
[<AllowNullLiteral>]
type CalendarRequest() =
member val CalendarId:Guid = new Guid() with get,set
member val CalendarEventId:Int32 = new Int32() with get,set
member val CalendarType:CalendarType = new CalendarType() with get,set
member val CalendarFormat:CalendarFormat = new CalendarFormat() with get,set
member val ContactId:Int32 = new Int32() with get,set
member val StartDate:DateTime = new DateTime() with get,set
member val EndDate:DateTime = new DateTime() with get,set
member val ProjectId:Int32 = new Int32() with get,set
member val LocationId:Guid = new Guid() with get,set
member val AgentId:Int32 = new Int32() with get,set
member val ExpandRecurringEvents:Boolean = new Boolean() with get,set
member val ExpandAll:Boolean = new Boolean() with get,set
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/Calendar/{CalendarId} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv