Threenine.ApiProject
3.2.38
See the version list below for details.
dotnet new install Threenine.ApiProject::3.2.38
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,751 | 1/20/2024 |
6.0.19 | 944 | 1/20/2024 |
6.0.18 | 1,059 | 1/20/2024 |
6.0.17 | 940 | 1/18/2024 |
6.0.16 | 1,033 | 1/18/2024 |
6.0.15 | 760 | 1/18/2024 |
6.0.14 | 953 | 1/18/2024 |
6.0.13 | 846 | 1/18/2024 |
6.0.12 | 911 | 1/18/2024 |
6.0.11 | 1,022 | 1/17/2024 |
6.0.10 | 935 | 1/17/2024 |
6.0.8 | 956 | 1/17/2024 |
6.0.7 | 983 | 1/16/2024 |
6.0.6 | 1,072 | 1/16/2024 |
6.0.5 | 1,000 | 1/16/2024 |
5.0.19 | 1,847 | 9/25/2023 |
5.0.18 | 1,548 | 9/7/2023 |
5.0.17 | 1,882 | 7/24/2023 |
5.0.16 | 1,617 | 7/23/2023 |
5.0.15 | 1,684 | 7/23/2023 |
5.0.14 | 1,797 | 7/23/2023 |
5.0.13 | 2,037 | 5/10/2023 |
5.0.12 | 1,472 | 5/10/2023 |
5.0.11 | 1,537 | 5/1/2023 |
5.0.10 | 1,881 | 4/30/2023 |
5.0.9 | 1,682 | 4/30/2023 |
5.0.8 | 1,568 | 4/30/2023 |
5.0.7 | 1,750 | 4/29/2023 |
5.0.6 | 1,916 | 4/26/2023 |
5.0.5 | 1,749 | 4/25/2023 |
5.0.4 | 1,677 | 4/25/2023 |
5.0.3 | 1,732 | 4/25/2023 |
5.0.2 | 1,847 | 4/25/2023 |
5.0.1 | 1,534 | 4/24/2023 |
4.1.8 | 1,798 | 4/18/2023 |
4.1.7 | 2,218 | 1/13/2023 |
4.1.6 | 1,465 | 1/13/2023 |
4.1.5 | 1,954 | 11/15/2022 |
4.1.4 | 1,804 | 11/13/2022 |
4.1.3 | 1,904 | 11/9/2022 |
4.1.2 | 1,948 | 11/8/2022 |
4.1.1 | 1,847 | 11/4/2022 |
4.1.0 | 1,835 | 10/27/2022 |
4.0.2 | 1,620 | 10/19/2022 |
3.2.96 | 1,988 | 10/13/2022 |
3.2.95 | 1,660 | 10/11/2022 |
3.2.94 | 2,066 | 10/11/2022 |
3.2.92 | 1,853 | 9/29/2022 |
3.2.91 | 1,921 | 9/29/2022 |
3.2.90 | 2,122 | 9/23/2022 |
3.2.89 | 1,981 | 9/21/2022 |
3.2.88 | 2,042 | 9/21/2022 |
3.2.87 | 1,957 | 9/20/2022 |
3.2.86 | 1,896 | 9/15/2022 |
3.2.85 | 1,551 | 9/15/2022 |
3.2.79 | 1,812 | 9/11/2022 |
3.2.78 | 1,669 | 9/7/2022 |
3.2.77 | 1,718 | 8/29/2022 |
3.2.76 | 1,833 | 8/19/2022 |
3.2.75 | 1,866 | 8/19/2022 |
3.2.74 | 1,920 | 8/13/2022 |
3.2.73 | 2,022 | 8/13/2022 |
3.2.72 | 1,868 | 8/12/2022 |
3.2.68 | 2,126 | 8/9/2022 |
3.2.67 | 1,846 | 8/8/2022 |
3.2.66 | 1,938 | 8/8/2022 |
3.2.65 | 2,208 | 8/8/2022 |
3.2.64 | 2,009 | 8/7/2022 |
3.2.63 | 2,168 | 8/3/2022 |
3.2.62 | 1,804 | 8/1/2022 |
3.2.61 | 2,155 | 7/29/2022 |
3.2.60 | 2,146 | 7/27/2022 |
3.2.59 | 1,758 | 7/27/2022 |
3.2.58 | 1,778 | 7/27/2022 |
3.2.57 | 2,008 | 7/25/2022 |
3.2.56 | 1,908 | 7/24/2022 |
3.2.55 | 2,103 | 7/23/2022 |
3.2.54 | 2,041 | 7/23/2022 |
3.2.53 | 2,021 | 7/23/2022 |
3.2.52 | 1,943 | 7/22/2022 |
3.2.51 | 2,033 | 7/22/2022 |
3.2.50 | 1,969 | 7/22/2022 |
3.2.49 | 2,054 | 7/22/2022 |
3.2.48 | 2,035 | 7/21/2022 |
3.2.47 | 2,109 | 7/21/2022 |
3.2.46 | 1,866 | 7/21/2022 |
3.2.45 | 2,132 | 7/21/2022 |
3.2.44 | 1,976 | 7/21/2022 |
3.2.43 | 1,849 | 7/21/2022 |
3.2.42 | 2,141 | 7/21/2022 |
3.2.41 | 2,150 | 7/21/2022 |
3.2.40 | 2,109 | 7/21/2022 |
3.2.39 | 2,175 | 7/20/2022 |
3.2.38 | 1,988 | 7/20/2022 |
3.2.37 | 2,131 | 7/20/2022 |
3.2.36 | 2,144 | 7/20/2022 |
3.2.35 | 2,433 | 7/20/2022 |
3.2.34 | 2,173 | 7/20/2022 |
3.2.33 | 2,074 | 7/20/2022 |
3.2.32 | 2,196 | 7/20/2022 |
3.2.31 | 2,076 | 7/20/2022 |
3.2.30 | 2,090 | 7/20/2022 |
3.2.29 | 2,163 | 7/20/2022 |
3.2.28 | 1,942 | 7/20/2022 |
3.2.27 | 2,148 | 7/20/2022 |
3.2.26 | 2,252 | 7/18/2022 |
3.2.25 | 2,301 | 7/8/2022 |
3.2.24 | 2,281 | 7/4/2022 |
3.2.23 | 2,110 | 7/4/2022 |
3.2.22 | 2,264 | 7/4/2022 |
3.2.21 | 2,274 | 7/4/2022 |
3.2.20 | 2,090 | 7/2/2022 |
3.2.19 | 2,245 | 7/2/2022 |
3.2.18 | 2,236 | 7/2/2022 |
3.2.17 | 2,242 | 7/2/2022 |
3.2.16 | 1,942 | 7/2/2022 |
3.2.15 | 2,441 | 7/2/2022 |
3.2.14 | 2,094 | 7/2/2022 |
3.2.13 | 2,343 | 7/2/2022 |
3.2.12 | 2,324 | 7/2/2022 |
3.2.11 | 2,274 | 7/2/2022 |
3.2.10 | 2,308 | 6/30/2022 |
3.2.2 | 2,327 | 6/28/2022 |
3.2.1 | 2,350 | 6/28/2022 |
3.2.0 | 2,158 | 6/27/2022 |
3.1.22 | 2,283 | 6/26/2022 |
3.1.21 | 2,251 | 6/26/2022 |
3.1.20 | 2,203 | 6/26/2022 |
3.1.19 | 2,239 | 6/26/2022 |
3.1.18 | 2,160 | 6/23/2022 |
3.1.17 | 2,279 | 5/26/2022 |
3.1.16 | 2,540 | 5/24/2022 |
3.1.14 | 2,535 | 5/6/2022 |
3.1.13 | 2,355 | 4/27/2022 |
3.1.12 | 2,542 | 4/27/2022 |
3.1.10 | 2,470 | 4/20/2022 |
3.1.9 | 2,310 | 4/19/2022 |
3.1.8 | 2,384 | 4/12/2022 |
3.1.7 | 2,363 | 4/12/2022 |
3.1.6 | 2,635 | 4/12/2022 |
3.1.5 | 2,429 | 4/11/2022 |
3.1.4 | 2,414 | 4/11/2022 |
3.1.3 | 2,471 | 4/10/2022 |
3.1.2 | 2,333 | 4/9/2022 |
3.1.1 | 2,192 | 4/9/2022 |
3.1.0 | 2,412 | 4/8/2022 |
3.0.0 | 2,588 | 4/8/2022 |
2.1.0 | 2,428 | 4/8/2022 |
2.0.0 | 2,572 | 4/8/2022 |
1.2.14 | 2,264 | 4/4/2022 |
1.2.13 | 2,392 | 4/3/2022 |
1.2.12 | 2,454 | 4/2/2022 |
1.2.11 | 2,335 | 4/2/2022 |
1.2.10 | 2,275 | 4/2/2022 |
1.2.9 | 2,477 | 3/31/2022 |
1.2.8 | 2,581 | 3/30/2022 |
1.2.7 | 2,541 | 3/30/2022 |
1.2.6 | 2,323 | 3/30/2022 |
1.2.5 | 2,428 | 3/30/2022 |
1.2.4 | 2,382 | 11/15/2021 |
1.2.3 | 2,578 | 11/15/2021 |
1.2.2 | 2,640 | 11/1/2021 |
1.2.1 | 2,378 | 11/1/2021 |
1.1.6 | 2,215 | 9/30/2021 |
1.1.5 | 2,650 | 9/21/2021 |
1.1.4 | 2,312 | 9/21/2021 |
1.1.3 | 2,506 | 9/21/2021 |
1.1.2 | 2,881 | 8/24/2021 |
1.1.1 | 2,330 | 8/24/2021 |
1.0.23 | 4,472 | 6/7/2021 |
1.0.22 | 2,619 | 5/10/2021 |
1.0.21 | 2,418 | 5/10/2021 |
1.0.19 | 2,640 | 4/23/2021 |
1.0.18 | 2,783 | 4/23/2021 |
1.0.17 | 2,597 | 4/23/2021 |
1.0.10 | 2,741 | 4/21/2021 |
1.0.9 | 2,728 | 4/21/2021 |
1.0.8 | 2,902 | 4/21/2021 |
1.0.7 | 2,882 | 4/21/2021 |
1.0.6 | 2,916 | 4/21/2021 |
1.0.4 | 2,816 | 4/21/2021 |
1.0.3 | 3,157 | 4/21/2021 |
1.0.2 | 2,998 | 4/21/2021 |
1.0.0 | 3,544 | 4/21/2021 |
0.2.0 | 3,056 | 4/8/2022 |
0.1.0 | 3,280 | 4/8/2022 |