Base solution for your next web application
Open Closed

AbpWebApi().HttpConfiguration.EnableSwagger #1899


User avatar
0
malcon created

I try to enable Swagger using the example of documentation (<a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/Swagger-UI-Integration">http://www.aspnetboilerplate.com/Pages/ ... ntegration</a> ), however there is no reference to the .EnableSwagger in HttpConfiguration.

Erro 1 'System.Web.Http.HttpConfiguration' does not contain a definition for 'EnableSwagger' and no extension method 'EnableSwagger' accepting a first argument of type 'System.Web.Http.HttpConfiguration' could be found (are you missing a using directive or an assembly reference?) XXXXXX\F.WebApi\Api\FWebApiModule.cs 31 64 F.WebApi

What can it be?


1 Answer(s)
  • User Avatar
    0
    malcon created

    I managed to run, implementing Api version of swagger without using ABPWebApi (). Now I have the error Not supported by Swagger 2.0: Multiple operations with path 'api / AbpServiceProxies' and method 'GET'.

    Already tried removing the .WithConventionalVerbs () of Configuration.Modules.AbpWebApi (). DynamicApiControllerBuilder, but still without success.