| 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} |
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal
Namespace Global
Namespace CRM.AgencyPlatform.API.Internal
Public Enum CalendarFormat
Standard
ICS
End Enum
Public Partial Class CalendarRequest
Public Overridable Property CalendarId As Guid
Public Overridable Property CalendarEventId As Integer
Public Overridable Property CalendarType As CalendarType
Public Overridable Property CalendarFormat As CalendarFormat
Public Overridable Property ContactId As Integer
Public Overridable Property StartDate As Date
Public Overridable Property EndDate As Date
Public Overridable Property ProjectId As Integer
Public Overridable Property LocationId As Guid
Public Overridable Property AgentId As Integer
Public Overridable Property ExpandRecurringEvents As Boolean
Public Overridable Property ExpandAll As Boolean
End Class
Public Enum CalendarType
All
Pera
Google
End Enum
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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: application/xml