Get a course
GET/api/courses/:id
Fetches one course with derived metadata, shaped by the view query param to keep payloads lean (full/summary/roster/assignments/problems). Assignments come back with derived point totals and submission/comment counts; problems are tagged with whether an assignment uses them; the roster is flattened into a single enrolled array, and the caller's own course role is included. Access is restricted: any enrolled member of the course (any role) or a system admin.
Auth: requires FACULTY / TA / STUDENT
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
The course with metadata for the requested view.
Missing course id.
Not signed in.
Not enrolled in the course and not a system admin.
Course not found.
Server error.