This repository has been archived by the owner on Jan 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,13 @@ | ||
# Moodle Course API | ||
|
||
The Moodle-Course-API provides a read-only interface to easily | ||
query whether a user has completed a course, or a quiz. This can | ||
be used in other applications (such as the Training-Center) to | ||
determine a member's progress within a specific course. | ||
|
||
## API Interface | ||
|
||
| Method | Path | Parameters | Response | Description | | ||
|:------:|:-------------------:|:---------------------------------------|:-------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------| | ||
| `GET` | `/course_completed` | `{course_id: number, user_id: number}` | `{course_name: string, completed: bool, completed_at: Date}` | Returns the provided response for the provided parameters. Returns a `400` HTTP Error in the event of missing parameters. | | ||
| `GET` | `/quiz_completed` | `{module_id: number, user_id: number}` | Result of the `SELECT` statement | Returns the result of the `SELECT` statement for the provided parameters. Returns a `400` HTTP Error in the event of missing parameters. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,8 +17,10 @@ | |
"author": "VATSIM Germany <[email protected]>", | ||
"license": "GPL3", | ||
"dependencies": { | ||
"@types/body-parser": "^1.19.2", | ||
"@types/express": "^4.17.14", | ||
"@types/sequelize": "^4.28.14", | ||
"body-parser": "^1.20.2", | ||
"dotenv": "^16.0.3", | ||
"express": "^4.18.2", | ||
"mysql2": "^2.3.3", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters