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

Flask API: Fetch User Information route #230

Open
@ExoMonk

Description

@ExoMonk
  • 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions