-
Notifications
You must be signed in to change notification settings - Fork 1
Files
Antonius Cezar Hegyes edited this page Jan 13, 2015
·
2 revisions
The following URL structure exists for this controller:
api/Courses/{courseId : int}/Files/{action}/{fileId : optional}
The following calls are currently available for the Entities controller:
- Description: Retrieves a list of all available files.
- Response Format: JSON of IEnumerable<FileModel>
- Permissions: CanSeeAllFiles
- Description: Retrieves a list of all available files for this course.
- Response Format: JSON of IEnumerable<FileModel>
- Permissions: CanSeeFiles
- Description: Retrieves the details of a particular file.
- Response Format: JSON of FileModel
- Permissions: CanSeeFiles
- Description: Add a new file.
- Response Format: JSON of the added FileModel
- Parameters: {file} of type FileModel (JSON in the body of the message)
- Permissions: CanCreateFiles
- Description: Update an existing file.
- Response Format: JSON of the updated FileModel
- Parameters: {file} of type FileModel (JSON in the body of the message)
- Permissions: CanUpdateFiles
- Description: Delete an existing file.
- Response Format: HttpStatusCode
- Permissions: CanDeleteFiles