MDL-53703 wiki: New WS mod_wiki_get_subwiki_files
[moodle.git] / mod / wiki / db / services.php
index 396e572..d86be2b 100644 (file)
@@ -71,6 +71,15 @@ $functions = array(
         'services'      => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
     ),
 
+    'mod_wiki_get_subwiki_files' => array(
+        'classname'     => 'mod_wiki_external',
+        'methodname'    => 'get_subwiki_files',
+        'description'   => 'Returns the list of files for a specific subwiki.',
+        'type'          => 'read',
+        'capabilities'  => 'mod/wiki:viewpage',
+        'services'      => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
+    ),
+
     'mod_wiki_get_page_contents' => array(
         'classname'     => 'mod_wiki_external',
         'methodname'    => 'get_page_contents',