Templates.WebApi 1.1.0

Suggested Alternatives

Templates.WebApi 2.0.0

Additional Details

This version is no longer maintained. To continue using `Templates.WebApi` please migrate to .Net 8

There is a newer version of this package available.
See the version list below for details.
dotnet new install Templates.WebApi::1.1.0
                    
This package contains a .NET Template Package you can call from the shell/command line.

Templates.WebApi

Workflow Status Templates.WebApi

This project provides a template solution for web api's. It uses a CQRS architechure. All your logic should be contained within the Application project. The Api should just send a new command or query via MediatR and then the request and handler is located inside of the Application.

Template Parameters

When you create a new solution using the template via Visual Studio or the .NET CLI you will be asked to specify the following parameters.

Each parameter has a default value, so you can ran with the defaults if you like.

| Parameter Name | Description | Command | Default value | |-----------------------|----------------------------------------------------------------------------------|---------------------------|-------------------------| | Docker | Adds an optimised Dockerfile to add the ability to build a Docker image. | -docker, -d | true | | ReadMe | Adds a README markdown file describing the project. | -readme, -r | true | | HealthCheck | Enables or disables the use of healthchecks. | -healthcheck, -health | true | | HealthCheckPath | HealthCheck path. Only necessary if HealthCheck is enabled. | -healthcheck-path, -hp| /health | | EFSQL | Enables or disables the use of a SQL database wtih EF-Core. | --efsql | false | | DapperSQL | Enables or disables the use of a SQL database with Dapper | --dappersql, -d-sql | false |

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.