RESTful protocol

Premium Certified Partner
Maintained by Catalyst IT
A REStful webservice plugin for Moodle LMS This plugin allows Moodle's webservice interface to operate in a more RESTFul way. Instead of each webservice call having a URL query parameter define what webservice function to use, webservice functions are made available by discrete URLs.
Price option: Free

Supports Moodle 3.1-4.5 See all versions
Latest release: 1 year ago
Installations: 1239
Downloads (last 90 days): 187

Frankenstyle name: webservice_restful
Web service protocols

Comments

Comments are no longer open for new posts. Existing comments remain available to read.

Hi Raj,
Try removing the braces {} from around the auth token, as outlined in the documentation. If you have any other problems please raise an issue here: https://github.com/catalyst/moodle-webservice_restful/issues
I have followed all steps to enable web services and also generate a valid token but when I tried to run API call it gave me following error
{"exception":"moodle_exception","errorcode":"noauthheader","message":"No Authorization header found in request sent to Moodle"}
but I am sending a valid token in the header with other required information like below
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H 'Authorization: {4838e6771cdbfd1eefbf37b3839587d9}' \
-d'{"options": {"ids":[2]}}' \
"mydomain.com/webservice/restful/server.php/core_course_get_courses"
please help
Approval issue created: CONTRIB-7312