Module chapters

Source
Expand description

Controllers for requests starting with /api/v0/main-frontend/chapters.

Functionsยง

_add_routes
Add a route for each controller in this module.
delete_chapter ๐Ÿ”’
DELETE /api/v0/main-frontend/chapters/:chapter_id - Delete a chapter.
get_all_chapters_by_course_id ๐Ÿ”’
GET `/api/v0/main-frontend/chapters/{course_id}/all-chapters-for-course - Gets all chapters with a course_id
post_new_chapter ๐Ÿ”’
POST /api/v0/main-frontend/chapters - Create a new course part.
remove_chapter_image ๐Ÿ”’
DELETE /api/v0/main-frontend/chapters/:chapter_id/image - Removes the chapter image.
set_chapter_image ๐Ÿ”’
PUT /api/v0/main-frontend/chapters/:chapter_id/image - Sets or updates the chapter image.
update_chapter ๐Ÿ”’
PUT /api/v0/main-frontend/chapters/:chapter_id - Update chapter.