This is a sample project of how to use .Net Core for a Web API.
It uses MongoDB as a data storage service, it also uses Swashbuckle
to autogenerate the API docs in Swagger format.
- Execute
docker-compose up
on theDocker
directory - Execute
dotnet build
- Execute
dotnet run
- Retrieve some books
curl --insecure https://localhost:5001/api/books
- Get API docs
https://localhost:5001/swagger/index.html
- Execute
docker build -t SampleAPI .
- Execute
docker run -p 8080:80 SampleAPI