Extension of webservices

Extension of webservices

by Thorsten Gattinger -
Number of replies: 2

In the context of connecting a campus management system of one of our departments to our Moodle instance, we had to solve some problems that could not be covered with the existing web service functions. Course categories and courses should be created externally in Moodle, roles should be assigned on course categories and course level and (possibly on the platform not yet existing) users should be enrolled. The CMS should not get the permissions for free user creation or similar.

We added features like:

  • Synchronization of users. List of user names as input, user IDs as return including creation of accounts on demand if needed. User IDs needed for further requests like course enrollments.
  • Query existing role assignments for course categories.
  • Query existing role IDs

We could build on this and go through scenarios in a structured way and look for and implement further missing WS functionalities.

In reply to Thorsten Gattinger

Re: Extension of webservices

by Luca Bösch -
Make sure not to forget to take a look at those fine web services and functions crafted here: https://github.com/RockstaYT/Moodle_Rsync, Thorsten.
That was a student's project in the BSc in Computer Science here at BFH Bern University of Applied Sciences.
In reply to Luca Bösch

Re: Extension of webservices

by Thorsten Gattinger -
Thanks for the link, Luca! We will take it into account if we work on content level. So far our focus has been on creating courses including enrollments and role assignments, but we're open to other features from our potential partners there.