0

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?

Logeswaran D
  • 127
  • 1
  • 7

1 Answers1

1

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

Rahul
  • 76,197
  • 13
  • 71
  • 125