Popov1024.HttpApi.Template.CSharp
2.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet new install Popov1024.HttpApi.Template.CSharp::2.0.0
This package contains a .NET Template Package you can call from the shell/command line.
ASP.NET Core Web API (extended)
About
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 exampletest
(/test
) based onmstest
docker-compose
for build and run as a docker container.
Install template
dotnet new -i "Popov1024.HttpApi.Template.CSharp::*"
Uninstall template
dotnet new -u Popov1024.HttpApi.Template.CSharp
Using
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
... or run using dotnet runtine:
cd src
dotnet run
In this case URL will be by http://localhost:5000
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
The frirst version