Swashbuckle/Swagger + ASP.Net Core: "Failed to load API definition"

Solution 1:

Add Httpxxx([HttpGet], [HttpPost], ...) attribute for each Action method, or [ApiExplorerSettings(IgnoreApi = true)]

Solution 2:

Simply you can look into the log in the Output window. The actual error can be seen there in my case, I missed adding HTTP action on top of a methods

enter image description here