Web services API
From MoodleDocs
Overview
The Web services API allows you to expose particular functions in your module (usually external functions) as web services.
Once you have done this, your functions will be available to admins to configure as part of their Web services over a given protocol like XML-RPC, REST or SOAP.