Expand description

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

FunctionsΒ§

_add_routes
Add a route for each controller in this module.
delete_page πŸ”’
DELETE /api/v0/main-frontend/pages/:page_id - Delete a page, related exercises, and related exercise tasks by id.
get_all_pages_by_course_id πŸ”’
GET /api/v0/main-frontend/pages/:course_id/all-course-pages-for-course - Get all pages of a course
get_page_info πŸ”’
GET /api/v0/main-fronted/pages/:page_id/info - Get a pages’s course id, course name, organization slug
history πŸ”’
GET /api/v0/main-frontend/pages/:page_id/history
history_count πŸ”’
GET /api/v0/main-frontend/pages/:page_id/history_count
post_new_page πŸ”’
POST /api/v0/main-frontend/pages - Create a new page.
restore πŸ”’
POST /api/v0/main-frontend/pages/:page_id/restore
update_page_details πŸ”’
POST /api/v0/main-frontend/pages/:page_id/page-details - Update pages title and url_path.