File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
services/web/server/src/simcore_service_webserver/rest Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 99import logging
1010
1111from aiohttp import web
12- from aiohttp_swagger import setup_swagger # type: ignore[import-untyped]
1312from servicelib .aiohttp .application_setup import ModuleCategory , app_module_setup
1413from servicelib .aiohttp .rest_middlewares import (
1514 envelope_middleware_factory ,
1615 error_middleware_factory ,
1716)
17+ from swagger_ui import api_doc
1818
1919from .._meta import API_VTAG
2020from ..security .plugin import setup_security
@@ -60,11 +60,8 @@ def setup_rest(app: web.Application):
6060 #
6161 _logger .debug ("OAS loaded from %s " , spec_path )
6262 if settings .REST_SWAGGER_API_DOC_ENABLED :
63- setup_swagger (
64- app ,
65- swagger_url = "/dev/doc" ,
66- swagger_from_file = str (spec_path ),
67- ui_version = 3 ,
63+ api_doc (
64+ app = app , url_prefix = "/dev/doc" , config_path = str (spec_path ), title = "API doc"
6865 )
6966
7067
You can’t perform that action at this time.
0 commit comments