A .NET 5 based Rest Api.
See the code »
A REST API made using the .NET 5 framework – with GET, POST, PUT, DELETE endpoints to perform CRUD operations, as well as to practice important principles such as dependency injection, DTOs and to familiarize myself with the new .NET 5 framework. A docker image of the project was created.
C#, .NET 5 Framework, Dependency Injection, Postman, SwaggerUI, MVC, MongoDB, REST API, Docker, Kubernetes
Run the following two commands and test the endpoints on http://localhost:8080/items
docker run -d --rm --name mongo -p 27017:27017 -v mongodbdata:/data/db
-e MONGO_INITDB_ROOT_USERNAME=mongoadmin -e MONGO_INITDB_ROOT_PASSWORD=Pass#word1
--network=CatalogNetwork mongo
docker run -it --rm -p 8080:80
-e MongoDbSettings:Host=mongo -e MongoDbSettings:Password=Pass#word1
--network=CatalogNetwork vaansh/catalog01:v1