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

Web services FAQ: Difference between revisions

From MoodleDocs
Line 6: Line 6:


== The web service API is too small, how to add some new functions? ==
== The web service API is too small, how to add some new functions? ==
The easiest way and recommended way to add web service is to write a new Moodle local plugin and implement the web service functions there. The Moodle administrator will just need to add the plugin in Moodle (copy the files in /local/), the web service functions will be automatically added. Please read /local/readme.txt for more information about plugin development. You can also look at the [http://moodle.org/mod/data/view.php?d=13&rid=4282 Moodle Hub server plugin] as example.
The easiest and recommended way to add a web service is to write a new Moodle local plugin and to implement the web service functions there. The Moodle administrator will just need to add the plugin in Moodle (copy the files in /local/), the web service functions will be automatically added. Please read /local/readme.txt for more information about plugin development. You can also look at the [http://moodle.org/mod/data/view.php?d=13&rid=4282 Moodle Hub server plugin] as example.


== Is there a roadmap for the web service API? ==
== Is there a roadmap for the web service API? ==

Revision as of 02:47, 24 November 2010

This document lists some popular questions from the Web Services forum.

What is the difference between web services and Mnet

  • Mnet is used to authenticate some users from a Moodle A site into a Moodle B site.
  • Web services are functions that can be called by external application.

The web service API is too small, how to add some new functions?

The easiest and recommended way to add a web service is to write a new Moodle local plugin and to implement the web service functions there. The Moodle administrator will just need to add the plugin in Moodle (copy the files in /local/), the web service functions will be automatically added. Please read /local/readme.txt for more information about plugin development. You can also look at the Moodle Hub server plugin as example.

Is there a roadmap for the web service API?

Currently the web service API task is closed. If you required some new web service functions you can add a issue on the tracker, the most voted issues are generally resolved.

Administrator: how can I set up web service?

  • It exists many document that have been written in the web service category.
  • In Moodle > Site administration > plugins > Web services > Overview, two use cases are described.
  • Finally you can go ask question on the Web Services forum