Skip to content

Commit

Permalink
use new swagger ui
Browse files Browse the repository at this point in the history
  • Loading branch information
bisgaard-itis committed Dec 17, 2024
1 parent 25ef929 commit 8aad765
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
import logging

from aiohttp import web
from aiohttp_swagger import setup_swagger # type: ignore[import-untyped]
from servicelib.aiohttp.application_setup import ModuleCategory, app_module_setup
from servicelib.aiohttp.rest_middlewares import (
envelope_middleware_factory,
error_middleware_factory,
)
from swagger_ui import api_doc

from .._meta import API_VTAG
from ..security.plugin import setup_security
Expand Down Expand Up @@ -60,11 +60,8 @@ def setup_rest(app: web.Application):
#
_logger.debug("OAS loaded from %s ", spec_path)
if settings.REST_SWAGGER_API_DOC_ENABLED:
setup_swagger(
app,
swagger_url="/dev/doc",
swagger_from_file=str(spec_path),
ui_version=3,
api_doc(
app=app, url_prefix="/dev/doc", config_path=str(spec_path), title="API doc"
)


Expand Down

0 comments on commit 8aad765

Please sign in to comment.