Threenine.ApiResponse
2.0.13
dotnet add package Threenine.ApiResponse --version 2.0.13
NuGet\Install-Package Threenine.ApiResponse -Version 2.0.13
<PackageReference Include="Threenine.ApiResponse" Version="2.0.13" />
paket add Threenine.ApiResponse --version 2.0.13
#r "nuget: Threenine.ApiResponse, 2.0.13"
// Install Threenine.ApiResponse as a Cake Addin #addin nuget:?package=Threenine.ApiResponse&version=2.0.13 // Install Threenine.ApiResponse as a Cake Tool #tool nuget:?package=Threenine.ApiResponse&version=2.0.13
API Response
A simple elegant library to handle returning responses from Mediator handlers back to REST API handlers implementing the Operation Result pattern.
Often when developing public or internal REST API's it's best to define a standard structure and format of your response objects. The primary reason behind this is two-fold, the most important being that you want to simplify the cognitive load required for users to become familiar and use your API. Secondly, it will be easier for your developers to implement various API calls, because they know exactly what is required and they then only have to focus on the business logic implementation.
When implementing a Vertical Slice Architecture and REPR pattern and relying on a Mediatr or another Mediator pattern implementation pattern you will often need to inform your REST Endpoint of whether a handler action was successful or not and also include sanitised error information to the client.
The Operation Result pattern
The role of the Operation Result pattern is to give an operation the possibility to return a complex result that describes whether the operation was successful and that can contain more information, like an actual result.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- No dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Threenine.ApiResponse:
Package | Downloads |
---|---|
Threenine.DataService
Basic Crud Application Service |
|
Kingsbridge.Services
Package Description |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Threenine.ApiResponse:
Repository | Stars |
---|---|
threenine/api-template
API Template pack provides an opinionated implementation guide to making use of popular leading .net framework based tools and utilities to assist developers to quickly and efficiently develop secure, stable and resilient REST API’s.
|
Version | Downloads | Last updated |
---|---|---|
2.0.13 | 74 | 9/19/2024 |
2.0.0 | 91 | 9/15/2024 |
1.0.28 | 2,079 | 10/25/2023 |
1.0.26 | 4,400 | 11/27/2022 |
1.0.25 | 2,619 | 7/18/2022 |
1.0.24 | 439 | 7/17/2022 |
1.0.23 | 2,288 | 7/2/2022 |
1.0.22 | 432 | 6/30/2022 |
1.0.21 | 1,018 | 6/27/2022 |
1.0.20 | 545 | 6/10/2022 |
1.0.19 | 430 | 6/9/2022 |
1.0.18 | 1,120 | 6/3/2022 |
1.0.7 | 961 | 6/1/2022 |
1.0.6 | 481 | 5/21/2022 |
1.0.5 | 473 | 4/29/2022 |
1.0.4 | 491 | 4/27/2022 |
1.0.0 | 522 | 4/7/2022 |
0.2.0 | 468 | 4/7/2022 |
0.1.41 | 7,948 | 12/18/2021 |
0.1.37 | 4,900 | 11/13/2021 |
0.1.36 | 357 | 11/13/2021 |
0.1.35 | 346 | 11/12/2021 |
0.1.34 | 328 | 11/12/2021 |
0.1.33 | 319 | 11/12/2021 |
0.1.32 | 309 | 11/12/2021 |
0.1.31 | 334 | 11/12/2021 |
0.1.30 | 383 | 10/25/2021 |
0.1.29 | 411 | 10/18/2021 |
0.1.0 | 481 | 4/7/2022 |