History | Log In     View a printable version of the current page.  
We are currently focused especially on Moodle 2.0, Moodle 1.9.x bugs and Moodle 1.9.x testing.    Confused? Lost? Please read this introduction to the Tracker.
Issue Details (XML | Word | Printable)

Key: MDL-16806
Type: Sub-task Sub-task
Status: Reopened Reopened
Priority: Major Major
Assignee: Tusefomal
Reporter: Ludo ( Marc Alier)
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Moodle
MDL-12886

Create test-run REST Webservices to wrap the basic functionalities coded.

Created: 06/Oct/08 11:06 PM   Updated: 06/Nov/08 07:29 PM
Component/s: Administration
Affects Version/s: 1.9.2, 2.0
Fix Version/s: None

Participants: Ludo ( Marc Alier) and Tusefomal
Security Level: None


 Description  « Hide
This REST Webservices will serve as testing purposes, before the full 3 layered architecture is on place. So no security is regarded, nor authentication etc..

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Tusefomal - 22/Oct/08 08:06 PM
There's a test client in the CVS:

http://cvs.moodle.org/contrib/patches/dfws/client/clientrest/

It work just copying directory into public apache dir, edit the "config_rest.php" and set $CFG->serveurl to you moodle webservice rest connector url.

For example, if you moodle url is:

http://localhost/moodle

the $CFG->serverurl must be:

$CFG->serverurl = 'http://localhost/moodle/webservice/inout/rest/inout.php';

That's all!

For daredevils only!

We will keep this example updated to test every API functionality.

Tusefomal - 22/Oct/08 08:16 PM
Rest connector is done for the implemented API functions. Source can be found here:

http://cvs.moodle.org/contrib/patches/dfws/webservice/inout/rest/

The 3 main files are:

- inout.php: general acces to functions. Uses implicit params via "get_file_argument" moodle function to select which API function must be called.
- lib.php: support library
- wrapper (dir): contains API wrappers libraries

Inside wrappers, every lib contains a certain number of wrapper functions.

Tusefomal - 24/Oct/08 01:49 AM
Rest connector works properly with basic API functions wrappers. From now we only have to code new wrappers and incorporate authentication methods.