diff options
author | Valentin Popov <info@valentineus.link> | 2018-10-29 00:39:05 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2018-10-29 00:39:05 +0300 |
commit | 00309285ba45c8d36863f2ed5ba107164e6aa6fd (patch) | |
tree | 5c0f372a19d66d8f274288fd593d970a6cb3fc27 /db/services.php | |
parent | ad5fb98070fb284e2f67037221d914ba2e470f1a (diff) | |
download | local_webhooks-00309285ba45c8d36863f2ed5ba107164e6aa6fd.tar.xz local_webhooks-00309285ba45c8d36863f2ed5ba107164e6aa6fd.zip |
Connecting external reading services
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'db/services.php')
-rw-r--r-- | db/services.php | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/db/services.php b/db/services.php index f74a310..1a2d41f 100644 --- a/db/services.php +++ b/db/services.php @@ -24,4 +24,28 @@ defined('MOODLE_INTERNAL') || die(); -$functions = array();
\ No newline at end of file +$functions = array( + 'local_webhooks_get_service' => array( + 'classname' => 'local_webhooks_external', + 'classpath' => 'local/webhooks/externallib.php', + 'description' => 'Get information about the service.', + 'methodname' => 'get_service', + 'type' => 'read', + ), + + 'local_webhooks_get_services' => array( + 'classname' => 'local_webhooks_external', + 'classpath' => 'local/webhooks/externallib.php', + 'description' => 'Get a list of services.', + 'methodname' => 'get_services', + 'type' => 'read', + ), + + 'local_webhooks_get_services_by_event' => array( + 'classname' => 'local_webhooks_external', + 'classpath' => 'local/webhooks/externallib.php', + 'description' => 'Get the list of services subscribed to the event.', + 'methodname' => 'get_services_by_event', + 'type' => 'read', + ), +);
\ No newline at end of file |