✨ Enable configuring Swagger UI parameters (#2568)

Co-authored-by: Artem Ivanov <artem@worklife.io>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
authored and GitHub committed 2022-01-16 20:26:24 +01:00
1 parent 9af8cc69d5
commit a85aa125d2
12 files changed
+251 -6

No files matched your search

@@ -0,0 +1,8 @@
from fastapi import FastAPI
app = FastAPI(swagger_ui_parameters={"deepLinking": False})
@app.get("/users/{username}")
async def read_user(username: str):
return {"message": f"Hello {username}"}