flask-swagger-ui icon indicating copy to clipboard operation
flask-swagger-ui copied to clipboard

allow interceptors to be parsed as js functions UPDATED

Open Dsolnik opened this issue 4 years ago • 0 comments

This provides an alternative approach to adding swagger ui function parameters that supports older browsers.

I took the code from #35 written by @carlosreif and made some updates so that it would be able to support older browsers.

To pass a function parameter, the requester must be sure to name the function the same as the name of the parameter.

i.e.

get_swagger_ui_blueprint(prefix, url, config={'requestInterceptor':'function requestInterceptor(req){}'})

Dsolnik avatar Dec 23 '20 17:12 Dsolnik