-
Notifications
You must be signed in to change notification settings - Fork 1
CurrentUser
Antonius Cezar Hegyes edited this page Jan 20, 2015
·
11 revisions
The following URL structure exists for this controller:
api/CurrentUser/{action}/{courseId : optional} api/CurrentUser/{action}/{courseId : int}/{isPredicted : bool}
The following calls are currently available for the CurrentUser controller:
NOTE: None of these require any permissions at all!!!
- Description: Retrieves a list of all courses the current logged in user is a member of.
- Response Format: JSON of IEnumerable<Course>
- Description: Retrieves a list of all the submissions the current user has for the given course
- Response Format: JSON of SubmissionModel
- Description: Retrieves a list of all the grades the current user has for the given course
- Response Format: JSON of GradeModel
- Description: Returns either the predicted or the current grade of the current user for a specific course.
- Response Format: int
- Description: Returns a list of all the extension requests the current user has made for a particular course.
- Response Format: JSON of IEnumerable<ExtensionModel>
- Description: Registers a new extension request for the current user to a certain course.
- Response Format: JSON of ExtensionModel
- Parameters: {extension} of type ExtensionModel
- Description: Returns a list of all the excuse requests the current user has made for a particular course.
- Response Format: JSON of IEnumerable<ExcuseModel>
- Description: Registers a new excuse request for the current user to a certain course.
- Response Format: JSON of ExcuseModel
- Parameters: {excuse} of type ExcuseModel