src/dirbs/api/common/apidoc.py
def add_swagger_routes(self) -> None:
        """Override base add_swagger_routes method.

        Define blueprint for the OpenAPI spec to be served.
        """
        spec_blueprint = Blueprint(
            'flask-apispec-{0}'.format(self.version),
            FlaskApiSpec.__module__,
            static_folder='./static',
            template_folder='./templates',
            static_url_path='/flask-apispec/static',
        )

        @spec_blueprint.context_processor
        def override_url_for():
            return dict(url_for=custom_url_for)

        def custom_url_for(endpoint, **values):
            """
            Method to map custom urls for swagger.

            Arguments:
                endpoint: swagger designated endpoint
                values: url values to map to endpoints
            """
            endpoint = endpoint.replace('flask-apispec', 'flask-apispec-{0}'.format(self.version))
            return url_for(endpoint, **values)

        spec_blueprint.add_url_rule(self.apidoc_json_url, 'swagger-json', self.swagger_json)
        spec_blueprint.add_url_rule(self.apidoc_ui_url, 'swagger-ui', self.swagger_ui)
        self.app.register_blueprint(spec_blueprint)
Override base add_swagger_routes method.

        Define blueprint for the OpenAPI spec to be served.
        
Override base add_swagger_routes method.
Define blueprint for the OpenAPI spec to be served.
Override base add_swagger_routes method . Define blueprint for the OpenAPI spec to be served .
def add_swagger_routes(self) -> None:
        spec_blueprint = Blueprint(
            'flask-apispec-{0}'.format(self.version),
            FlaskApiSpec.__module__,
            static_folder='./static',
            template_folder='./templates',
            static_url_path='/flask-apispec/static',
        )
        @spec_blueprint.context_processor
        def override_url_for():
            return dict(url_for=custom_url_for)
        def custom_url_for(endpoint, **values):
            endpoint = endpoint.replace('flask-apispec', 'flask-apispec-{0}'.format(self.version))
            return url_for(endpoint, **values)
        spec_blueprint.add_url_rule(self.apidoc_json_url, 'swagger-json', self.swagger_json)
        spec_blueprint.add_url_rule(self.apidoc_ui_url, 'swagger-ui', self.swagger_ui)
        self.app.register_blueprint(spec_blueprint)
def add_swagger_routes ( self ) -> None : spec_blueprint = Blueprint ( 'flask-apispec-{0}' . format ( self . version ) , FlaskApiSpec . __module__ , static_folder = './static' , template_folder = './templates' , static_url_path = '/flask-apispec/static' , ) @ spec_blueprint . context_processor def override_url_for ( ) : return dict ( url_for = custom_url_for ) def custom_url_for ( endpoint , ** values ) : """
            Method to map custom urls for swagger.

            Arguments:
                endpoint: swagger designated endpoint
                values: url values to map to endpoints
            """ endpoint = endpoint . replace ( 'flask-apispec' , 'flask-apispec-{0}' . format ( self . version ) ) return url_for ( endpoint , ** values ) spec_blueprint . add_url_rule ( self . apidoc_json_url , 'swagger-json' , self . swagger_json ) spec_blueprint . add_url_rule ( self . apidoc_ui_url , 'swagger-ui' , self . swagger_ui ) self . app . register_blueprint ( spec_blueprint )
Override base add_swagger_routes method.
Override base add_swagger_routes method .
"""Override base add_swagger_routes method.

        Define blueprint for the OpenAPI spec to be served.
        """ """
            Method to map custom urls for swagger.

            Arguments:
                endpoint: swagger designated endpoint
                values: url values to map to endpoints
            """
self