-
Notifications
You must be signed in to change notification settings - Fork 0
#Devoir API
##Users
GET /users
Parameters: userID
Returns a list of all users. For use by admin only.
POST /users
Parameters: username, password, email
Creates a new user
GET /users/{userID}
Parameters: userID
Returns the specified user
PUT /users/{userID}
Parameters: userID, username, password, email
Updates the specified user
POST /login
Parameters: username, password
Logs in a user
POST /logout
Logs out the user
##Calendars
GET /calendars
Parameters: userID
Returns a list of the user's calendars
POST /calendars
Parameters: userID, calendarName, iCalendarURL
Creates a new calendar
GET /calendars/{calendarID}
Parameters: userID
Returns the specified calendar
PUT /calendars/{calendarID}
Parameters: userID, calendarName, iCalendarURL
Updates the specified calendar
DELETE /calendars/{calendarID}
Parameters: userID
Deletes the specified calendar
##Tasks
GET /calendars/{calendarID}/tasks
Parameters: userID, calendarID
Returns all the tasks for a particular calendar
POST /calendars/{calendarID}/tasks
Parameters: userID, calendarID, taskName, dueDate, completed
Creates a new task belonging to the specified calendar
GET /calendars/{calendarID}/tasks/{taskID}
Parameters: userID, calendarID
Returns the specified task
PUT /calendars/{calendarID}/tasks/{taskID}
Parameters: userID, calendarID, taskName, dueDate, completed
Updates the specified task
DELETE /calendars/{calendarID}/tasks/{taskID}
Parameters: userID, calendarID
Deletes the specified task