Popov1024.HttpApi.Template.CSharp 2.0.0

There is a newer version of this package available.
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 example
  • test (/test) based on mstest
  • 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.

Version Downloads Last updated
2.0.7.1 7,514 5/1/2018
2.0.2 1,526 12/9/2017
2.0.1 1,069 11/14/2017
2.0.0 1,181 11/10/2017

The frirst version