We can add swagger using below steps :       Add ‘Swashbuckle.AspNetCore’ in your .net core api project      Add  AddSwaggerGen method on services in ConfigureServices method (startup class) as below [crayon-5c11e968e1e8d979572015/]     Add app.UseSwagger() in Configure method on startup class.     Add app.UseSwaggerUI() method (startup class)as below [crayon-5c11e968e1e9f169969723/]