qmapi

moodle quiz api

Documentation

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.

Getting Started

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.

Why should use qmapi

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.

Contributing

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.

Changelog

All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning. 1.0.0 - 2021-02-21

License

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.

Usage

Initial Setup

To install it using git, type this command in the /local directory of your Moodle install:

git clone https://github.com/massooti/qmapi

Assign plugins to the web service token external api

eeeeeeeeeeeeebcvbcvbcvbcvvvvvvvvvvvv

List of All functions

| 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

methods descriptions

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.

Support or Contact

Having trouble with Pages? Check out our documentation or contact support and we’ll help you sort it out.