I have configured moodle on local host and I am trying to generate the token for authentication.
I have already followed these steps :
== Configuring Moodle for using the application ==
Administration -> Plugins -> Web Services -> External Services -> Enable mobile web service
Administration -> Plugins -> Web Services -> Protocols -> Enable REST
Administration -> Users -> Permission -> Define roles -> Edit the Authenticated user role -> Allow webservice/rest:use
Administration -> Security -> Site policies -> Change the server upload limit. It can't be Server limit. There is a bug in Moodle Web Services
URL :- http://localhost/moodle/login/token.php?username=admin&password=Turbo@000&service=local_mobile
Response :-
{
"error": "Web service is not available (it doesn't exist or might be disabled)",
"stacktrace": null,
"debuginfo": null,
"reproductionlink": null
}