9 lines
205 B
Python
9 lines
205 B
Python
|
from fastapi import FastAPI
|
||
|
|
||
|
app = FastAPI(swagger_ui_parameters={"syntaxHighlight": False})
|
||
|
|
||
|
|
||
|
@app.get("/users/{username}")
|
||
|
async def read_user(username: str):
|
||
|
return {"message": f"Hello {username}"}
|