API for question bank data

API for question bank data

suraj shukl -
Vastausten määrä: 5

How to fetch Question bank data through API ?
we are not able to get any API from Moodle to fetch question bank database.

Arviointien keskiarvo: -
Vastaus suraj shukl

Re: API for question bank data

suraj shukl -
Hi All,

we are waiting your support for this.
Please help for fetch Question bank data through API.
Vastaus suraj shukl

Re: API for question bank data

Marcus Green -
Kuva: Core developers Kuva: Particularly helpful Moodlers Kuva: Plugin developers Kuva: Testers

What have you found so far?

Vastaus Marcus Green

Re: API for question bank data

suraj shukl -
Hi Marcus Green,

Thank you for your response.

I didn't find much details on this. I have checked the url(https://docs.moodle.org) for Question bank API and Question engine API but there is no text in both pages. I have review this URL https://docs.moodle.org/dev/Question_bank_API and https://docs.moodle.org/dev/Question_engine_API
but not got any information for question bank API.
I am new for Moodle. I need to make a different front-end I need good API interface for Question Bank/Question Engine.
Vastaus suraj shukl

Re: API for question bank data

Marcus Green -
Kuva: Core developers Kuva: Particularly helpful Moodlers Kuva: Plugin developers Kuva: Testers
The Mobile app makes extensive use of web services for end user calls to questions and you can find the code here
https://github.com/moodlehq/moodleapp/
Another source is to see how various plugins use the question bank, e.g. studentquiz and you can find automated documentation for the whole Moodle api here
https://wimski.org/api/4.1/modules.html

A lot of Moodle development comes down to reading other peoples code rather than reading API docs.
Vastaus Marcus Green

Re: API for question bank data

suraj shukl -
Hi Marcus Green,
I am using
Moodle 4.1.2
MOODLE_4012
I am creating the web application that's why I need API from Moodle and I have found this web services wsfunction=core_course_get_courses to get all courses from moodle that is fine and it worked.
so I am also looking is there any web services to get all the question from moodle question bank. If yes then help for this.
I tried but could not get success. I want a simple documentation for this from where I can see the endpoint for the question bank and simply call them to get those question from question bank.