async fn post_new_chapter(
    request_id: RequestId,
    pool: Data<PgPool>,
    payload: Json<NewChapter>,
    user: AuthUser,
    file_store: Data<dyn FileStore>,
    app_conf: Data<ApplicationConfiguration>,
    jwt_key: Data<JwtKey>
) -> ControllerResult<Json<Chapter>>
Expand description

POST /api/v0/main-frontend/chapters - Create a new course part.

Example

Request:

POST /api/v0/main-frontend/chapters HTTP/1.1
Content-Type: application/json

{
    "name": "The Basics",
    "course_id": "d86cf910-4d26-40e9-8c9c-1cc35294fdbb",
    "chapter_number": 1,
    "front_page_id": null
}