From 21c6c39f1fe1b5873c8f90ea41f5249f86f6d6b4 Mon Sep 17 00:00:00 2001 From: MyDrift Date: Wed, 17 Sep 2025 11:17:48 +0200 Subject: [PATCH] add core_course_get_categories add core_course_get_categories endpoint --- config.json | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) 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.

", + "descriptionformat": 1, + "parent": 0, + "sortorder": 10000, + "coursecount": 4, + "depth": 1, + "path": "/60" + }, + { + "id": 48, + "name": "Automatikmonteur", + "description": "Sammelgefäss für alle Kurse des Berufs Automatikmonteur", + "descriptionformat": 1, + "parent": 0, + "sortorder": 100000, + "coursecount": 10, + "depth": 1, + "path": "/48" + }, + { + "id": 17, + "name": "Automobil", + "description": "", + "descriptionformat": 1, + "parent": 0, + "sortorder": 110000, + "coursecount": 0, + "depth": 1, + "path": "/17" + } + ] + } + } + } + } + }, + { "path": "/core_enrol_get_enrolled_users", "method": "GET",