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

The following URL structure exists for this controller:

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

The following calls are currently available for the Courses controller:

1. GET: /api/Courses/All

  • Description: Retrieves a list of all available courses.
  • Response Format: JSON of IEnumerable<CourseModel>
  • Parameters: None
  • Permissions: None

2. GET: /api/Courses/Get/{courseId}

  • Description: Retrieves the details of a particular course.
  • Response Format: JSON of CourseModel
  • Parameters: {courseId} of type int
  • Permissions: None

3. POST: /api/Courses/Add

  • Description: Add a new course.
  • Response Format: JSON of the added CourseModel
  • Parameters: {course} of type CourseModel (JSON in the body of the message)
  • Permissions: CanCreateCourse

4. PUT: /api/Courses/Update/{courseId}

  • Description: Update an existing course.
  • Response Format: JSON of the updated CourseModel
  • Parameters: {courseId} of type int and {course} of type CourseModel (JSON in the body of the message)
  • Permissions: CanUpdateCourse

5. DELETE: /api/Courses/Delete/{courseId}

  • Description: Delete an existing course.
  • Response Format: HttpStatusCode
  • Parameters: {courseId} of type int
  • Permissions: CanDeleteCourse

Clone this wiki locally