Threenine.ApiProject 3.1.5

There is a newer version of this package available.
See the version list below for details.
dotnet new install Threenine.ApiProject::3.1.5
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,263 1/20/2024
6.0.19 605 1/20/2024
6.0.18 737 1/20/2024
6.0.17 673 1/18/2024
6.0.16 777 1/18/2024
6.0.15 566 1/18/2024
6.0.14 669 1/18/2024
6.0.13 546 1/18/2024
6.0.12 645 1/18/2024
6.0.11 712 1/17/2024
6.0.10 684 1/17/2024
6.0.8 662 1/17/2024
6.0.7 609 1/16/2024
6.0.6 791 1/16/2024
6.0.5 747 1/16/2024
5.0.19 1,534 9/25/2023
5.0.18 1,278 9/7/2023
5.0.17 1,653 7/24/2023
5.0.16 1,411 7/23/2023
5.0.15 1,421 7/23/2023
5.0.14 1,470 7/23/2023
5.0.13 1,748 5/10/2023
5.0.12 1,298 5/10/2023
5.0.11 1,244 5/1/2023
5.0.10 1,522 4/30/2023
5.0.9 1,470 4/30/2023
5.0.8 1,280 4/30/2023
5.0.7 1,488 4/29/2023
5.0.6 1,628 4/26/2023
5.0.5 1,494 4/25/2023
5.0.4 1,343 4/25/2023
5.0.3 1,446 4/25/2023
5.0.2 1,640 4/25/2023
5.0.1 1,263 4/24/2023
4.1.8 1,556 4/18/2023
4.1.7 1,936 1/13/2023
4.1.6 1,278 1/13/2023
4.1.5 1,746 11/15/2022
4.1.4 1,585 11/13/2022
4.1.3 1,596 11/9/2022
4.1.2 1,597 11/8/2022
4.1.1 1,580 11/4/2022
4.1.0 1,541 10/27/2022
4.0.2 1,395 10/19/2022
3.2.96 1,724 10/13/2022
3.2.95 1,439 10/11/2022
3.2.94 1,767 10/11/2022
3.2.92 1,526 9/29/2022
3.2.91 1,755 9/29/2022
3.2.90 1,811 9/23/2022
3.2.89 1,713 9/21/2022
3.2.88 1,767 9/21/2022
3.2.87 1,665 9/20/2022
3.2.86 1,626 9/15/2022
3.2.85 1,384 9/15/2022
3.2.79 1,643 9/11/2022
3.2.78 1,454 9/7/2022
3.2.77 1,449 8/29/2022
3.2.76 1,609 8/19/2022
3.2.75 1,604 8/19/2022
3.2.74 1,677 8/13/2022
3.2.73 1,793 8/13/2022
3.2.72 1,659 8/12/2022
3.2.68 1,888 8/9/2022
3.2.67 1,660 8/8/2022
3.2.66 1,689 8/8/2022
3.2.65 1,926 8/8/2022
3.2.64 1,691 8/7/2022
3.2.63 1,800 8/3/2022
3.2.62 1,593 8/1/2022
3.2.61 1,864 7/29/2022
3.2.60 1,897 7/27/2022
3.2.59 1,512 7/27/2022
3.2.58 1,480 7/27/2022
3.2.57 1,709 7/25/2022
3.2.56 1,740 7/24/2022
3.2.55 1,814 7/23/2022
3.2.54 1,801 7/23/2022
3.2.53 1,693 7/23/2022
3.2.52 1,698 7/22/2022
3.2.51 1,803 7/22/2022
3.2.50 1,817 7/22/2022
3.2.49 1,665 7/22/2022
3.2.48 1,770 7/21/2022
3.2.47 1,782 7/21/2022
3.2.46 1,626 7/21/2022
3.2.45 1,883 7/21/2022
3.2.44 1,693 7/21/2022
3.2.43 1,598 7/21/2022
3.2.42 1,863 7/21/2022
3.2.41 1,874 7/21/2022
3.2.40 1,855 7/21/2022
3.2.39 1,842 7/20/2022
3.2.38 1,755 7/20/2022
3.2.37 1,824 7/20/2022
3.2.36 1,809 7/20/2022
3.2.35 2,120 7/20/2022
3.2.34 1,910 7/20/2022
3.2.33 1,812 7/20/2022
3.2.32 1,934 7/20/2022
3.2.31 1,814 7/20/2022
3.2.30 1,855 7/20/2022
3.2.29 1,914 7/20/2022
3.2.28 1,603 7/20/2022
3.2.27 1,945 7/20/2022
3.2.26 1,984 7/18/2022
3.2.25 1,978 7/8/2022
3.2.24 1,987 7/4/2022
3.2.23 1,873 7/4/2022
3.2.22 1,984 7/4/2022
3.2.21 1,941 7/4/2022
3.2.20 1,826 7/2/2022
3.2.19 1,966 7/2/2022
3.2.18 2,039 7/2/2022
3.2.17 1,911 7/2/2022
3.2.16 1,761 7/2/2022
3.2.15 2,149 7/2/2022
3.2.14 1,893 7/2/2022
3.2.13 2,032 7/2/2022
3.2.12 1,927 7/2/2022
3.2.11 1,941 7/2/2022
3.2.10 1,958 6/30/2022
3.2.2 1,919 6/28/2022
3.2.1 1,983 6/28/2022
3.2.0 1,932 6/27/2022
3.1.22 1,989 6/26/2022
3.1.21 1,978 6/26/2022
3.1.20 1,854 6/26/2022
3.1.19 1,991 6/26/2022
3.1.18 1,923 6/23/2022
3.1.17 2,031 5/26/2022
3.1.16 2,174 5/24/2022
3.1.14 2,272 5/6/2022
3.1.13 1,931 4/27/2022
3.1.12 2,232 4/27/2022
3.1.10 2,156 4/20/2022
3.1.9 2,019 4/19/2022
3.1.8 2,076 4/12/2022
3.1.7 2,089 4/12/2022
3.1.6 2,269 4/12/2022
3.1.5 2,160 4/11/2022
3.1.4 2,023 4/11/2022
3.1.3 2,143 4/10/2022
3.1.2 2,033 4/9/2022
3.1.1 1,920 4/9/2022
3.1.0 2,154 4/8/2022
3.0.0 2,346 4/8/2022
2.1.0 2,132 4/8/2022
2.0.0 2,259 4/8/2022
1.2.14 1,971 4/4/2022
1.2.13 2,101 4/3/2022
1.2.12 2,124 4/2/2022
1.2.11 2,016 4/2/2022
1.2.10 1,948 4/2/2022
1.2.9 2,107 3/31/2022
1.2.8 2,256 3/30/2022
1.2.7 2,174 3/30/2022
1.2.6 2,041 3/30/2022
1.2.5 2,143 3/30/2022
1.2.4 2,054 11/15/2021
1.2.3 2,181 11/15/2021
1.2.2 2,301 11/1/2021
1.2.1 2,022 11/1/2021
1.1.6 1,985 9/30/2021
1.1.5 2,376 9/21/2021
1.1.4 2,018 9/21/2021
1.1.3 2,217 9/21/2021
1.1.2 2,607 8/24/2021
1.1.1 1,995 8/24/2021
1.0.23 4,097 6/7/2021
1.0.22 2,192 5/10/2021
1.0.21 2,151 5/10/2021
1.0.19 2,310 4/23/2021
1.0.18 2,374 4/23/2021
1.0.17 2,243 4/23/2021
1.0.10 2,428 4/21/2021
1.0.9 2,349 4/21/2021
1.0.8 2,514 4/21/2021
1.0.7 2,546 4/21/2021
1.0.6 2,521 4/21/2021
1.0.4 2,548 4/21/2021
1.0.3 2,809 4/21/2021
1.0.2 2,547 4/21/2021
1.0.0 3,150 4/21/2021
0.2.0 2,633 4/8/2022
0.1.0 2,853 4/8/2022