how to add specific controller verion in swagger config in asp.net core webapi 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;