FastAPI - Echo GET - Query Parameters
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
async def root(text):
return {"message": f"You wrote: '{text}'"}
http://localhost:8000/?text=Foo%20Bar