It's template for dotnetcore 2.0 based on standart ASP.NET Core Web API (webapi).
Included swagger and docker.
The templating solution consist of three progect:
api(/src) - the very simple api as exampletests(/tests) based onmstestdocker-composefor build and run as a docker container.
dotnet new -i "Popov1024.HttpApi.Template.CSharp::*"
dotnet new -u Popov1024.HttpApi.Template.CSharp
Make some dir:
mkdir my_api_project
cd my_api_project
Create solution:
dotnet new httpapi
Run http api using docker-compose:
docker-compose up --build -d
And you can see the result: http://localhost/example/swagger
... or run using dotnet runtine:
cd src
dotnet run
In this case URL will be by http://localhost:5000