Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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