Why aren't all the webservices supported in MM?

Why aren't all the webservices supported in MM?

Farzin Khalilzadeh -
回帖数:1

Hi all,

In the list of webservice APIs functions provided, the "services" column has no description as what exactly it is whether it means mobile app support or anything else. Considering it is mobile support then a lot of these webservices aren't supported by mobile app.

Is it because some of these webservices are simply not useful in a mobile scenario therefore not implemented or is there a design or implementation issue regarding availability for mobile. Or maybe just they had low priority and there was not enough dev time for them?

What I'm trying to understand here is that if anyone wanted to use any of these (supposedly?) unsupported webservices for mobile app would there be a way to make such webservice available to app? How would a webservice be suitable to be used in a mobile app or not?

回复Farzin Khalilzadeh

Re: Why aren't all the webservices supported in MM?

Dani Palou -
Core developers的头像 Moodle HQ的头像 Peer reviewers的头像 Plugin developers的头像

Hi Farzin,

we only include the WebServices that we need in the Mobile app. This is because some WebServices don't make sense for the Mobile app, and for security reasons (the less available WebServices, the less actions an attacker can do if he gets your token).

If you want to add more WebServices to the MM service, you can do it in your site by adding this in the WebService:

https://github.com/moodle/moodle/blob/master/mod/lesson/db/services.php#L45

Also, if you have a plugin that includes new WebServices they can be added to the MM service too.

Cheers,

Dani