by Rahul Chakraborty.
Yes we already checked that but what about the request and response parameters.
I am not able to get the exact result from the api.
My case:
I am trying to retrieve all quizzes under a course for that I am using
http://localhost:8099/webservice/rest/server.php?
wstoken=ae27a4540ceaebbb91ae19ae27108256
&wsfunction=mod_quiz_get_course_quizzes
&courseid=9
&moodlewsrestformat=json
I am getting this error
{
"exception": "dml_missing_record_exception",
"errorcode": "invalidrecord",
"message": "Can not find data record in database table external_functions."
}
But I have added quizzes inside that course.
The token I have received from the below mentioned api
http://localhost:8099/login/token.php?username=admin&password=passoword&service=moodle_mobile_app
Am I doing something wrong ?
I want to retrieve all quizzes inside a course and all question/answers inside a quiz and students enrolled in the course.
Finally the students submission responses back to Moodle using the web-services.
Thanks for your support in advance.