Mรณdulo 06 ยท Flask Deeper โ Lecciรณn 1 de 4 ยท ~9 min
Query params & request data
Your Flask app already exists
Last module you built playground/flask-pawwalk/app.py: a Flask(__name__) app with GET /walkers (a hardcoded WALKERS list) and GET /walkers/<walker_id> (lookup by id, abort(404) if missing). That app is still sitting there. This module extends it โ you never start over.
First extension: query parameters. In Part I, URLSession built URLs like /walkers?min_rating=4.8 โ the part after ? is the query string. Flask hands it to you through request.args, a dict-like object of everything after the ?.