Expand description
Controllers for requests starting with /api/v0/cms/pages.
StructsΒ§
- CmsPages
ApiDoc π
FunctionsΒ§
- _add_
routes - Add a route for each controller in this module.
- get_
exercises_ πwith_ submissions - POST
/api/v0/cms/pages/:page_id/exercises-with-submissions- Given a set of exercise ids, returns the subset that has at least one existing submission. Used by the editor to warn the teacher before saving a page edit that would remove one of these exercises, since that soft-deletes it and orphans its submissions. - 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.