Author: sharad singh

Adding Swagger in Asp.net core

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-5c11e8b9f2c13782672742/]     Add app.UseSwagger() in Configure method on startup class.     Add app.UseSwaggerUI() method (startup class)as below [crayon-5c11e8b9f2c26362234936/]