Hello,
I have inherited an old version of a Kentico 10 site (10.0.51) and we have some API controllers in our project. We have installed Swagger to document the end points and it's picking up the "/cmsapi/" end points as well. Is there any way to hide the "/cmsapi/" route from Swagger? Has anyone come across this?
Thanks
In Swagger you can customize the document output by adding c.DocumentFilter<CustomFilter>(); to .EnableSwagger(c => { }). The CustomFilter class must implement IDocumentFilter.
c.DocumentFilter<CustomFilter>();
.EnableSwagger(c => { })
IDocumentFilter
Please, sign in to be able to submit a new answer.