diff --git a/config.json b/config.json index 08b3ea3..abdcffd 100644 --- a/config.json +++ b/config.json @@ -247,6 +247,76 @@ ] }, + { + "path": "/core_course_get_categories", + "method": "GET", + "function": "core_course_get_categories", + "description": "Get course categories", + "tags": ["Courses"], + "query_params": [], + "responses": { + "200": { + "description": "List of course categories", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": {"type": "integer"}, + "name": {"type": "string"}, + "description": {"type": "string"}, + "descriptionformat": {"type": "integer"}, + "parent": {"type": "integer"}, + "sortorder": {"type": "integer"}, + "coursecount": {"type": "integer"}, + "depth": {"type": "integer"}, + "path": {"type": "string"} + } + } + }, + "example": [ + { + "id": 60, + "name": "ABU-SOL", + "description": "
ABU-Moodle-Kurse des Projekts nachhaltige Lernorganisationsformen, in denen begleitetes selbstorganisisertes Lernen (SOL) und eine Einführung des selbstgesteuerten Lernen in einem Pilotversuch getestet wird.