MDL-51629 mod_survey: New WS mod_survey_submit_answers
[moodle.git] / mod / survey / db / services.php
index 5e96528..ccc16b2 100644 (file)
@@ -53,4 +53,12 @@ $functions = array(
         'capabilities'  => 'mod/survey:participate'
     ),
 
+    'mod_survey_submit_answers' => array(
+        'classname'     => 'mod_survey_external',
+        'methodname'    => 'submit_answers',
+        'description'   => 'Submit the answers for a given survey.',
+        'type'          => 'write',
+        'capabilities'  => 'mod/survey:participate'
+    ),
+
 );