fedora-infra / tahrir

Pyramid app for issuing your own Open Badges
https://badges.fedoraproject.org/
Other
76 stars 54 forks source link

REST API to award badge #536

Closed rowright8 closed 1 month ago

rowright8 commented 3 months ago

I would like to request a feature to award a badge via REST API.

I would like to have the ability to award a badge by a JSON request to an endpoint like /api/award where I can POST the FAS ID and then the Badge ID and an authentication token.

The token can be per badge - but this way a remote service can award badges to Tahrir that would not be message-bus based actions. This could be for other things like on a webhook event of an application that is not message bus integrated for whatever reason.

At minimum - the ability to have service account or an authenticated way without using FAS authentication to have services create badges via REST would be amazing.

My use case at hte moment is to Award Badges via the Discussion Database and querying and awarding badges as activities are completed - but we would not put things like Page Views into the Message Bus. To still award the badge, we would need a way to trigger this - either by a communishift application that just syncs this over periodically or some other activity.

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 60 days with no activity.

github-actions[bot] commented 1 month ago

This issue was closed because it has been inactive for 7 days since being marked as stale.