Module pages

Source
Expand description

Controllers for requests starting with /api/v0/cms/pages.

Functionsยง

_add_routes
Add a route for each controller in this module.
get_page ๐Ÿ”’
GET /api/v0/cms/pages/:page_id - Get a page with exercises and exercise tasks by id.
get_page_info ๐Ÿ”’
GET /api/v0/cms/pages/:page_id/info - Get a pagesโ€™s course id, course name, organization slug
get_page_navigation ๐Ÿ”’
GET /api/v0/cms/pages/:page_id/page-navigation - tells whatโ€™s the next page, previous page, and the chapter front page given a page id.
update_page ๐Ÿ”’
PUT /api/v0/cms/pages/:page_id - Update a page by id.