private static void ConfigureSwagger(HttpSelfHostConfiguration config) { //Configure swagger config.EnableSwagger((c) => { var baseDirectory = AppDomain.CurrentDomain.BaseDirectory; var commentsFileName = Assembly.GetExecutingAssembly().GetName().Name + ".XML"; var commentsFile = Path.Combine(baseDirectory, commentsFileName); c.SingleApiVersion("v1", "MAL.Net - A .net API for MAL"); c.ResolveConflictingActions(apiDescriptions => apiDescriptions.First()); c.IncludeXmlComments(commentsFile); }).EnableSwaggerUi(); }