mirror of
https://github.com/rjNemo/fastapi
synced 2026-06-06 10:36:39 +00:00
Co-authored-by: Artem Ivanov <artem@worklife.io> Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
8 lines
205 B
Python
8 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}"}
|