REST protocol (with JSON/XML payload support)

Maintained by Owen Barritt
REST webservice protocol based on the standard core REST webservice, but with added support for JSON & XML payloads and supports using HTTP ACCEPTS headers for determining response format.
Price option: Free

Supports Moodle 2.9 See all versions
Latest release: 10 years ago
Installations: 153
Downloads (last 90 days): 17

Frankenstyle name: webservice_restjson
Web service protocols

Comments

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

Thanks for sharing this post. It offers valuable insights for AI agent development companies and AI industry experts.
REST protocol with JSON/XML payload support remains a solid foundation for building flexible and scalable applications. Its simplicity, statelessness, and compatibility across platforms make it a preferred choice for modern APIs. The ability to handle both JSON and XML ensures better interoperability depending on system requirements. It’s also interesting to see how this architecture can integrate with emerging technologies—especially in blockchain app development, where secure and efficient data exchange plays a critical role.
This REST protocol with JSON/XML payload support is a game-changer for Moodle web services! I love how it allows flexibility in sending and receiving data using standard HTTP headers while remaining backward compatible with existing REST endpoints. The ability to switch between JSON and XML formats on the fly makes integration with different systems so much easier. For developers and organizations looking to expand functionality, combining this with professional API Integration Services can streamline workflows, automate data exchanges, and enhance interoperability between platforms. A solid approach for anyone aiming to make Moodle more versatile and connected!
DotStark provides Microsoft dynamics 365 consulting services. Hire Microsoft Dynamics 365 developers who have expertise in implementation, integration and customization.
This is a great enhancemen adding support for both JSON and XML with HTTP Accept headers brings much-needed flexibility to Moodle’s REST webservices! Whether you're integrating with legacy systems or modern APIs, this plugin bridges the gap beautifully. keeping it backward compatible is a smart move.
Great plugin and very helpful for any Kentico developers
Thanks for sharing this post. It offers valuable information to the Web Developers
Best plugin
Hi. Can this be used by a device to send/receive JSON data (files) and store it in moodle for later access by the device or user?
Hey Owen,
I've used your plugin and found it is very well performing and any web developer can use it very easily
Thanks for this useful plugin!!! It helps me a lot!!!
Excellent plugin and very helpful for any magento developer.
This can be so helpful to web developer
Hello Owen,
I try to use Moodle webservice within google apps, so json could be great to use, but I cant get that plugin to work.
Generally Moodle is not easy platform for anybody. So,
* my Moodle version is 3.1
* permission webservice/rest:use -> allow (standard REST works)
* token is valid (standard REST works)
* plugin webservice_restjson is enabled (0.4 for Moodle 2.9+ 2016021900)
* protocol REST protocol (with JSON/XML input support) -> enabled
request:
curl -H "Content-Type: application/json" -X GET http://elearning.casadelalengua.pl/webservice/restjson/server.php?wsfunction=core_course_get_courses&wstoken=33ff697d305xyz
I've got
{"exception":"webservice_access_exception","errorcode":"accessexception","message":"Wyj\u0105tek w kontroli dost\u0119pu"}
so I don't know what still I have wrong.
Can you help me with this problem?
( For those who don't know how to send the request via Command Line, like me some minutes ago. )
Because the request format is ambiguous. I couldn't understand how to send the "request Object". so I tried this and it worked :
curl -k -X POST -d "id=63&filename=windiff.zip" "https://localhost/moodle/webservice/rest/server.php?wsfunction=local_wstemplate_hello_world&wstoken=f5b0854a870e05f960cff39fc2a40665"
hope it helps