Clone Directory using Git
git clone https://github.com/maheshkareeya/dotnet-core-mongodb-swagger-rest-api.git
Change Directory
cd otnet-core-mongodb-swagger-rest-api
Restore Packages
dotnet restore
Run Command
dotnet run
Watch Command
dotnet watch run
Check Url
https://localhost:5001/swagger
MongoDB String For Testing
mongodb://swagger:swagger123@cluster0-shard-00-00-aty7t.mongodb.net:27017,cluster0-shard-00-01-aty7t.mongodb.net:27017,cluster0-shard-00-02-aty7t.mongodb.net:27017/<dbname>?ssl=true&replicaSet=Cluster0-shard-0&authSource=admin&retryWrites=true&w=majority