Debian Codegraph @

docs_src/configure_swagger_ui/tutorial001_py310.py

raw
1 from fastapi import FastAPI
2
3 app = FastAPI(swagger_ui_parameters={"syntaxHighlight": False})
4
5
6 @app.get("/users/{username}")
7 async def read_user(username: str):
8 return {"message": f"Hello {username}"}