Category: .NET

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


Hello… Plz like n subscribe my videos on Interview questions Body Language Group Discussion Presentation Skill Table Etiquette Telephone Etiquette Social Etiquette- Professional Grooming- Resume Writing- Part 1 GD topics with key points- Tell me about yourself – Part 2 GD topics with key

MVC Interview Questions 1

What is use of ” routes.IgnoreRoute(“{resource}.axd/{*pathInfo}”); in route config? It is used to restrict access to web resources like WebResource.axd, ScriptResource.axd from request. What is use of TempData? TempData is used to pass data to current request and its subsequent request.It data is lost once it it read, we can use Keep() and Peek() method to