How to add swagger in Asp.net core project

Опубликовано: 07 Апрель 2023
на канале: Digital Knack
3,094
24

Today I am going to teach "How to add swagger in Asp.net core project"

Follow these 4 steps:

1: Install the Swashbuckle.AspNetCore NuGet package:

2: Add the Swagger generator to the services in the Startup.cs file:


3: Enable the middleware to serve the generated Swagger as a JSON endpoint and the Swagger UI:

4: Set up the launch url in launchSettings.json:
For example, "https://localhost:5001/swagger".


==================================================
Thanks for watching,
Please subscribe my channel.
==================================================
If you have any questions or queries, write them in comments below
or mail me at:
[email protected]
==================================================


Смотрите видео How to add swagger in Asp.net core project онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Digital Knack 07 Апрель 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3,094 раз и оно понравилось 24 людям.