You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For our Flask Apps, we usually are creating several different blueprints. Recently, we have integrated flask_restx so we can add documentation. As part of the REST API's we are creating, it would be nice to dynamically get all the Swagger UI endpoints (registered namespaces) so I can make a directory to point to the help for each blueprint. I know I can manually register a list of these and use that, but is there any way to do this programmatically so we can dynamically load all the locations of Swagger help at runtime?
We are hoping to be able to glean this from the app.config or some other way that is easily accessible if flask_restx maintains a registry of these internally. Thanks!
The text was updated successfully, but these errors were encountered:
Update: I did just try this and it seems to work, however, I don't really like my test of having to see if the view_function ends with .doc. This feels hacky and dirty, so I am still open to a better way. But this is working:
For our Flask Apps, we usually are creating several different blueprints. Recently, we have integrated
flask_restx
so we can add documentation. As part of the REST API's we are creating, it would be nice to dynamically get all the Swagger UI endpoints (registered namespaces) so I can make a directory to point to the help for each blueprint. I know I can manually register a list of these and use that, but is there any way to do this programmatically so we can dynamically load all the locations of Swagger help at runtime?We are hoping to be able to glean this from the
app.config
or some other way that is easily accessible ifflask_restx
maintains a registry of these internally. Thanks!The text was updated successfully, but these errors were encountered: