Add Swagger Doc and Cors Policy to our ASP NET Core RESTful API

Опубликовано: 21 Март 2025
на канале: Faith Olusegun
587
7

Still on Let's build a REST API using C#, ASP.NET Core, Dapper, SQL Server, Repository Pattern


Hi guys! Thanks my last video saw over 100 views and 10 unique subscribers in just 36 hours. I just dropped another one... Like, share, comment, subscribe etc.

I want to thank and appreciate you guys. You are the best and you give me enough encouragement I need to keep making more videos and sharing knowledge.

   • Let's build a REST API using C#, ASP ...  


In this tutorial, we added Swagger Documentation and CORs Policy to our DeveloperAPI Project at    • Let's build a REST API using C#, ASP ...   and pushed our code to Github.

The Repository for this project is at

https://github.com/propenster/ASP.NET...

If you have not seen the last tutorial where we built RESTful API's from a database of Developers in our company, kindly watch the video    • Let's build a REST API using C#, ASP ...   before watching this tutorial.

STEPS:
Install Swashbuckle.AspNetCore from the NuGet Repository
configure SwaggerDoc in the Dependency Injection Service container in Startup.cs
Rebuild and Run your code.
Create a Github REpo on Github
Initiliaze an Empty Local Git Repo in your Current Working Directory/Folder of your Project
Add and Commit CHanges,
Push code to Github.

If you like, be sure to give a like, comment, subscribe and share with your friends.

Thank you very much.