headless_lms_server::controllers::main_frontend

Module chapters

Source
Expand description

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

Functionsยง

  • Add a route for each controller in this module.
  • delete_chapter ๐Ÿ”’
    DELETE /api/v0/main-frontend/chapters/:chapter_id - Delete a chapter.
  • 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.
  • 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.