☰
Debian Codegraph
@
0.141.1-2
0.141.1-1
0.135.3-1
/
/
docs_src
/
configure_swagger_ui
/
tutorial002_py310.py
☽
☼
docs_src/configure_swagger_ui/tutorial002_py310.py
code
plain
raw
Expat
(c) 2018 Sebastián RamÃrez
debian/copyright
1
from fastapi import FastAPI
2
3
app = FastAPI(swagger_ui_parameters={"syntaxHighlight": {"theme": "obsidian"}})
4
5
6
@app.get("/users/{username}")
7
async def read_user(username: str):
8
return {"message": f"Hello {username}"}