mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-19 04:35:14 +02:00
refactor: ruff autofixes
This commit is contained in:
455 files changed
+12322
-14762
No files matched your search
@@ -24,19 +24,19 @@ from gns3server.api.server import app
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
with open("../docs/openapi.json", "w") as fd:
|
||||
fd.write(json.dumps(app.openapi()))
|
||||
|
||||
swagger_html = get_swagger_ui_html(openapi_url="openapi.json",
|
||||
title=app.title + " - Swagger UI",
|
||||
oauth2_redirect_url=app.swagger_ui_oauth2_redirect_url)
|
||||
swagger_html = get_swagger_ui_html(
|
||||
openapi_url="openapi.json",
|
||||
title=app.title + " - Swagger UI",
|
||||
oauth2_redirect_url=app.swagger_ui_oauth2_redirect_url,
|
||||
)
|
||||
|
||||
with open("../docs/index.html", "w") as fd:
|
||||
fd.write(swagger_html.body.decode())
|
||||
|
||||
redoc_html = get_redoc_html(openapi_url="openapi.json",
|
||||
title=app.title + " - ReDoc")
|
||||
redoc_html = get_redoc_html(openapi_url="openapi.json", title=app.title + " - ReDoc")
|
||||
|
||||
with open("../docs/redoc.html", "w") as fd:
|
||||
fd.write(redoc_html.body.decode())
|
||||
Reference in new issue
Block a user