python-restx / flask-restx

Fork of Flask-RESTPlus: Fully featured framework for fast, easy and documented API development with Flask
https://flask-restx.readthedocs.io/en/latest/
Other
2.16k stars 335 forks source link

How to remove a namespace at runtime programmatically #447

Open radiantone opened 2 years ago

radiantone commented 2 years ago

Hi, After adding a namespace and route/endpoint programmatically on startup, my app has a need to remove endpoints (namespaces?) under certain conditions.

How can I do this with restx, such that the endpoint no longer appears in the swagger ui?

thank you.