Expand description
Controllers for requests starting with /api/v0/main-frontend/courses
.
Modulesยง
- stats
- Controllers for requests starting with
/api/v0/main-frontend/{course_id}/stats
.
Structsยง
Enumsยง
Functionsยง
- _add_
routes - Add a route for each controller in this module.
- _new_
term ๐ - add_
media_ ๐for_ course - POST
/api/v0/main-frontend/courses/:course_id/upload
- Uploads a media (image, audio, file) for the course from Gutenberg page edit. - add_
user_ ๐to_ course_ with_ join_ code - POST /courses/:course_id/join-course-with-join-code - Adds the user to join_code_uses so the user gets access to the course
- course_
consent_ form_ answers_ export - GET
/api/v0/main-frontend/courses/${course.id}/export-course-user-consents
- course_
instances_ export - GET
/api/v0/main-frontend/courses/${course.id}/export-course-instances
- create_
course_ copy - POST
/api/v0/main-frontend/courses/:id/create-copy
- Create a copy of a course with specified mode. - delete_
course ๐ - DELETE
/api/v0/main-frontend/courses/:course_id
- Delete a course. - delete_
material_ ๐reference_ by_ id - delete_
partners_ ๐block - DELETE
/api/v0/main-frontend/courses/:course_id
- Delete a partners block in a course. - exercise_
tasks_ export - GET
/api/v0/main-frontend/courses/${course.id}/export-exercise-tasks
- get_
all_ ๐course_ language_ versions - GET
/api/v0/main-frontend/courses/:id/language-versions
- Returns all language versions of the same course. - get_
all_ ๐exercises - GET
/api/v0/main-frontend/courses/:id/exercises
- Returns all exercises for the course. - get_
all_ ๐exercises_ and_ count_ of_ answers_ requiring_ attention - GET
/api/v0/main-frontend/courses/:id/exercises-and-count-of-answers-requiring-attention
- Returns all exercises for the course and count of answers requiring attention in them. - get_
all_ ๐suspected_ cheaters - GET /api/v0/main-frontend/courses/${course.id}/suspected-cheaters?archive=true - returns all suspected cheaters related to a course instance.
- get_
course ๐ - GET
/api/v0/main-frontend/courses/:course_id
- Get course. - get_
course_ ๐breadcrumb_ info - GET
/api/v0/main-frontend/courses/:course_id/breadcrumb-info
- Get information to display breadcrumbs on the manage course pages. - get_
course_ ๐default_ peer_ review - get_
course_ ๐instances - GET
/api/v0/main-frontend/courses/:id/course-instances
- Returns all course instances for given course id. - get_
course_ ๐structure - GET
/api/v0/main-frontend/courses/:course_id/structure
- Returns the structure of a course. - get_
course_ users_ counts_ by_ exercise - GET
/api/v0/main-frontend/courses/:id/course-users-counts-by-exercise
- Returns the amount of users for each exercise. - get_
course_ ๐with_ join_ code - GET /courses/join/:join_code - Gets the course related to join code
- get_
daily_ ๐submission_ counts - GET
/api/v0/main-frontend/courses/:id/daily-submission-counts
- Returns submission counts grouped by day. - get_
daily_ ๐user_ counts_ with_ submissions - GET
/api/v0/main-frontend/courses/:id/daily-users-who-have-submitted-something
- Returns a count of users who have submitted something grouped by day. - get_
feedback - GET
/api/v0/main-frontend/courses/:id/feedback?read=true
- Returns feedback for the given course. - get_
feedback_ count - GET
/api/v0/main-frontend/courses/:id/feedback-count
- Returns the amount of feedback for the given course. - get_
material_ ๐references_ by_ course_ id - get_
page_ visit_ datum_ summary - GET
/api/v0/main-frontend/courses/${course.id}/page-visit-datum-summary
- Gets aggregated statistics for page visits for the course. - get_
page_ visit_ datum_ summary_ by_ countries - GET
/api/v0/main-frontend/courses/${course.id}/page-visit-datum-summary-by-countries
- Gets aggregated statistics for page visits for the course. - get_
page_ visit_ datum_ summary_ by_ device_ types - GET
/api/v0/main-frontend/courses/${course.id}/page-visit-datum-summary-by-device-types
- Gets aggregated statistics for page visits for the course. - get_
page_ visit_ datum_ summary_ by_ pages - GET
/api/v0/main-frontend/courses/${course.id}/page-visit-datum-summary-by-pages
- Gets aggregated statistics for page visits for the course. - get_
partners_ ๐block - GET /courses/:course_id/partners_blocks - Gets a partners block related to a course
- get_
submission_ ๐counts_ by_ exercise - GET
/api/v0/main-frontend/courses/:id/submission-counts-by-exercise
- Returns submission counts grouped by weekday and hour. - get_
weekday_ ๐hour_ submission_ counts - GET
/api/v0/main-frontend/courses/:id/weekday-hour-submission-counts
- Returns submission counts grouped by weekday and hour. - glossary ๐
- insert_
material_ ๐references - insert_
threshold ๐ - POST /api/v0/main-frontend/courses/${course.id}/threshold - post course threshold information.
- new_
course_ ๐instance - POST
/api/v0/main-frontend/courses/:id/new-course-instance
- new_
glossary_ ๐term - post_
new_ chapter_ ordering - POST
/api/v0/main-frontend/courses/:id/new-chapter-ordering
- Reorders chapters based on modified chapter number.# - post_
new_ ๐course - POST
/api/v0/main-frontend/courses
- Create a new course. - post_
new_ page_ ordering - POST
/api/v0/main-frontend/courses/:id/new-page-ordering
- Reorders pages to the given order numbers and given chapters. - post_
partners_ ๐block - POST /api/v0/main-frontend/courses/:course_id/partners_block - Create or updates a partners block for a course
- post_
update_ ๐peer_ review_ queue_ reviews_ received - POST
/api/v0/main-frontend/courses/${course_id}/update-peer-review-queue-reviews-received
- set_
join_ ๐code_ for_ course - POST /api/v0/main-frontend/courses/:course_id/generate-join-code - Generates a code that is used as a part of URL to join course
- submission_
export - GET
/api/v0/main-frontend/courses/${courseId}/export-submissions
- teacher_
approve_ ๐suspected_ cheater - POST /api/v0/main-frontend/courses/${course.id}/suspected-cheaters/approve/:id - UPDATE is_archived to FALSE.
- teacher_
archive_ ๐suspected_ cheater - POST /api/v0/main-frontend/courses/${course.id}/suspected-cheaters/archive/:id - UPDATE is_archived to TRUE.
- teacher_
reset_ course_ progress_ for_ everyone - DELETE
/api/v0/main-frontend/courses/${course.id}/teacher-reset-course-progress-for-everyone
- Can be used by teachers to reset the course progress for all students. Only works when the course is a draft and not published to students. Cannot be used to delete a course that some students have taken. - teacher_
reset_ course_ progress_ for_ themselves - DELETE
/api/v0/main-frontend/courses/${course.id}/teacher-reset-course-progress-for-themselves
- Allows a teacher to reset the course progress for themselves. Cannot be used to reset the course for others. - update_
course ๐ - POST
/api/v0/main-frontend/courses/:course_id
- Update course. - update_
material_ ๐reference - update_
modules - user_
details_ export - GET
/api/v0/main-frontend/courses/${course.id}/export-user-details
- user_
exercise_ states_ export - GET
/api/v0/main-frontend/courses/${course.id}/export-user-exercise-states