Moodle Plugins directory: Webservice manage sections | Moodle.org
Webservice manage sections
Local plugins ::: local_wsmanagesections
Maintained by
corvus albus
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.
Latest release:
143 sites
35 downloads
8 fans
Current versions available: 1
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.
Useful links
Contributors
corvus albus (Lead maintainer)
Please login to view contributors details and/or to contact them
how stable is the latest version with moodle 4.0?
we use the plugin at our school and pan to upgrade to moodle 4.0 until september.
Moodle 4 will be supported and if everything goes well changes will be done until september.
Cheers corvus albus
Uploaded a new version with a tiny little fix.