Forum Discussion

Developer_35436's avatar
Developer_35436
New Contributor
14 hours ago

Swagger - hide definition, BUT....

Hi,

I am trying to hide definition/document (the one you select from top right dropdown), but make all endpoints available. Point is, to do "first filter" for curious users, then authorization.

As you can see in attached filter I want to remove WHOLE group "admin" from the dropdown, but let Swagger make the page and also access it. Of course all endpoints will be standardly accessable.

In points - what I do not want:

  • Remove those endpoints from the page
  • Remove the page itself (even if from address bar those endpoints will be still available e.g. from the Postman)
  • Make those endpoints not accessible

Optimally I would like to avoid run JS, after load.

Thank you in forward,

Jan

No RepliesBe the first to reply