headless_lms_server::controllers::course_material

Module exercises

Source
Expand description

Controllers for requests starting with /api/v0/course-material/exercises.

Structsยง

Functionsยง

  • Add a route for each controller in this module.
  • get_exercise ๐Ÿ”’
    GET /api/v0/course-material/exercises/:exercise_id - Get exercise by id. Includes relevant context so that doing the exercise is possible based on the response.
  • GET /api/v0/course-material/exercises/:exercise_id/peer-review - Get peer review for an exercise. This includes the submission to peer review and the questions the user is supposed to answer.ALTER
  • GET /api/v0/course-material/exercises/:exercise_id/peer-review-received - Get peer review recieved from other student for an exercise. This includes peer review submitted and the question asociated with it.
  • POST `/api/v0/course-material/exercises/:exercise_id/flag-peer-review-answer - Post a report of an answer in peer review made by a student
  • post_submission ๐Ÿ”’
    POST /api/v0/course-material/exercises/:exercise_id/submissions - Post new submission for an exercise.
  • POST /api/v0/course-material/exercises/:exercise_id/peer-or-self-reviews/start - Post a signal indicating thatthe user will start the peer or self reviewing process.This operation is only valid for exercises marked for peer reviews. No further submissions will beaccepted after posting to this endpoint.
  • POST `/api/v0/course-material/exercises/:exercise_id/peer-or-self-reviews - Post a peer review or a self review for anexercise submission.