Skip to content
Paul Dilyard edited this page Oct 2, 2015 · 6 revisions

*Add a new event

POST/eventsAuth->admin{"title": String,// required"description": String,"start": Date,// required"end": Date,// required"type": String,"icon": String,"location": String,"group": String,"notify": Boolean}HTTP/1.1201Created{"_id": String,"title": String,"description": String,"start": Date,"end": Date,"type": String,"icon": String,"location": String,"group": String,"notify": Boolean}

Get an event by ID

GET/events/:idHTTP/1.1200OK{"_id": String,"title": String,"description": String,"start": Date,"end": Date,"type": String,"icon": String,"location": String,"group": String,"notify": Boolean}

Get a list of events

Add the query string ?icons=true at the end to fetch a list of pre-built icon URLs.

GET/eventsHTTP/1.1200OK{"events": [{"_id": String,"title": String,"description": String,"start": Date,"end": Date,"type": String,"icon": String,"location": String,"group": String,"notify": Boolean}]}

*Partially update an event

PATCH/events/:idAuth->admin{// all fields optional"title": String,"description": String,"start": Date,"end": Date,"type": String,"icon": String,"location": String,"group": String,"notify": Boolean}HTTP/1.1200OK{"_id": String,"title": String,"description": String,"start": Date,"end": Date,"type": String,"icon": String,"location": String,"group": String,"notify": Boolean}

*Delete an event

DELETE/events/:idAuth->adminHTTP/1.1200OK{"_id": String}

Clone this wiki locally