Skip to content

Instantly share code, notes, and snippets.

@juanpaulo
Created April 8, 2016 03:57
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save juanpaulo/0d48653173e589901bb2c48ff7e79ba7 to your computer and use it in GitHub Desktop.
Save juanpaulo/0d48653173e589901bb2c48ff7e79ba7 to your computer and use it in GitHub Desktop.
OPTIONS /rest/calendar-services/1.0/calendar HTTP/1.1
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<application xmlns="http://research.sun.com/wadl/2006/10">
<doc xmlns:jersey="http://jersey.java.net/" jersey:generatedBy="Jersey: 1.8-atlassian-16 03/23/2015 10:20 PM"/>
<resources base="https://{confluence host}/rest/calendar-services/1.0/">
<resource path="calendar">
<resource path="events">
<method name="DELETE" id="deleteEvent">
<response>
<representation mediaType="application/json"/>
</response>
</method>
<method name="GET" id="getEvents">
<request>
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="subCalendarId"/>
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="userTimeZoneId"/>
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="start"/>
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="end"/>
</request>
<response>
<representation mediaType="application/json; charset=UTF-8"/>
</response>
</method>
<method name="PUT" id="updateEvent">
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="customeventtypes">
<method name="PUT" id="updateCustomEventType">
<response>
<representation mediaType="application/json"/>
</response>
</method>
<method name="DELETE" id="deleteCustomEventType">
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="search/subcalendars/all">
<method name="GET" id="getAllSubCalendars">
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="preferences/subcalendars">
<method name="DELETE" id="hideSubCalendar">
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="preferences/subcalendars/watch">
<method name="PUT" id="watchSubCalendar">
<response>
<representation mediaType="application/json"/>
</response>
</method>
<method name="DELETE" id="unwatchSubCalendar">
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="preferences/events/hidden">
<method name="PUT" id="hideEventsOfSubCalendar">
<response>
<representation mediaType="application/json"/>
</response>
</method>
<method name="DELETE" id="showEventsOfSubCalendar">
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="preferences/view">
<method name="PUT" id="setCalendarView">
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="/privateurl/resetall">
<method name="PUT" id="resetAllPrivateUrls">
<response>
<representation mediaType="text/plain"/>
</response>
</method>
</resource>
<resource path="jiraLinks">
<method name="GET" id="getJiraLinks">
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="preferences/onboardingspace">
<method name="GET" id="getShowOnboardingSpaces">
<request>
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="spaceKey"/>
</request>
<response>
<representation mediaType="application/json"/>
</response>
</method>
<method name="PUT" id="setShowOnboardingSpaces">
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="subcalendars">
<method name="PUT" id="updateSubCalendar">
<response>
<representation mediaType="application/json"/>
</response>
</method>
<method name="GET" id="getSubCalendars">
<request>
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="include"/>
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="viewingSpaceKey"/>
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="calendarContext"/>
</request>
<response>
<representation mediaType="application/json"/>
</response>
</method>
<method name="DELETE" id="deleteSubCalendar">
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="disableeventtypes">
<method name="PUT" id="disableEventTypeCalendar">
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="subcalendars/color">
<method name="PUT" id="updateSubCalendarColor">
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="subcalendar/space">
<method name="POST" id="updateCalendarSpace">
<request>
<representation mediaType="application/json"/>
</request>
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="sanboxeventtypes">
<method name="PUT" id="updateSanboxEventType">
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="subcalendars/admin/refresh">
<method name="PUT" id="refreshSubCalendar">
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="export/subcalendar/{subCalendarId}.ics">
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="subCalendarId"/>
<method name="GET" id="exportCalendarAsIcalendarText">
<request>
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="true" type="xs:boolean" style="query" name="isSubscribe"/>
</request>
<response>
<representation mediaType="text/calendar; charset=UTF-8"/>
</response>
</method>
</resource>
<resource path="subcalendar/privateurl/{subCalendarId}">
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="subCalendarId"/>
<method name="GET" id="privateUrlForCalendar">
<response>
<representation mediaType="text/text"/>
</response>
</method>
</resource>
<resource path="export/subcalendar/private/{subCalendarToken}.ics">
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="subCalendarToken"/>
<method name="GET" id="exportPrivateCalendarAsIcalendarText">
<response>
<representation mediaType="text/calendar; charset=UTF-8"/>
</response>
</method>
</resource>
<resource path="/privateurl/reset/{subCalendarId}">
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="template" name="subCalendarId"/>
<method name="PUT" id="resetPrivateUrls">
<response>
<representation mediaType="text/plain"/>
</response>
</method>
</resource>
<resource path="search/subcalendars/popular">
<method name="GET" id="getPopularSubCalendarSubscriptions">
<request>
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="0" type="xs:int" style="query" name="startIndex"/>
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="10" type="xs:int" style="query" name="pageSize"/>
</request>
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="haspopular">
<method name="GET" id="hasPopularSubCalendarSubscriptions">
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="search/subcalendars">
<method name="GET" id="getSubCalendarsMatchingQuery">
<request>
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="term"/>
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="0" type="xs:int" style="query" name="startIndex"/>
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="10" type="xs:int" style="query" name="pageSize"/>
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="false" type="xs:boolean" style="query" name="showSubscriberCount"/>
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="false" type="xs:boolean" style="query" name="showSubCalendarsInView"/>
</request>
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="subcalendars/subscribe">
<method name="PUT" id="addSubCalendarSubscription">
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="subcalendars/links">
<method name="GET" id="getContentLinkingToSpaceSubCalendar">
<request>
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="subCalendarId"/>
</request>
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="preferences">
<method name="GET" id="getCalendarPreferences">
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="preferences/messagekey">
<method name="DELETE" id="suppressMessage">
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="subcalendars/watching/status">
<method name="GET" id="getWatchingStatus">
<request>
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="include"/>
</request>
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="events/upcoming">
<method name="GET" id="getSubCalendars">
<request>
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="viewingSpaceKey"/>
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="calendarContext"/>
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="userTimeZoneId"/>
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="start"/>
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="end"/>
</request>
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="preferences/subcalendars/setreminder">
<method name="PUT" id="setReminderForLoginUserOn">
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="util/format/subcalendar/ids">
<method name="GET" id="getSubCalendarsMapFromCommaSeparatedIds">
<request>
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="subCalendarIds"/>
</request>
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="util/format/date">
<method name="GET" id="getFormattedDates">
<request>
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="date"/>
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="pattern"/>
</request>
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="util/validate/group">
<method name="GET" id="filterInvalidGroupNames">
<request>
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="groupNames"/>
</request>
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="reminderUpcoming">
<method name="GET" id="getReminderUpcomingEvent">
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="subcalendars/restrictions">
<method name="PUT" id="restrictSubCalendar">
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
<resource path="events/multiplexed">
<method name="GET" id="getEvents">
<request>
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="subCalendarIds"/>
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="userTimeZoneId"/>
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" type="xs:string" style="query" name="start"/>
<param xmlns:xs="http://www.w3.org/2001/XMLSchema" default="30" type="xs:int" style="query" name="daysMore"/>
</request>
<response>
<representation mediaType="application/json; charset=UTF-8"/>
</response>
</method>
</resource>
<resource path="preferences/timezone">
<method name="PUT" id="set">
<response>
<representation mediaType="application/json"/>
</response>
</method>
</resource>
</resource>
</resources>
</application>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment