add swagger to asp.net core 3.1 web api 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;