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

The following URL structure exists for this controller:

api/Courses/{courseId}/Submissions/{action}/{submissionId : optional}

The following calls are currently available for the Submissions controller:

1. GET: /api/Submissions/All

  • Description: Retrieves a list of all available submissions.
  • Response Format: JSON of IEnumerable<SubmissionModel>
  • Parameters: None
  • Permissions: CanSeeAllSubmissions

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

  • Description: Retrieves a list of all available submissions for a certain course.
  • Response Format: JSON of IEnumerable<SubmissionModel>
  • Permissions: CanSeeSubmissions

3. GET: /api/Courses/{courseId : int}/Submissions/Get/{submissionId : int}

  • Description: Retrieves the details of a particular submission belonging to a certain course.
  • Response Format: JSON of SubmissionModel
  • Permissions: CanSeeSubmissions

4. POST: /api/Courses/{courseId : int}/Submissions/Add

  • Description: Add a new submission.
  • Response Format: JSON of the added SubmissionModel
  • Parameters: The request needs to contain the header 'multipart/form-data' and submit the file together with the FileModelExtension. For more information on how to add submissions / upload files, please see this page.
  • Permissions: CanCreateSubmissions

5. DELETE: /api/Courses/{courseId : int}/Submissions/Delete/{submissionId : int}

  • Description: Delete an existing submission.
  • Response Format: HttpStatusCode
  • Permissions: CanDeleteSubmissions

Clone this wiki locally