-

Note: You are currently viewing documentation for Moodle 3.10. Up-to-date documentation for the latest stable version of Moodle may be available here: Web services.

Development:Web services

From MoodleDocs
Revision as of 06:47, 13 November 2007 by Martin Dougiamas (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This page is to decide on a list of core web service functions that we should support in Moodle (by XMLRPC, REST and SOAP).

Please add new functions if there's functionality you want that isn't covered (we can refactor/whittle at the end).

add user

INPUT:

   firstname
   lastname
   email 
   idnumber

OPERATION:

   Adds a new user to the user database 

OUTPUT:

   id or false 

delete user

INPUT:

   idnumber  or 
   email or 
   id 

OPERATION:

   User is marked as deleted

OUTPUT:

   true/false 

add course

INPUT:

   name
   shortname
   format (default topics)
   idnumber 

OPERATION:

   Adds a new course to the course table

OUTPUT:

   id or false


delete course

INPUT:

   name OR
   shortname  OR
   idnumber 

OPERATION:

   Deletes a course from the course table

OUTPUT:

   true or false