Threenine.ApiProject 3.2.47

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

Vertical Slice Architecture Api Template

In Vertical Slice Architecture, A feature manages its data access code, domain logic and its presentation code, this way we can lowering the coupling and high cohesion between features. The aim is to reduce coupling between features to only concern ourselves about a single vertical slice not N-layers, which improves maintainability. Instead of dividing code by type , kind or layer, we organise it by the change we need to make. When we need to add business functionality to an application, therefore each vertical slice should contains the minimum viable code it needs to implement its feature.

Each slice is encapsulated so that the application doesn’t need to know what goes on inside the slice—it merely passes a Request and receives a Response.

How to Implement Vertical Slice Architecture

Package Details

This package provides an easy to implement project template to quickly and easily generate a Vertical Slice Implementation for your Api projects.

Once installed you can create new projects using the dotnet new CLI commands.

The template pack provides several options

Template Name Short Name Language Tags
-------------------- ---------- -------- -------------------------- API Solution template apisolution [C#] webpai/CQRS/vertical slice API project template apiproject [C#] webapi/CQRS/vertical CRUD Endpoints crud [C#} webapi/CQRS/Vertical Slice Command Endpoint command [C#] webapi/CQRS/vertical
Query Endpoint query [C#] webapi/CQRS/vertical slice

Generate a new API Solution

This template will generate an opinionated full REST API solution based on the API Project template and include Build Scripts using cake which will also create and publish your built docker container to Docker Hub.

To generate a new solution use the following command

dotnet new apisolution -n <YourProjectName> --Root <YourRootNameSpace>

Generate New Api Project

To create a new project use the following command

dotnet new apiproject -n YourProjectName -o src/

-n the name for the created output. If no name is specified, the name of the current directory is used.

-o Location to place the generated output. The default is the current directory.

Create a new Query Endpoint

To Generate a new Query Endpoint use

dotnet new query -n GetAll --Namespace MyProject.Activities.Sample.GetAll

-n Name of the Endpoint you would like create --Namespace The namespace you would like your End point to be in

Create a new Command Endpoint

To Generate a new Command Endpoint use

dotnet new command -n Post --Namespace MyProject.Activities.Sample.Post

-n Name of the Endpoint you would like create --Namespace The namespace you would like your End point to be in

  • net6.0

    • 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
7.0.0 2,754 1/20/2024
6.0.19 946 1/20/2024
6.0.18 1,061 1/20/2024
6.0.17 942 1/18/2024
6.0.16 1,035 1/18/2024
6.0.15 762 1/18/2024
6.0.14 955 1/18/2024
6.0.13 848 1/18/2024
6.0.12 913 1/18/2024
6.0.11 1,026 1/17/2024
6.0.10 937 1/17/2024
6.0.8 958 1/17/2024
6.0.7 985 1/16/2024
6.0.6 1,074 1/16/2024
6.0.5 1,002 1/16/2024
5.0.19 1,849 9/25/2023
5.0.18 1,550 9/7/2023
5.0.17 1,884 7/24/2023
5.0.16 1,619 7/23/2023
5.0.15 1,686 7/23/2023
5.0.14 1,799 7/23/2023
5.0.13 2,039 5/10/2023
5.0.12 1,474 5/10/2023
5.0.11 1,539 5/1/2023
5.0.10 1,883 4/30/2023
5.0.9 1,684 4/30/2023
5.0.8 1,570 4/30/2023
5.0.7 1,752 4/29/2023
5.0.6 1,918 4/26/2023
5.0.5 1,751 4/25/2023
5.0.4 1,679 4/25/2023
5.0.3 1,734 4/25/2023
5.0.2 1,849 4/25/2023
5.0.1 1,536 4/24/2023
4.1.8 1,800 4/18/2023
4.1.7 2,220 1/13/2023
4.1.6 1,467 1/13/2023
4.1.5 1,956 11/15/2022
4.1.4 1,806 11/13/2022
4.1.3 1,906 11/9/2022
4.1.2 1,950 11/8/2022
4.1.1 1,849 11/4/2022
4.1.0 1,837 10/27/2022
4.0.2 1,622 10/19/2022
3.2.96 1,990 10/13/2022
3.2.95 1,662 10/11/2022
3.2.94 2,068 10/11/2022
3.2.92 1,855 9/29/2022
3.2.91 1,923 9/29/2022
3.2.90 2,126 9/23/2022
3.2.89 1,983 9/21/2022
3.2.88 2,044 9/21/2022
3.2.87 1,959 9/20/2022
3.2.86 1,898 9/15/2022
3.2.85 1,553 9/15/2022
3.2.79 1,814 9/11/2022
3.2.78 1,671 9/7/2022
3.2.77 1,720 8/29/2022
3.2.76 1,835 8/19/2022
3.2.75 1,868 8/19/2022
3.2.74 1,922 8/13/2022
3.2.73 2,024 8/13/2022
3.2.72 1,870 8/12/2022
3.2.68 2,128 8/9/2022
3.2.67 1,848 8/8/2022
3.2.66 1,940 8/8/2022
3.2.65 2,210 8/8/2022
3.2.64 2,011 8/7/2022
3.2.63 2,170 8/3/2022
3.2.62 1,806 8/1/2022
3.2.61 2,157 7/29/2022
3.2.60 2,148 7/27/2022
3.2.59 1,760 7/27/2022
3.2.58 1,780 7/27/2022
3.2.57 2,010 7/25/2022
3.2.56 1,910 7/24/2022
3.2.55 2,105 7/23/2022
3.2.54 2,043 7/23/2022
3.2.53 2,023 7/23/2022
3.2.52 1,945 7/22/2022
3.2.51 2,035 7/22/2022
3.2.50 1,971 7/22/2022
3.2.49 2,056 7/22/2022
3.2.48 2,037 7/21/2022
3.2.47 2,111 7/21/2022
3.2.46 1,868 7/21/2022
3.2.45 2,134 7/21/2022
3.2.44 1,978 7/21/2022
3.2.43 1,851 7/21/2022
3.2.42 2,143 7/21/2022
3.2.41 2,152 7/21/2022
3.2.40 2,111 7/21/2022
3.2.39 2,177 7/20/2022
3.2.38 1,990 7/20/2022
3.2.37 2,133 7/20/2022
3.2.36 2,146 7/20/2022
3.2.35 2,435 7/20/2022
3.2.34 2,175 7/20/2022
3.2.33 2,076 7/20/2022
3.2.32 2,198 7/20/2022
3.2.31 2,078 7/20/2022
3.2.30 2,092 7/20/2022
3.2.29 2,165 7/20/2022
3.2.28 1,944 7/20/2022
3.2.27 2,150 7/20/2022
3.2.26 2,254 7/18/2022
3.2.25 2,303 7/8/2022
3.2.24 2,283 7/4/2022
3.2.23 2,112 7/4/2022
3.2.22 2,266 7/4/2022
3.2.21 2,276 7/4/2022
3.2.20 2,092 7/2/2022
3.2.19 2,247 7/2/2022
3.2.18 2,238 7/2/2022
3.2.17 2,244 7/2/2022
3.2.16 1,944 7/2/2022
3.2.15 2,443 7/2/2022
3.2.14 2,096 7/2/2022
3.2.13 2,345 7/2/2022
3.2.12 2,326 7/2/2022
3.2.11 2,276 7/2/2022
3.2.10 2,310 6/30/2022
3.2.2 2,329 6/28/2022
3.2.1 2,352 6/28/2022
3.2.0 2,160 6/27/2022
3.1.22 2,285 6/26/2022
3.1.21 2,253 6/26/2022
3.1.20 2,205 6/26/2022
3.1.19 2,241 6/26/2022
3.1.18 2,162 6/23/2022
3.1.17 2,281 5/26/2022
3.1.16 2,542 5/24/2022
3.1.14 2,537 5/6/2022
3.1.13 2,357 4/27/2022
3.1.12 2,544 4/27/2022
3.1.10 2,472 4/20/2022
3.1.9 2,312 4/19/2022
3.1.8 2,388 4/12/2022
3.1.7 2,365 4/12/2022
3.1.6 2,637 4/12/2022
3.1.5 2,431 4/11/2022
3.1.4 2,416 4/11/2022
3.1.3 2,473 4/10/2022
3.1.2 2,335 4/9/2022
3.1.1 2,194 4/9/2022
3.1.0 2,414 4/8/2022
3.0.0 2,590 4/8/2022
2.1.0 2,430 4/8/2022
2.0.0 2,574 4/8/2022
1.2.14 2,266 4/4/2022
1.2.13 2,394 4/3/2022
1.2.12 2,456 4/2/2022
1.2.11 2,337 4/2/2022
1.2.10 2,277 4/2/2022
1.2.9 2,479 3/31/2022
1.2.8 2,583 3/30/2022
1.2.7 2,543 3/30/2022
1.2.6 2,325 3/30/2022
1.2.5 2,430 3/30/2022
1.2.4 2,384 11/15/2021
1.2.3 2,580 11/15/2021
1.2.2 2,642 11/1/2021
1.2.1 2,380 11/1/2021
1.1.6 2,217 9/30/2021
1.1.5 2,652 9/21/2021
1.1.4 2,314 9/21/2021
1.1.3 2,508 9/21/2021
1.1.2 2,883 8/24/2021
1.1.1 2,332 8/24/2021
1.0.23 4,474 6/7/2021
1.0.22 2,621 5/10/2021
1.0.21 2,420 5/10/2021
1.0.19 2,642 4/23/2021
1.0.18 2,785 4/23/2021
1.0.17 2,599 4/23/2021
1.0.10 2,743 4/21/2021
1.0.9 2,730 4/21/2021
1.0.8 2,904 4/21/2021
1.0.7 2,886 4/21/2021
1.0.6 2,918 4/21/2021
1.0.4 2,818 4/21/2021
1.0.3 3,159 4/21/2021
1.0.2 3,000 4/21/2021
1.0.0 3,546 4/21/2021
0.2.0 3,058 4/8/2022
0.1.0 3,282 4/8/2022