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

The following URL structure exists for this controller:

api/Courses/{courseId}/Extensions/{action}/{extensionId : optional} api/Courses/{courseId}/Extensions/{action}/{userId : int}

The following calls are currently available for the Extensions controller:

1. GET: /api/Extensions/All

  • Description: Retrieves a list of all available Extensions.
  • Response Format: JSON of IEnumerable<ExtensionModel>
  • Permissions: CanSeeAllExtensions

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

  • Description: Retrieves a list of all available Extensions for this course.
  • Response Format: JSON of IEnumerable<ExtensionModel>
  • Permissions: CanGrantExtensions

3. POST: /api/Courses/{courseId : int}/Extensions/Add/{userId : int}

  • Description: Add a extension for a certain user / team to a certain course. This does NOT update the ExtensionNumber property of CourseUserModel
  • Response Format: HttpStatusCode
  • Parameters: {extension} of type ExtensionModel (JSON in the body of the message)
  • Permissions: None

4. PUT: /api/Courses/{courseId : int}/Extensions/Update/{extensionId : int}

  • Description: Update an existing extension for a user / team.
  • Response Format: HttpStatusCode
  • Parameters: {extension} of type ExtensionModel (JSON in the body of the message)
  • Permissions: CanGrantExtensions

5. DELETE: /api/Courses/{courseId : int}/Extensions/Delete/{extensionId : int}

  • Description: Delete an existing extension for a user / team.
  • Response Format: HttpStatusCode
  • Permissions: CanGrantExtensions

Clone this wiki locally