插件本地插件稳定版

Webservice manage sections

local_wsmanagesectionscorvus albus

  • Moodle 1.9–5.1
  • 更新 2023-08-20

Webservice Manage Sections allows you to manage the section structure of a moodle course via REST API. You can create, delete and move sections. Furthermore you can get the sectionsettings (name, summary, visibility, section format options, … ) and update them.
This local plugin allows you to manage the section structure of a moodle course via REST API.
Functions are build analog to the core_course function.
“Webservice manage sections” gives you the following functions:
local_wsmanagesections_create_sections: create sections at a defined position,
local_wsmanagesections_delete_sections: delete sections with given sectionnumber or -id,
local_wsmanagesections_move_section: move a section to a definded position,
local_wsmanagesections_get_sections: get the settings of given sections (name,visibility, format options, …),
local_wsmanagesections_update_sections: update  the settings of given sections (name,visibility, format options, …).
The webservice documentation for the above functions can be found at http://yoursite.com/admin/webservice/documentation.php .
After installing the plugin you have to add the functions to your rest-service.
There is some python sample code at https://github.com/corvus-albus/corvus-albus-moodle-local_wsmanagesections-script-examples .
This plugin can be installed by following the official Moodle documentation – Installing plugins .
This plugin can be used in accordance with the official Moodle documentation – Using web services .
Potential privacy issues
None.

返回插件目录