Threenine.ApiProject 3.1.2

There is a newer version of this package available.
See the version list below for details.
dotnet new install Threenine.ApiProject::3.1.2
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 3 options

Template Name Short Name Language Tags
-------------------- ---------- -------- --------------------------

API project template apiproject [C#] webapi/cqrs/vertical
Command Endpoint command [C#] webapi/cqrs/vertical
Query Endpoint query [C#] webapi/cqrs/vertical slice

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 Enpoint 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,492 1/20/2024
6.0.19 915 1/20/2024
6.0.18 1,017 1/20/2024
6.0.17 915 1/18/2024
6.0.16 1,001 1/18/2024
6.0.15 737 1/18/2024
6.0.14 916 1/18/2024
6.0.13 810 1/18/2024
6.0.12 887 1/18/2024
6.0.11 994 1/17/2024
6.0.10 904 1/17/2024
6.0.8 925 1/17/2024
6.0.7 950 1/16/2024
6.0.6 1,044 1/16/2024
6.0.5 970 1/16/2024
5.0.19 1,812 9/25/2023
5.0.18 1,520 9/7/2023
5.0.17 1,858 7/24/2023
5.0.16 1,579 7/23/2023
5.0.15 1,657 7/23/2023
5.0.14 1,769 7/23/2023
5.0.13 2,003 5/10/2023
5.0.12 1,449 5/10/2023
5.0.11 1,508 5/1/2023
5.0.10 1,846 4/30/2023
5.0.9 1,653 4/30/2023
5.0.8 1,522 4/30/2023
5.0.7 1,727 4/29/2023
5.0.6 1,893 4/26/2023
5.0.5 1,719 4/25/2023
5.0.4 1,643 4/25/2023
5.0.3 1,703 4/25/2023
5.0.2 1,824 4/25/2023
5.0.1 1,507 4/24/2023
4.1.8 1,773 4/18/2023
4.1.7 2,183 1/13/2023
4.1.6 1,443 1/13/2023
4.1.5 1,926 11/15/2022
4.1.4 1,781 11/13/2022
4.1.3 1,883 11/9/2022
4.1.2 1,925 11/8/2022
4.1.1 1,821 11/4/2022
4.1.0 1,792 10/27/2022
4.0.2 1,583 10/19/2022
3.2.96 1,958 10/13/2022
3.2.95 1,640 10/11/2022
3.2.94 2,040 10/11/2022
3.2.92 1,823 9/29/2022
3.2.91 1,898 9/29/2022
3.2.90 2,098 9/23/2022
3.2.89 1,960 9/21/2022
3.2.88 2,021 9/21/2022
3.2.87 1,921 9/20/2022
3.2.86 1,872 9/15/2022
3.2.85 1,527 9/15/2022
3.2.79 1,792 9/11/2022
3.2.78 1,644 9/7/2022
3.2.77 1,697 8/29/2022
3.2.76 1,812 8/19/2022
3.2.75 1,831 8/19/2022
3.2.74 1,899 8/13/2022
3.2.73 1,997 8/13/2022
3.2.72 1,835 8/12/2022
3.2.68 2,098 8/9/2022
3.2.67 1,817 8/8/2022
3.2.66 1,911 8/8/2022
3.2.65 2,174 8/8/2022
3.2.64 1,977 8/7/2022
3.2.63 2,141 8/3/2022
3.2.62 1,780 8/1/2022
3.2.61 2,128 7/29/2022
3.2.60 2,125 7/27/2022
3.2.59 1,736 7/27/2022
3.2.58 1,752 7/27/2022
3.2.57 1,985 7/25/2022
3.2.56 1,882 7/24/2022
3.2.55 2,075 7/23/2022
3.2.54 2,020 7/23/2022
3.2.53 2,000 7/23/2022
3.2.52 1,922 7/22/2022
3.2.51 2,006 7/22/2022
3.2.50 1,943 7/22/2022
3.2.49 2,027 7/22/2022
3.2.48 2,005 7/21/2022
3.2.47 2,074 7/21/2022
3.2.46 1,842 7/21/2022
3.2.45 2,108 7/21/2022
3.2.44 1,952 7/21/2022
3.2.43 1,822 7/21/2022
3.2.42 2,113 7/21/2022
3.2.41 2,124 7/21/2022
3.2.40 2,083 7/21/2022
3.2.39 2,154 7/20/2022
3.2.38 1,959 7/20/2022
3.2.37 2,098 7/20/2022
3.2.36 2,120 7/20/2022
3.2.35 2,404 7/20/2022
3.2.34 2,141 7/20/2022
3.2.33 2,052 7/20/2022
3.2.32 2,166 7/20/2022
3.2.31 2,054 7/20/2022
3.2.30 2,068 7/20/2022
3.2.29 2,137 7/20/2022
3.2.28 1,920 7/20/2022
3.2.27 2,120 7/20/2022
3.2.26 2,224 7/18/2022
3.2.25 2,279 7/8/2022
3.2.24 2,254 7/4/2022
3.2.23 2,088 7/4/2022
3.2.22 2,234 7/4/2022
3.2.21 2,235 7/4/2022
3.2.20 2,063 7/2/2022
3.2.19 2,223 7/2/2022
3.2.18 2,210 7/2/2022
3.2.17 2,221 7/2/2022
3.2.16 1,915 7/2/2022
3.2.15 2,414 7/2/2022
3.2.14 2,065 7/2/2022
3.2.13 2,318 7/2/2022
3.2.12 2,291 7/2/2022
3.2.11 2,244 7/2/2022
3.2.10 2,270 6/30/2022
3.2.2 2,300 6/28/2022
3.2.1 2,323 6/28/2022
3.2.0 2,137 6/27/2022
3.1.22 2,253 6/26/2022
3.1.21 2,225 6/26/2022
3.1.20 2,182 6/26/2022
3.1.19 2,218 6/26/2022
3.1.18 2,139 6/23/2022
3.1.17 2,249 5/26/2022
3.1.16 2,504 5/24/2022
3.1.14 2,515 5/6/2022
3.1.13 2,323 4/27/2022
3.1.12 2,519 4/27/2022
3.1.10 2,447 4/20/2022
3.1.9 2,276 4/19/2022
3.1.8 2,363 4/12/2022
3.1.7 2,333 4/12/2022
3.1.6 2,606 4/12/2022
3.1.5 2,404 4/11/2022
3.1.4 2,372 4/11/2022
3.1.3 2,447 4/10/2022
3.1.2 2,310 4/9/2022
3.1.1 2,162 4/9/2022
3.1.0 2,391 4/8/2022
3.0.0 2,559 4/8/2022
2.1.0 2,394 4/8/2022
2.0.0 2,541 4/8/2022
1.2.14 2,242 4/4/2022
1.2.13 2,366 4/3/2022
1.2.12 2,427 4/2/2022
1.2.11 2,313 4/2/2022
1.2.10 2,248 4/2/2022
1.2.9 2,450 3/31/2022
1.2.8 2,553 3/30/2022
1.2.7 2,496 3/30/2022
1.2.6 2,292 3/30/2022
1.2.5 2,393 3/30/2022
1.2.4 2,331 11/15/2021
1.2.3 2,550 11/15/2021
1.2.2 2,618 11/1/2021
1.2.1 2,336 11/1/2021
1.1.6 2,185 9/30/2021
1.1.5 2,623 9/21/2021
1.1.4 2,279 9/21/2021
1.1.3 2,479 9/21/2021
1.1.2 2,854 8/24/2021
1.1.1 2,293 8/24/2021
1.0.23 4,426 6/7/2021
1.0.22 2,564 5/10/2021
1.0.21 2,388 5/10/2021
1.0.19 2,601 4/23/2021
1.0.18 2,755 4/23/2021
1.0.17 2,568 4/23/2021
1.0.10 2,704 4/21/2021
1.0.9 2,697 4/21/2021
1.0.8 2,869 4/21/2021
1.0.7 2,858 4/21/2021
1.0.6 2,879 4/21/2021
1.0.4 2,784 4/21/2021
1.0.3 3,124 4/21/2021
1.0.2 2,965 4/21/2021
1.0.0 3,498 4/21/2021
0.2.0 3,025 4/8/2022
0.1.0 3,250 4/8/2022