from fastapi import FastAPI app = FastAPI() @app.get("/") async def root(): return {"ciao": "mondo"} @app.get("/jars/{id}") async def get_jars(id): return {"message": f"jars: {id}"}