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?
Asked
Active
Viewed 432 times
0

Logeswaran D
- 127
- 1
- 7
-
What do you mean by 'exclude'? – mjwills Jun 28 '17 at 12:42
-
I dont want to expose my api documentation in release mode,but in debug mode i need to show it – Logeswaran D Jun 28 '17 at 12:46
1 Answers
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