Open akshayhashedIn opened 4 years ago
SWAGGER_REQUEST_INTERCEPTOR = "(request) => { // Do something }" SWAGGER_UI_REQUEST_INTERCEPTOR = "(request) => { // Do something }"
app.config.SWAGGER_REQUEST_INTERCEPTOR = "(request) => { // Do something }" app.config.SWAGGER_UI_REQUEST_INTERCEPTOR = "(request) => { // Do something }"
I am not sure what is the actual name of the configuration to set requestInterceptor of Swagger as I was not able to find it (https://flask-restplus.readthedocs.io/en/stable/swagger.html#swagger-ui)
requestInterceptor
The expectation is to have the function mentioned in the configuration to be run as the request interceptor.
The configuration which I am using doesn't seem to have any effect. What is the correct name of the configuration? Is it supported?
Configuration file
SWAGGER_REQUEST_INTERCEPTOR = "(request) => { // Do something }" SWAGGER_UI_REQUEST_INTERCEPTOR = "(request) => { // Do something }"
app.py
Expected Behavior
I am not sure what is the actual name of the configuration to set
requestInterceptor
of Swagger as I was not able to find it (https://flask-restplus.readthedocs.io/en/stable/swagger.html#swagger-ui)The expectation is to have the function mentioned in the configuration to be run as the request interceptor.
Actual Behavior
The configuration which I am using doesn't seem to have any effect. What is the correct name of the configuration? Is it supported?
Environment