diff --git a/lib/cadet_web/admin_controllers/admin_courses_controller.ex b/lib/cadet_web/admin_controllers/admin_courses_controller.ex index c932c67c9..61b97e38d 100644 --- a/lib/cadet_web/admin_controllers/admin_courses_controller.ex +++ b/lib/cadet_web/admin_controllers/admin_courses_controller.ex @@ -91,7 +91,7 @@ defmodule CadetWeb.AdminCoursesController do end swagger_path :update_course_config do - put("/v2/courses/{course_id}/admin/config") + put("/courses/{course_id}/admin/config") summary("Updates the course configuration for the specified course") @@ -117,7 +117,7 @@ defmodule CadetWeb.AdminCoursesController do end swagger_path :update_assessment_configs do - put("/v2/courses/{course_id}/admin/config/assessment_configs") + put("/courses/{course_id}/admin/config/assessment_configs") summary("Updates the assessment configuration for the specified course") diff --git a/lib/cadet_web/router.ex b/lib/cadet_web/router.ex index a6867df8a..4169fd33c 100644 --- a/lib/cadet_web/router.ex +++ b/lib/cadet_web/router.ex @@ -154,9 +154,11 @@ defmodule CadetWeb.Router do post("/stories/:storyid", AdminStoriesController, :update) put("/config", AdminCoursesController, :update_course_config) + # FIXME: Missing corresponding Swagger path entry get("/config/assessment_configs", AdminCoursesController, :get_assessment_configs) put("/config/assessment_configs", AdminCoursesController, :update_assessment_configs) + # FIXME: Missing corresponding Swagger path entry delete( "/config/assessment_config/:assessment_config_id", AdminCoursesController,