ssqagger gives error in dot net 5 code example
Example 1: swaggergen add service not getting info in .net core
services.AddSwaggerGen(c =>
{
c.SwaggerDoc("v1", new OpenApiInfo { Title = "The API", Version = "v1" });
});
Example 2: swaggergen add service not getting info in .net core
using Microsoft.OpenApi.Models;