Begin Swagger & WEB API C# asp.net
😁 hi every one to day we talk about plugin swagger with api .
Swagger is auto plugin to generate document api. Let’s GO…
Step 1 : Create your api in this case we create api with asp.net web api
Step 2 : Set your project name , choose location for this project and Framework version
Step 3 : Choose WEB API and click create
🥴🥴🥴🥴🥴 and waiting …… 🥴🥴🥴🥴🥴
Step 4 : Test Run API
OK This api is work . 😏
Step 5 : stop run api and click
Tools >> Nuget Package Manager >> Manage Nuget Packages for Solution.
Step 6 : search in tab search “ Swashbuckle” and click your project name and install
Click OK
Step 7 : Go to menu project >> Properties
Click Build tab >> check box XML documentation files >> CTRL + S
Step 8 : Click run project again
by default we look in url is https://localhost:44358/
if you want to use swagger url is https://localhost:44358/swagger
Thank you.
😎 😎 Referent : https://www.c-sharpcorner.com/article/implementing-swagger-in-web-api/ 😎 😎