swagger description and examples in xml in asp.net core
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;