Skip to content
Antonius Cezar Hegyes edited this page Jan 15, 2015 · 1 revision

The following URL structure exists for this controller:

api/Courses/{courseId : int}/Permissions/{action}/{userId : optional}

The following calls are currently available for the Permissions controller:

1. GET: /api/Permissions/All

  • Description: Retrieves a list of all available permissions.
  • Response Format: JSON of string[]
  • Permissions: CanGrantPermissions

2. POST: /api/Courses/{courseId : int}/Submissions/Set/{userId : int}

  • Description: Set permissions to a certain user for a certain course.
  • Response Format: JSON of the updated CourseUserModel
  • Parameters: {permissions} of type IEnumberable (JSON in the body of the message)
  • Permissions: CanGrantPermissions

Clone this wiki locally