[Avg. reading time: 1 minute]
Flask Demo - 01
Run the script
uv run python api_demo/flask_01_simple_app.py
or
poetry run python api_demo/flask_01_simple_app.py
Open the browser and visit http://127.0.0.1:5001
@app, @api, and @auth are decorators specific to Flask and Flask-RESTful libraries. They are used to define routes, API endpoints, and authentication rules.