Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to set requestInterceptor (Configuration of Swagger) #793

Open
akshayhashedIn opened this issue Apr 16, 2020 · 0 comments
Open

Unable to set requestInterceptor (Configuration of Swagger) #793

akshayhashedIn opened this issue Apr 16, 2020 · 0 comments
Labels

Comments

@akshayhashedIn
Copy link

Configuration file

SWAGGER_REQUEST_INTERCEPTOR = "(request) => { // Do something }"
SWAGGER_UI_REQUEST_INTERCEPTOR = "(request) => { // Do something }"

app.py

app.config.SWAGGER_REQUEST_INTERCEPTOR = "(request) => { // Do something }"
app.config.SWAGGER_UI_REQUEST_INTERCEPTOR = "(request) => { // Do something }"

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

  • Python version: 3.6
  • Flask version: 1.1.1
  • Flask-RESTPlus version dependency of (flask-accepts==0.15.4)
  • Other installed Flask extensions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant