| 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} |
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class CalendarRequest
{
public UUID CalendarId = null;
public Integer CalendarEventId = null;
public CalendarType CalendarType = null;
public CalendarFormat CalendarFormat = null;
public Integer ContactId = null;
public Date StartDate = null;
public Date EndDate = null;
public Integer ProjectId = null;
public UUID LocationId = null;
public Integer AgentId = null;
public Boolean ExpandRecurringEvents = null;
public Boolean ExpandAll = null;
public UUID getCalendarId() { return CalendarId; }
public CalendarRequest setCalendarId(UUID value) { this.CalendarId = value; return this; }
public Integer getCalendarEventId() { return CalendarEventId; }
public CalendarRequest setCalendarEventId(Integer value) { this.CalendarEventId = value; return this; }
public CalendarType getCalendarType() { return CalendarType; }
public CalendarRequest setCalendarType(CalendarType value) { this.CalendarType = value; return this; }
public CalendarFormat getCalendarFormat() { return CalendarFormat; }
public CalendarRequest setCalendarFormat(CalendarFormat value) { this.CalendarFormat = value; return this; }
public Integer getContactId() { return ContactId; }
public CalendarRequest setContactId(Integer value) { this.ContactId = value; return this; }
public Date getStartDate() { return StartDate; }
public CalendarRequest setStartDate(Date value) { this.StartDate = value; return this; }
public Date getEndDate() { return EndDate; }
public CalendarRequest setEndDate(Date value) { this.EndDate = value; return this; }
public Integer getProjectId() { return ProjectId; }
public CalendarRequest setProjectId(Integer value) { this.ProjectId = value; return this; }
public UUID getLocationId() { return LocationId; }
public CalendarRequest setLocationId(UUID value) { this.LocationId = value; return this; }
public Integer getAgentId() { return AgentId; }
public CalendarRequest setAgentId(Integer value) { this.AgentId = value; return this; }
public Boolean isExpandRecurringEvents() { return ExpandRecurringEvents; }
public CalendarRequest setExpandRecurringEvents(Boolean value) { this.ExpandRecurringEvents = value; return this; }
public Boolean isExpandAll() { return ExpandAll; }
public CalendarRequest setExpandAll(Boolean value) { this.ExpandAll = value; return this; }
}
public static enum CalendarType
{
All,
Pera,
Google;
}
public static enum CalendarFormat
{
Standard,
Ics;
}
}
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