services.AddSwaggerGen (c =>
{
c.ResolveConflictingActions (apiDescriptions => apiDescriptions.First ());
});
//in the Startup.cs class in the ConfigureServices method
Actions require unique method/path combination for Swagger
原文:https://www.cnblogs.com/lonelyxmas/p/12057311.html