I created a WebApi project using this article .
Everything is working fine. But now my client wants to view the documentation using Swagger. I tried to perform the setup, but everything does not work. without getting a list of controllers and their actions.

below is the swagger configuration:
using System.Web.Http; using WebActivatorEx; using DC.SUMS.WebAPI1; using Swashbuckle.Application; using System; using System.Linq; using Swashbuckle.Swagger; using Swashbuckle.Dummy.SwaggerExtensions; [assembly: PreApplicationStartMethod(typeof(SwaggerConfig), "Register")] namespace DC.SUMS.WebAPI1 { public class SwaggerConfig { public static void Register() { var thisAssembly = typeof(SwaggerConfig).Assembly; GlobalConfiguration.Configuration .EnableSwagger(c => {
owin swagger webapi2
Ramesh Prasad Feb 22 '16 at 7:28 2016-02-22 07:28
source share