Function get_course_exercises

Source
async fn get_course_exercises(
    pool: Data<PgPool>,
    user: AuthToken,
    course: Path<Uuid>,
) -> ControllerResult<Json<Vec<ExerciseSlide>>>
Expand description
  • GET /api/v0/langs/courses/:id/exercises
  • Returns 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.