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
I'm using a custom ControllerFeatureProvider to exclude certain controllers from my API (and I'd like to go further and be able to exclude certain endpoints from a controller but not worked out a way to do that yet!). This works and the excluded controllers are not reachable. However I've noticed that the OpenApi docs that are generated still include the excluded controllers. Surely the OpenApi stuff should respect the ControllerFeatureProvider? If not, for whatever reason, is there a way to exclude controllers/endpoints from the OpenApi docs without using attributes/touching the actual controller code?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm using a custom ControllerFeatureProvider to exclude certain controllers from my API (and I'd like to go further and be able to exclude certain endpoints from a controller but not worked out a way to do that yet!). This works and the excluded controllers are not reachable. However I've noticed that the OpenApi docs that are generated still include the excluded controllers. Surely the OpenApi stuff should respect the ControllerFeatureProvider? If not, for whatever reason, is there a way to exclude controllers/endpoints from the OpenApi docs without using attributes/touching the actual controller code?
Beta Was this translation helpful? Give feedback.
All reactions