A quick project i created while following Jose Salvatierra's excellent flask tutorial on Udemy. https://www.udemy.com/course/rest-api-flask-and-python/learn/lecture/6038434?start=0#overview
✨ Now updated with Flask 2.0 and Flask-Extended!! ✨
- update
SQLALCHEMY_DATABASE_URI
in app.py with db config name - SQL alchemy will create the database objects on app creation.
curl -d "username=user1&password=abcd" -X POST http://localhost:5000/register
curl -d "username=user1&password=abcd" -X POST http://localhost:5000/user
curl -XGET -d "store_id=1&price=2.309" \ -H "Authorization: Bearer paste_token_here http://localhost:5000/item/xyz