-
Notifications
You must be signed in to change notification settings - Fork 11
Events
Paul Dilyard edited this page Sep 29, 2015
·
6 revisions
POST /events
Auth -> admin
{
"title": String, // required
"description": String,
"start": Date, // required
"end": Date, // required
"type": String,
"icon": String,
"location": String,
"group": String,
"notify": Boolean
}
HTTP/1.1 201 Created
{
"_id": String,
"title": String,
"description": String,
"start": Date,
"end": Date,
"type": String,
"icon": String,
"location": String,
"group": String,
"notify": Boolean
}GET /events/:id
HTTP/1.1 200 OK
{
"_id": String,
"title": String,
"description": String,
"start": Date,
"end": Date,
"type": String,
"icon": String,
"location": String,
"group": String,
"notify": Boolean
}GET /events
HTTP/1.1 200 OK
{
"events": [{
"_id": String,
"title": String,
"description": String,
"start": Date,
"end": Date,
"type": String,
"icon": String,
"location": String,
"group": String,
"notify": Boolean
}]
}PATCH /events/:id
Auth -> admin
{ // all fields optional
"title": String,
"description": String,
"start": Date,
"end": Date,
"type": String,
"icon": String,
"location": String,
"group": String,
"notify": Boolean
}
HTTP/1.1 200 OK
{
"_id": String,
"title": String,
"description": String,
"start": Date,
"end": Date,
"type": String,
"icon": String,
"location": String,
"group": String,
"notify": Boolean
}DELETE /events/:id
Auth -> admin
HTTP/1.1 200 OK
{
"_id": String
}