moodle quiz api
You can use the editor on GitHub to maintain and preview the content for your website in Markdown files. Whenever you commit to this repository, GitHub Pages will run Jekyll to rebuild the pages in your site, from the content in your Markdown files.
Create and add rich question, quiz, question categories content using REST api inside your moodle LMS for free. Some examples of what you get with QMAPI are Interactive Quizzes, questions types and question categories.
Good question! I started unexpectedly developing for Moodle. Moodle, as you may have noticed, is very academic in all its aspects even code. So you may not find the specific answer to your question quickly. And that’s why this project is worth sharing. This template is a result of reading all the documentation provided in Moodle Developer DOCs. Development of few production-ready plugins for large Moodle powered platforms. And finally, this is what I am using all the time to kick start any new plugin.
Feel free to contribute by:
Testing and creating issues. But remember to check if the issues is already reported before creating a new one. Perhaps you can contribute to an already existing issue?
Solving issues and submitting code through Pull Requests to the 'master' branch or on a separate feature branch.
All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning. 1.0.0 - 2021-02-21
Copyright (c) Massooti Z. https://github.com/massooti
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
To install it using git, type this command in the /local directory of your Moodle install:
git clone https://github.com/massooti/qmapi
eeeeeeeeeeeeebcvbcvbcvbcvvvvvvvvvvvv
| function | Description |
qmapi_quiz_delete_quiz_section |
delete Quiz/Exam for a given course |
qmapi_quiz_edit_quiz_section |
edit Quiz/Exam for given course |
qmapi_quiz_create_quiz_section |
create Quiz/Exam for a given course |
qmapi_question_create_question |
create question |
qmapi_question_edit_questoion |
edit question for given id |
qmapi_question_delete_question |
delete question for given id |
qmapi_question_get_question |
get question for given id |
qmapi_category_question_read |
show question category in question bank |
qmapi_category_question_delete |
delete question category in question bank |
qmapi_category_question_edit |
edit question category in question bank |
Syntax highlighted code block
# Header 1
## Header 2
### Header 3
- Bulleted
- List
1. Numbered
2. List
**Bold** and _Italic_ and `Code` text
[Link](url) and ![Image](src)
For more details see GitHub Flavored Markdown.
Having trouble with Pages? Check out our documentation or contact support and we’ll help you sort it out.