Une opération de chemin associe une méthode HTTP et un chemin à une fonction Python, avec des décorateurs comme @app.get ou @app.post. La fonction peut être synchrone ou async, et son retour est converti en JSON.
Exemple
@app.get('/hello')
def hello():
return {'message': 'bonjour'}