Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

feat: add dummy success registration for loged users #209

Closed
wants to merge 2 commits into from

Conversation

tdelabro
Copy link
Contributor

@tdelabro tdelabro commented Jun 20, 2022

Waiting for the actual API implementation and deployment to replace the placeholders

@tdelabro tdelabro linked an issue Jun 20, 2022 that may be closed by this pull request
Copy link
Contributor

@Bernardstanislas Bernardstanislas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, this would work! I'm just wondering about the certification mechanism, do we want to try to mint a certificate for each exercise? Or do we only mint at the end of a track? Is it the backend which makes this decision and the front-end always calls on exercise completion? Maybe you can discuss this together, my personal opinion would be to make the front-end call at the end of a track and the backend mints.


def register_exercise_success(exercise_path: str, access_token: str):
route = "/route_to_post_at"
response = requests.post(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we can use the access token as an authentication method, in a header Authorization: Bearer {access_token}

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

Successfully merging this pull request may close these issues.

Call API from CLI
2 participants