From 18157248635558a6d81e2bc550711e9ff7f191e9 Mon Sep 17 00:00:00 2001 From: Mimis Chlympatsos Date: Mon, 18 Dec 2023 09:27:17 -0500 Subject: [PATCH] RESTful API documentation for api/sections_controller actions (#200) --- RESTful-API.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/RESTful-API.md b/RESTful-API.md index 3662909..06864e1 100644 --- a/RESTful-API.md +++ b/RESTful-API.md @@ -1194,3 +1194,15 @@ NOTE: the folder_path string can include a nested path if the folder to be remov ### GET /api/courses/:course_id/starter_file_groups/:id/download_entries - description: Download a zip archive containing all entries (files and folders) in this starter file group + +### POST /api/courses/:course_id/sections + +- description: Create a new section for the given course. +- required parameters: + - section + - name (string) + +### DELETE /api/courses/:course_id/sections/:id + +- description: Delete the section uniquely identified by the given course and section id's. +- NOTE: The section must be non-empty (must not have any students).