from fastapi import FastAPI app = FastAPI() @app.get("/items/{name}") async def say_hello(name): return {"message": f"Hello {name}!"}