Enabling web services for external systems
An external system is any application that accesses Moodle and its data in one way or the other. There are eight steps that have to be performed to complete the setup, which follow the workflow described on the web services overview screen:
Create a specific user
Each application should have a separate user account. This way, you can control the capabilities that each external system is going to use. Our user is aptly called web service.
Check user capability
Depending on the protocol you've selected, you have to allow the respective permissions for the user. You achieve this by creating a new role with any of the four capabilities, webservice/amf:use
, webservice/rest:use
, webservice/soap:use
, or webservice/xmlrpc:use
. This role has to be assigned to the web services user(s) in the System context.
Select a service
A service is like a defined interface that an external application can connect to. It is a set of functions, which are covered next....