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:
1. Create a specific user: Each application should have a separate user account. That way you can control the capabilities each external system is going to use.
2. Check user capability: Depending on the protocol selected above, 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 in the System context.
3. 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. Selecting a service takes place...