From c43827d6bdb4ff3ab631ffa82e67ce216d34dd56 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 24 Aug 2022 19:22:36 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20[pre-commit.ci]=20Auto=20format?= =?UTF-8?q?=20from=20pre-commit.com=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs_src/extending_openapi/tutorial002.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs_src/extending_openapi/tutorial002.py b/docs_src/extending_openapi/tutorial002.py index f7e132636..cb0fa27f5 100644 --- a/docs_src/extending_openapi/tutorial002.py +++ b/docs_src/extending_openapi/tutorial002.py @@ -1,8 +1,8 @@ from fastapi import FastAPI from fastapi.openapi.docs import ( get_redoc_html, - get_swagger_ui_html, get_stoplight_elements_html, + get_swagger_ui_html, get_swagger_ui_oauth2_redirect_html, ) from fastapi.staticfiles import StaticFiles @@ -36,6 +36,7 @@ async def redoc_html(): redoc_js_url="/static/redoc.standalone.js", ) + @app.get("/elements", include_in_schema=False) async def elements_html(): return get_stoplight_elements_html( @@ -48,4 +49,4 @@ async def elements_html(): @app.get("/users/{username}") async def read_user(username: str): - return {"message": f"Hello {username}"} \ No newline at end of file + return {"message": f"Hello {username}"}