Skip to content
Antonius Cezar Hegyes edited this page Jan 20, 2015 · 7 revisions

The following URL structure exists for this controller:

api/Courses/{courseId}/Grades/{action}/{gradeId : optional} api/Courses/{courseId}/Grades/{action}/{wholeTeam: bool}/{gradeId : optional}

The following calls are currently available for the Grades controller:

1. GET: /api/Grades/All

  • Description: Retrieves a list of all available Grades.
  • Response Format: JSON of IEnumerable<GradeModel>
  • Permissions: CanSeeAllGrades

2. GET: /api/Courses/{courseId : int}/Grades/All

  • Description: Retrieves a list of all available Grades for this course.
  • Response Format: JSON of IEnumerable<GradeModel>
  • Permissions: CanSeeGrades

3. GET: /api/Courses/{courseId : int}/Grades/Get/{gradeId : int}

  • Description: Retrieves the details of a particular Grade.
  • Response Format: JSON of GradeModel
  • Permissions: CanSeeGrades

4. POST: /api/Courses/{courseId}/Grades/Add/{wholeTeam : bool}

  • Description: Add a new Grade.
  • Response Format: HttpStatusCode
  • Parameters: {grade} of type GradeModel (JSON in the body of the message)
  • Permissions: CanGrade

5. PUT: /api/Courses/{courseId : int}/Grades/Update/{wholeTeam : bool}/{gradeId : int}

  • Description: Update an existing Grade.
  • Response Format: HttpStatusCode
  • Parameters: {grade} of type GradeModel (JSON in the body of the message)
  • Permissions: CanUpdateGrade

6. DELETE: /api/Courses/{courseId : int}/Grades/Delete/{wholeTeam : bool}/{gradeId : int}

  • Description: Delete an existing Grade.
  • Response Format: HttpStatusCode
  • Permissions: CanDeleteGrade

Clone this wiki locally