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

Flask API: Fetch User Information route #230

Open
ExoMonk opened this issue Aug 8, 2022 · 0 comments
Open

Flask API: Fetch User Information route #230

ExoMonk opened this issue Aug 8, 2022 · 0 comments
Labels
Context: coupled interact with some parts of the codebase Difficulty: easy anybody can understand it Duration: under a day wil take up to one day State: open ready for contribution Techno: python python Type: feature a new feature to implement

Comments

@ExoMonk
Copy link
Collaborator

ExoMonk commented Aug 8, 2022

  • From feat/backend branch, create your own

Create/update an endpoint under the starklings-backend/starklings-backend/route.py file to fetch user information given a wallet address, and retrieving from the MySQL Database (starklings_user & validated_exercises).

The route has a boolean logic that checks wether the user is already register : if so, fetch its data, else return an 400 error :

/fetchUserInfo
:param wallet_address

return:
{
	"result": [{
	  "wallet_address": wallet_address,
	  "user_id": user_id,
	  "userProgression": {
	    "syntax": {
	      "syntax0": True,
	       "syntax1": False
	     },
			...
	  }
	}]
}

Pull Request on feat/backend

@ExoMonk ExoMonk added Type: feature a new feature to implement Duration: under a day wil take up to one day State: open ready for contribution Difficulty: easy anybody can understand it Context: coupled interact with some parts of the codebase Techno: python python labels Aug 8, 2022
@ExoMonk ExoMonk changed the title Fetch User Information route Flask API: Fetch User Information route Aug 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Context: coupled interact with some parts of the codebase Difficulty: easy anybody can understand it Duration: under a day wil take up to one day State: open ready for contribution Techno: python python Type: feature a new feature to implement
Projects
None yet
Development

No branches or pull requests

1 participant