Skip to content
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!!!

1. GET: /api/CurrentUser/Courses

  • Description: Retrieves a list of all courses the current logged in user is a member of.
  • Response Format: JSON of IEnumerable<Course>

2. GET: /api/CurrentUser/Submissions/{courseId : int}

  • Description: Retrieves a list of all the submissions the current user has for the given course
  • Response Format: JSON of SubmissionModel

3. GET: /api/CurrentUser/Grades/{courseId : int}

  • Description: Retrieves a list of all the grades the current user has for the given course
  • Response Format: JSON of GradeModel

4. GET: /api/CurrentUser/CourseGrade/{courseId : int}/{isPredicted : bool}

  • Description: Returns either the predicted or the current grade of the current user for a specific course.
  • Response Format: int

5. GET: /api/CurrentUser/ExtensionRequests/{courseId : 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>

6. POST: /api/CurrentUser/ExtensionRequest/{courseId : int}

  • Description: Registers a new extension request for the current user to a certain course.
  • Response Format: JSON of ExtensionModel
  • Parameters: {extension} of type ExtensionModel

7. GET: /api/CurrentUser/ExcuseRequests/{courseId : int}

  • Description: Returns a list of all the excuse requests the current user has made for a particular course.
  • Response Format: JSON of IEnumerable<ExcuseModel>

8. POST: /api/CurrentUser/ExcuseRequest/{courseId : int}

  • Description: Registers a new excuse request for the current user to a certain course.
  • Response Format: JSON of ExcuseModel
  • Parameters: {excuse} of type ExcuseModel

Clone this wiki locally