I have integrated swagger in WebApi 2 application. It works fine when application has single controller. When I added second controller in the application. I got following
An answer I haven't seen: I bungled up usings.
My controller has some MVC items (List items) and thus has a link:
using System.Web.Http;
using System.Web.Mvc;
Because of this, somehow, it got registered twice (I assume). Problem was fixed by using the full qualification for RoutePrefix/Route/HttpGet and others.
namespace MyNameSpace
{
[System.Web.Http.RoutePrefix("api/Reports")]
public class ReportsController
{
{...constructor...}
[System.Web.Http.Route("Scans")]
[System.Web.Http.HttpGet,ResponseType(typeof(List))]
public ascyn Task GetScans() {...}