In the file AppStart/SwaggerConfig.cs
First one, you must import Linq
using System.Linq;
And add in the same file, this line
c.ResolveConflictingActions(apiDescriptions => apiDescriptions.First());
just inside of:
GlobalConfiguration.Configuration
.EnableSwagger(c =>
{ ...
One consideration:
In your controllers, you must use the Http methods
:
[HttpGet]
[Route("something")]
public List<model> something(){....}
[HttpGet]
[Route("something2")]
public List<model2> something2(){....}
[HttpPost]
[Route("mypost1")]
public List<model> mypost1(){....}
[HttpPost]
[Route("mypost2")]
public List<model2> mypost2(){....}