itsmaheshkariya / dotnetcore-mongodb-rest-api

Simple REST API Using Dotnet core and MongoDB.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DotNetCore REST API

.NET Core

This is simple Dotnet REST API Code with mongodb.

dotnet version -- 3.1.300

mongoDB.Driver version -- 2.4.10

user following mongodb connection string for testing

mongodb://mahesh:mahesh123@cluster0-shard-00-00-avqhv.mongodb.net:27017,cluster0-shard-00-01-avqhv.mongodb.net:27017,cluster0-shard-00-02-avqhv.mongodb.net:27017/<dbname>?ssl=true&replicaSet=Cluster0-shard-0&authSource=admin&retryWrites=true&w=majority

Build Command

dotnet build

Run Command

dotnet run

Watch Command

dotnet watch run

Check Url

[GET,POST]

http://localhost:5000/user

[DELETE,PUT]

http://localhost:5000/id_of_user

Install package

dotnet add package package_name

About

Simple REST API Using Dotnet core and MongoDB.


Languages

Language:C# 100.0%