course-material-courses

GET `/:course_slug/page-by-path/...` - Returns a course page by path If the page has moved and there's a redirection, this will still return the moved page but the field `was_redirected` will indicate that the redirection happened. The new path can be found in the page object. The frontend is supposed to update the url of the page to the new location without reloading the page. # Example GET /api/v0/course-material/courses/introduction-to-everything/page-by-path//part-2/hello-world

Changed on
get/api/v0/course-material/courses/{course_slug}/page-by-path/{url_path}

Request

  • The document declares no server URL.
  • Auth: none declared

Path parameters

course_slugstring required

Course slug

url_pathstring required

Page path within the course

Response

Course page with user data

is_test_modeboolean required
lock_chapter_content_state'not_locked' | 'waiting_teacher_review' | 'visible'
was_redirectedboolean required

If true, the frontend needs to update the url in the browser to match the path in the page object without reloading the page.

Changes

    • ○

      added the required property ///// to the response with the status

    • ○

      added the optional property ///// to the response with the status

    • ○

      added the required property ///// to the response with the status