Module langs

Source
Expand description

Handlers for HTTP requests to /api/v0/langs. Contains endpoints for the use of tmc-langs.

StructsΒ§

SubmissionForm πŸ”’

FunctionsΒ§

_add_routes
get_course πŸ”’
GET /api/v0/langs/courses/:idReturns the course with the given id.
get_course_exercises πŸ”’
GET /api/v0/langs/courses/:id/exercisesReturns the user’s exercise slides for the given course.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_courses πŸ”’
GET /api/v0/langs/coursesReturns the courses 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