Expand description
Handlers for HTTP requests to /api/v0/langs
. Contains endpoints for the use of tmc-langs.
StructsΒ§
- Submission
Form π
FunctionsΒ§
- _add_
routes - get_
course_ πinstance_ exercises - GET /api/v0/langs/course-instances/:id/exercisesReturns the userβs exercise slides for the given course instance.Does not return anything for chapters which are not open yet.Selects slides for exercises with no slide selected yet.Only returns slides which have tasks that are compatible with langs.
- get_
course_ πinstances - GET /api/v0/langs/course-instancesReturns the course instances that the user is currently enrolled on that contain TMC exercises.
- get_
exercise π - GET /api/v0/langs/exercises/:idReturns an exercise slide for the user for the given exercise.Only returns slides
- get_
submission_ πgrading - submit_
exercise π - POST /api/v0/langs/exercises/:id/submit