Skip to content

Commit

Permalink
Doc moodle (#912) (#913)
Browse files Browse the repository at this point in the history
* Doc moodle (#912)
  • Loading branch information
Myddleware authored Jan 5, 2023
1 parent 213acb4 commit 9c11f2f
Show file tree
Hide file tree
Showing 31 changed files with 146 additions and 2 deletions.
3 changes: 1 addition & 2 deletions docs/_navbar.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
* [Basic Usage](basic_usage.md)
* [Advanced Usage](advanced_usage.md)
* [Admin Tasks](admin_tasks.md)
* [Email notifications (SMTP)](smtp.md)
* [Job scheduler & cron tasks](cron_jobs.md)
* [Moodle](moodle.md)
* [Myddleware API](api.md)
* [Developer's guide](dev_guide.md)
* **Demo**
Expand Down
1 change: 1 addition & 0 deletions docs/_sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* [Admin Tasks](admin_tasks.md)
* [Email notifications (SMTP)](smtp.md)
* [Job scheduler & cron tasks](cron_jobs.md)
* [Moodle](moodle.md)
* [Myddleware API](api.md)
* [Developer's Guide](dev_guide.md)
* [Connectors](connectors_credentials.md)
Expand Down
2 changes: 2 additions & 0 deletions docs/file/myddleware_moodle_role_1.4.xml

Large diffs are not rendered by default.

Binary file added docs/images/moodle/add_role.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/moodle/add_role_xml.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/moodle/assign_role.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/moodle/choose_file.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/moodle/continue_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/moodle/continue_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/moodle/copy_token.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/moodle/create_specific_use.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/moodle/create_this_role.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/moodle/create_token.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/moodle/create_user.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/moodle/create_user_role.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/moodle/enable_protocols.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/moodle/enable_web_service.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/moodle/external_service.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/moodle/finally.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/moodle/import_myddleware.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/moodle/install_plugins.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/moodle/manage_protocol.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/moodle/manage_token.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/moodle/moodle_token.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/moodle/myddleware.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/moodle/myddleware_system.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/moodle/overview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/moodle/select_myddleware.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/moodle/upgrade_database_moodle.png
Binary file added docs/images/moodle/upgrade_new_version.png
142 changes: 142 additions & 0 deletions docs/moodle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
# Module list

Here is the list of available modules in source (reading) and target (writing) :

| Module | Source | Target |
|--------------------------------|--------|--------|
| Courses | Yes | Yes |
| Users | Yes | Yes |
| Group members | No | Yes |
| Groups | No | Yes |
| Enrollment | Yes | Yes |
| Unenrollment | No | Yes |
| Notes | No | Yes |
| Courses completion | Yes | No |
| Activities completion | Yes | No |
| Courses last access | Yes | No |
| Competencies module completion | Yes | No |
| User competencies | Yes | No |
| User grades | Yes | No |



# Install the plugin Myddleware in Moodle.

Go to the administration of the site and then ``Plugins`` and ``Install plugins``

![Install plugins](images/moodle/install_plugins.PNG)

Then you can choose to install it from Moodle plugins directory if you Moodle instance is registered or you can install it from the archive that you can [download it here](https://moodle.org/plugins/local_myddleware)

![Choose file](images/moodle/choose_file.PNG)

> This plugin contains several custom webservice functions required by Myddleware.
Then click on ``Continue`` :

![Continue](images/moodle/continue_1.PNG)

Click again on ``Continue`` :

![Continue](images/moodle/continue_2.PNG)

Then click on ``Upgrade Moodle database now`` :

![Upgrade database moodle](images/moodle/upgrade_database_moodle.PNG)

Then click on ``Continue`` :

![Upgrade new version](images/moodle/upgrade_new_version.PNG)

# Enable web services

Go to ``Site administration`` and then ``Server Web services`` and ``Overview``

![Overview](images/moodle/overview.PNG)

In the overview page, click on ``Enable web services`` and check the box :

![Enable web services](images/moodle/enable_web_service.PNG)

In the overview page, click on ``Enable protocols`` and enable the REST one :

![Enable protocols](images/moodle/enable_protocols.PNG)

In the overview, you should have ``Yes`` and ``REST``, then click on ``Create a specific user`` to create a user for Myddleware :

![Create a specific use](images/moodle/create_specific_use.PNG)

# Create user and role

Create a new user, click on ``Site administration`` and then ``Users`` and ``Add new user``

![Create user](images/moodle/create_user.PNG)

> Create the user that the web service will use, set an username, first name, surname, email address and set web service authentication. No need to set a password :
![Create user and role](images/moodle/create_user_role.PNG)

Then import Myddleware’ s role in Go to ``Site administration`` -> ``Users`` -> ``Permissions`` -> ``Define roles`` :

![import Myddleware](images/moodle/import_myddleware.PNG)

Then click on ``Add a new role`` :

![Add role](images/moodle/add_role.PNG)

Download Myddleware’s role <a href="file/myddleware_moodle_role_1.4.xml" download>here</a>.

Add the xml file here and click on ``Continue``:

![Add role](images/moodle/add_role_xml.PNG)

Then go to the bottom of the page and click on ``Create this role`` :

![Create this role](images/moodle/create_this_role.PNG)

Assign this role to the user you have created. Go to ``Site administration`` -> ``Users`` -> ``Permissions`` -> ``Assign system roles``

![Assign role](images/moodle/assign_role.PNG)

> Click on ``Myddleware`` :
![Myddleware](images/moodle/myddleware.PNG)

Then select Myddleware ‘s user and add it to the left column :

![Myddleware system](images/moodle/myddleware_system.PNG)

# Authorised users

Go to Site administration -> Server -> Web services -> External services

![Moodle token](images/moodle/moodle_token.PNG)

Click on ``Authorised users`` :

![External service](images/moodle/external_service.PNG)

Then select Myddleware‘s user and add it to the left column :

![Select myddleware](images/moodle/select_myddleware.PNG)


> You shouldn’t have any missing capacity at the bottom of the page.
Go to Site administration -> Server -> Web services -> Manage tokens

![Manage token](images/moodle/manage_token.PNG)

Select Myddleware ‘s user and Myddleware service, then click on Save Changes :

![Create token](images/moodle/create_token.PNG)

Then copy your token :

![Copy token](images/moodle/copy_token.PNG)

# Generate Moodle’s token

Finally, you can create your Moodle Myddleware connector by filling in your Moodle URL and your token :

![Finally](images/moodle/finally.PNG)

0 comments on commit 9c11f2f

Please sign in to comment.