Threenine.ApiProject 3.1.13

There is a newer version of this package available.
See the version list below for details.
dotnet new install Threenine.ApiProject::3.1.13                
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,760 1/20/2024
6.0.19 948 1/20/2024
6.0.18 1,063 1/20/2024
6.0.17 944 1/18/2024
6.0.16 1,037 1/18/2024
6.0.15 764 1/18/2024
6.0.14 957 1/18/2024
6.0.13 850 1/18/2024
6.0.12 915 1/18/2024
6.0.11 1,030 1/17/2024
6.0.10 939 1/17/2024
6.0.8 960 1/17/2024
6.0.7 987 1/16/2024
6.0.6 1,078 1/16/2024
6.0.5 1,004 1/16/2024
5.0.19 1,851 9/25/2023
5.0.18 1,552 9/7/2023
5.0.17 1,886 7/24/2023
5.0.16 1,621 7/23/2023
5.0.15 1,688 7/23/2023
5.0.14 1,801 7/23/2023
5.0.13 2,041 5/10/2023
5.0.12 1,476 5/10/2023
5.0.11 1,541 5/1/2023
5.0.10 1,885 4/30/2023
5.0.9 1,686 4/30/2023
5.0.8 1,572 4/30/2023
5.0.7 1,754 4/29/2023
5.0.6 1,920 4/26/2023
5.0.5 1,753 4/25/2023
5.0.4 1,681 4/25/2023
5.0.3 1,736 4/25/2023
5.0.2 1,851 4/25/2023
5.0.1 1,538 4/24/2023
4.1.8 1,802 4/18/2023
4.1.7 2,222 1/13/2023
4.1.6 1,469 1/13/2023
4.1.5 1,958 11/15/2022
4.1.4 1,812 11/13/2022
4.1.3 1,908 11/9/2022
4.1.2 1,952 11/8/2022
4.1.1 1,851 11/4/2022
4.1.0 1,839 10/27/2022
4.0.2 1,624 10/19/2022
3.2.96 1,992 10/13/2022
3.2.95 1,664 10/11/2022
3.2.94 2,070 10/11/2022
3.2.92 1,857 9/29/2022
3.2.91 1,925 9/29/2022
3.2.90 2,128 9/23/2022
3.2.89 1,985 9/21/2022
3.2.88 2,050 9/21/2022
3.2.87 1,963 9/20/2022
3.2.86 1,900 9/15/2022
3.2.85 1,557 9/15/2022
3.2.79 1,816 9/11/2022
3.2.78 1,673 9/7/2022
3.2.77 1,722 8/29/2022
3.2.76 1,837 8/19/2022
3.2.75 1,870 8/19/2022
3.2.74 1,926 8/13/2022
3.2.73 2,026 8/13/2022
3.2.72 1,872 8/12/2022
3.2.68 2,132 8/9/2022
3.2.67 1,850 8/8/2022
3.2.66 1,942 8/8/2022
3.2.65 2,212 8/8/2022
3.2.64 2,013 8/7/2022
3.2.63 2,172 8/3/2022
3.2.62 1,808 8/1/2022
3.2.61 2,159 7/29/2022
3.2.60 2,150 7/27/2022
3.2.59 1,762 7/27/2022
3.2.58 1,784 7/27/2022
3.2.57 2,012 7/25/2022
3.2.56 1,912 7/24/2022
3.2.55 2,107 7/23/2022
3.2.54 2,047 7/23/2022
3.2.53 2,029 7/23/2022
3.2.52 1,947 7/22/2022
3.2.51 2,037 7/22/2022
3.2.50 1,973 7/22/2022
3.2.49 2,058 7/22/2022
3.2.48 2,040 7/21/2022
3.2.47 2,113 7/21/2022
3.2.46 1,870 7/21/2022
3.2.45 2,138 7/21/2022
3.2.44 1,984 7/21/2022
3.2.43 1,853 7/21/2022
3.2.42 2,147 7/21/2022
3.2.41 2,154 7/21/2022
3.2.40 2,115 7/21/2022
3.2.39 2,179 7/20/2022
3.2.38 1,992 7/20/2022
3.2.37 2,138 7/20/2022
3.2.36 2,150 7/20/2022
3.2.35 2,437 7/20/2022
3.2.34 2,177 7/20/2022
3.2.33 2,082 7/20/2022
3.2.32 2,200 7/20/2022
3.2.31 2,080 7/20/2022
3.2.30 2,094 7/20/2022
3.2.29 2,167 7/20/2022
3.2.28 1,946 7/20/2022
3.2.27 2,152 7/20/2022
3.2.26 2,259 7/18/2022
3.2.25 2,305 7/8/2022
3.2.24 2,285 7/4/2022
3.2.23 2,116 7/4/2022
3.2.22 2,270 7/4/2022
3.2.21 2,280 7/4/2022
3.2.20 2,094 7/2/2022
3.2.19 2,249 7/2/2022
3.2.18 2,244 7/2/2022
3.2.17 2,246 7/2/2022
3.2.16 1,948 7/2/2022
3.2.15 2,445 7/2/2022
3.2.14 2,098 7/2/2022
3.2.13 2,347 7/2/2022
3.2.12 2,328 7/2/2022
3.2.11 2,280 7/2/2022
3.2.10 2,312 6/30/2022
3.2.2 2,333 6/28/2022
3.2.1 2,358 6/28/2022
3.2.0 2,166 6/27/2022
3.1.22 2,287 6/26/2022
3.1.21 2,255 6/26/2022
3.1.20 2,207 6/26/2022
3.1.19 2,243 6/26/2022
3.1.18 2,164 6/23/2022
3.1.17 2,283 5/26/2022
3.1.16 2,544 5/24/2022
3.1.14 2,539 5/6/2022
3.1.13 2,359 4/27/2022
3.1.12 2,546 4/27/2022
3.1.10 2,474 4/20/2022
3.1.9 2,314 4/19/2022
3.1.8 2,390 4/12/2022
3.1.7 2,367 4/12/2022
3.1.6 2,639 4/12/2022
3.1.5 2,433 4/11/2022
3.1.4 2,418 4/11/2022
3.1.3 2,475 4/10/2022
3.1.2 2,337 4/9/2022
3.1.1 2,196 4/9/2022
3.1.0 2,416 4/8/2022
3.0.0 2,592 4/8/2022
2.1.0 2,432 4/8/2022
2.0.0 2,576 4/8/2022
1.2.14 2,268 4/4/2022
1.2.13 2,396 4/3/2022
1.2.12 2,459 4/2/2022
1.2.11 2,339 4/2/2022
1.2.10 2,279 4/2/2022
1.2.9 2,481 3/31/2022
1.2.8 2,585 3/30/2022
1.2.7 2,545 3/30/2022
1.2.6 2,327 3/30/2022
1.2.5 2,432 3/30/2022
1.2.4 2,386 11/15/2021
1.2.3 2,582 11/15/2021
1.2.2 2,644 11/1/2021
1.2.1 2,382 11/1/2021
1.1.6 2,219 9/30/2021
1.1.5 2,654 9/21/2021
1.1.4 2,316 9/21/2021
1.1.3 2,510 9/21/2021
1.1.2 2,885 8/24/2021
1.1.1 2,334 8/24/2021
1.0.23 4,476 6/7/2021
1.0.22 2,623 5/10/2021
1.0.21 2,422 5/10/2021
1.0.19 2,644 4/23/2021
1.0.18 2,787 4/23/2021
1.0.17 2,601 4/23/2021
1.0.10 2,763 4/21/2021
1.0.9 2,732 4/21/2021
1.0.8 2,906 4/21/2021
1.0.7 2,888 4/21/2021
1.0.6 2,920 4/21/2021
1.0.4 2,820 4/21/2021
1.0.3 3,161 4/21/2021
1.0.2 3,002 4/21/2021
1.0.0 3,548 4/21/2021
0.2.0 3,060 4/8/2022
0.1.0 3,284 4/8/2022