Exclude HelpPage from WebAPI C#

509 views Asked by At

i need to exclude my api help page during release mode i tried to add ApiExplorerSettingsAttribute().IgnoreApi = true in webapi config file but it's of no use how can we achieve it?

1

There are 1 answers

0
Rahul On

If your help pages are in a separate folder then exclude that from source control and then create a branch from there. From that branch you can release/deploy your API. You should pull all your API documentation in separate Wiki page if possible.

You should find this existing post really helpful WebAPI Help Pages: disable for Production release