An open API service indexing awesome lists of open source software.

https://github.com/itsmaheshkariya/dotnetcore-mongodb-rest-api

Simple REST API Using Dotnet core and MongoDB.
https://github.com/itsmaheshkariya/dotnetcore-mongodb-rest-api

api dotnet dotnetcore mongodb rest

Last synced: about 2 months ago
JSON representation

Simple REST API Using Dotnet core and MongoDB.

Awesome Lists containing this project

README

        

# DotNetCore REST API
![.NET Core](https://github.com/maheshkareeya/dotnetcore-mongodb-rest-api/workflows/.NET%20Core/badge.svg)

### 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:[email protected]:27017,cluster0-shard-00-01-avqhv.mongodb.net:27017,cluster0-shard-00-02-avqhv.mongodb.net:27017/?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
```