mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
Make Swagger Ui the default for API documentation
This commit is contained in:
1 parent
359f9a7384
commit
30d6f1fa2a
3 files changed
+8
-6
No files matched your search
@@ -32,11 +32,11 @@ if __name__ == "__main__":
|
||||
title=app.title + " - Swagger UI",
|
||||
oauth2_redirect_url=app.swagger_ui_oauth2_redirect_url)
|
||||
|
||||
with open("../docs/swagger.html", "w") as fd:
|
||||
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")
|
||||
|
||||
with open("../docs/index.html", "w") as fd:
|
||||
with open("../docs/redoc.html", "w") as fd:
|
||||
fd.write(redoc_html.body.decode())
|
||||
Reference in new issue
Block a user