TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Istudent Rana
1.4k
361
85.1k
How do i disable swashbuckle swagger UI in production in asp
Jan 7 2020 7:34 AM
I using swashbuckle v 5.6.0 for api documentation and ui for test in asp.net web api2.
I do not want give ability for the user to post data from swagger ui in production.
How do I disable it?
GlobalConfiguration.Configuration
.EnableSwagger(c =>
{
c.Schemes(new[] { "http", "https" });
c.SingleApiVersion("v1", "Demo API");
c.PrettyPrint();
c.IncludeXmlComments(GetXmlCommentsPath());
})
.EnableSwaggerUi(c =>
{
c.DisableValidator();
});
Reply
Answers (
1
)
async Action Result does not end
How to define AccessControl Class in ASP.NET MVC