Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 Feature request: API for certificate verification #643

Open
xartuu opened this issue Oct 2, 2024 · 1 comment
Open

🚀 Feature request: API for certificate verification #643

xartuu opened this issue Oct 2, 2024 · 1 comment

Comments

@xartuu
Copy link

xartuu commented Oct 2, 2024

Hello 👋,

we use the Moodle tool in the organization to conduct training. In each unit we are required to verify that a particular employee has completed a particular course. We would like to create automation for this, but the plugin in the current version prevents us from doing so.

Could you please create an simple API similar to the /mod/customcert/verify_certificate.php page?

After querying this page with the POST method with the content code: xyz and with the header Content-Type: application/json it could return the following data:

{
    "verification": "success/failed",
    "error (in case failed)": "Message...",
    "user": {
        "name": "",
        "email": "",
        "id": "",
        "url": ""
    },
    "course": {
        "name": "",
        "id": "",
        "url": ""
    },
    "certificate": {
        "name": "",
        "code": "",
        "id": ""
    }
}
@xartuu xartuu changed the title Feature request: API for certificate verification 🚀 Feature request: API for certificate verification Oct 2, 2024
@mdjnelson
Copy link
Owner

The API endpoint would have to be done similar to the ones in https://github.com/mdjnelson/moodle-mod_customcert/blob/MOODLE_404_STABLE/classes/external.php. See https://moodledev.io/docs/4.5/apis/subsystems/external/writing-a-service. I work full-time and this is a hobby project so I dont know when I will have time to work on your request. Perhaps you can reach out to a Moodle partner. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants