Issue Details (XML | Word | Printable)

Key: MDL-16806
Type: Bug Bug
Status: Closed Closed
Resolution: Not a bug
Priority: Major Major
Assignee: Tusefomal
Reporter: Ludo ( Marc Alier)
Votes: 0
Watchers: 2
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

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

Created: 06/Oct/08 11:06 PM   Updated: 03/Feb/09 04:26 PM
Return to search
Component/s: Administration
Affects Version/s: 1.9.2, 2.0
Fix Version/s: None

Issue Links:
Cloners
 

Participants: Ludo ( Marc Alier), Martin Dougiamas and Tusefomal
Security Level: None
Resolved date: 24/Oct/08
Affected Branches: MOODLE_19_STABLE, MOODLE_20_STABLE


 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
David Castro made changes - 13/Oct/08 08:04 PM
Field Original Value New Value
Status Open [ 1 ] In Progress [ 3 ]
Tusefomal added a comment - 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 added a comment - 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 made changes - 24/Oct/08 01:43 AM
Assignee David Castro [ dcastro ] Tusefomal [ tusefomal ]
Tusefomal added a comment - 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.

Tusefomal made changes - 24/Oct/08 01:49 AM
Resolution Fixed [ 1 ]
Status In Progress [ 3 ] Resolved [ 5 ]
Ludo ( Marc Alier) made changes - 06/Nov/08 07:29 PM
Resolution Fixed [ 1 ]
Status Resolved [ 5 ] Reopened [ 4 ]
Martin Dougiamas added a comment - 03/Feb/09 04:25 PM
Closing this one as this doesn't quite make sense with the new structure.

Martin Dougiamas made changes - 03/Feb/09 04:25 PM
Status Reopened [ 4 ] Closed [ 6 ]
Resolution Not a bug [ 7 ]
Martin Dougiamas made changes - 03/Feb/09 04:25 PM
Issue Type Sub-task [ 5 ] Bug [ 1 ]
Parent MDL-12886 [ 24224 ]
Martin Dougiamas made changes - 03/Feb/09 04:26 PM
Link This issue is a clone of MDL-16805 [ MDL-16805 ]