Expand description
Controllers for requests starting with /api/v0/main-frontend/courses
.
Modulesยง
- Controllers for requests starting with
/api/v0/main-frontend/{course_id}/stats
.
Structsยง
Functionsยง
- 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. - POST /courses/:course_id/join-course-with-join-code - Adds the user to join_code_uses so the user gets access to the course
- GET
/api/v0/main-frontend/courses/${course.id}/export-course-user-consents
- GET
/api/v0/main-frontend/courses/${course.id}/export-course-instances
- delete_
course ๐DELETE/api/v0/main-frontend/courses/:course_id
- Delete a course. - DELETE
/api/v0/main-frontend/courses/:course_id
- Delete a partners block in a course. - GET
/api/v0/main-frontend/courses/${course.id}/export-exercise-tasks
- 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
/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 /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
/api/v0/main-frontend/courses/:course_id/breadcrumb-info
- Get information to display breadcrumbs on the manage course pages. - 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
/api/v0/main-frontend/courses/:id/course-users-counts-by-exercise
- Returns the amount of users for each exercise. - GET /courses/join/:join_code - Gets the course related to join code
- GET
/api/v0/main-frontend/courses/:id/daily-submission-counts
- Returns submission counts grouped by day. - 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
/api/v0/main-frontend/courses/:id/feedback?read=true
- Returns feedback for the given course. - GET
/api/v0/main-frontend/courses/:id/feedback-count
- Returns the amount of feedback for the given course. - GET
/api/v0/main-frontend/courses/${course.id}/page-visit-datum-summary
- Gets aggregated statistics for page visits for the course. - GET
/api/v0/main-frontend/courses/${course.id}/page-visit-datum-summary-by-countries
- Gets aggregated statistics for page visits for the course. - 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
/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
/api/v0/main-frontend/courses/:id/submission-counts-by-exercise
- Returns submission counts grouped by weekday and hour. - GET
/api/v0/main-frontend/courses/:id/weekday-hour-submission-counts
- Returns submission counts grouped by weekday and hour. - glossary ๐
- 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
/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
/api/v0/main-frontend/courses/:id/duplicate
- Post new course as a copy from existing one. - POST
/api/v0/main-frontend/courses/:id/language-versions
- Post new course as a new language version of existing one. - 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
/api/v0/main-frontend/courses/{course_id}/update-peer-review-queue-reviews-received
- 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
- GET
/api/v0/main-frontend/courses/${courseId}/export-submissions
- POST /api/v0/main-frontend/courses/${course.id}/suspected-cheaters/approve/:id - UPDATE is_archived to FALSE.
- POST /api/v0/main-frontend/courses/${course.id}/suspected-cheaters/archive/:id - UPDATE is_archived to TRUE.
- 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. - 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. - GET
/api/v0/main-frontend/courses/${course.id}/export-user-details
- GET
/api/v0/main-frontend/courses/${course.id}/export-user-exercise-states