[Cosmo-dev] JSON-RPC considered harmful

Travis Vachon travis at osafoundation.org
Tue Dec 5 18:09:16 PST 2006


Sorry, just noticed this is a little hard to read:

getEvent(calendarName, id) -> GET /item/{itemUid}?ticket={ticketId}

getEvents(calendarPath, beginDate, endDate) -> GET /collection/ 
{collectionUid}?bDate={beginDate}&eDate={endDate}&ticket={ticketId}

saveEvent(calendarPath, event) -> PUT /item/{collectionUid}/{itemUid}  
w/ JSON item representation as content

removeEvent(calendarPath, event) -> DELETE /item/{itemUid}

getRecurrenceRules(calendarPath, eventIds) -> GET /item/{itemUid}/ 
recurrence?iid={e1}&iid={e2}&...&iid={eN}

saveRecurrenceRule(calendarPath, eventId, recurrenceRule) -> PUT / 
item/{itemUid}/recurrence w/ JSON recurrenceRule representation as  
content

expandEvents(calendarPath, eventIds, utcStartTime, utcEndTime) ->
	GET /collection/{collectionUid}?iid={e1}&iid={e2}&...&iid={eN}&stime= 
{startTime}&etime={endTime}

saveNewEventBreakRecurrence(String calendarPath, event,  
originalEventId, originalEventEndDate) ->
	PUT /breakevent/{originalEventUid}?date=originalEventEndDate w/ JSON  
event as content

Thanks!

-Travis

On Dec 5, 2006, at 6:07 PM, Travis Vachon wrote:

> getEvent(calendarName, id) -> (GET /item/{itemUid}?ticket={ticketId}
> getEvents(calendarPath, beginDate, endDate) -> (GET /collection/ 
> {collectionUid}?bDate={beginDate}&eDate={endDate}&ticket={ticketId}
> saveEvent(calendarPath, event) -> PUT /item/{collectionUid}/ 
> {itemUid} w/ JSON item representation as content
> removeEvent(calendarPath, event) -> DELETE /item/{itemUid}
> getRecurrenceRules(calendarPath, eventIds) -> GET /item/{itemUid}/ 
> recurrence?iid={e1}&iid={e2}&...&iid={eN}
> saveRecurrenceRule(calendarPath, eventId, recurrenceRule) -> PUT / 
> item/{itemUid}/recurrence w/ JSON recurrenceRule representation as  
> content
> expandEvents(calendarPath, eventIds, utcStartTime, utcEndTime) ->
> 	GET /collection/{collectionUid}?iid={e1}&iid={e2}&...&iid={eN} 
> &stime={startTime}&etime={endTime}
> saveNewEventBreakRecurrence(String calendarPath, event,  
> originalEventId, originalEventEndDate) ->
> 	PUT /breakevent/{originalEventUid}?date=originalEventEndDate w/  
> JSON event as content

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osafoundation.org/pipermail/cosmo-dev/attachments/20061205/4b3e104c/attachment-0001.html


More information about the cosmo-dev mailing list