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 | 77 | 9/19/2024 |
2.0.0 | 94 | 9/15/2024 |
1.0.28 | 2,086 | 10/25/2023 |
1.0.26 | 4,405 | 11/27/2022 |
1.0.25 | 2,627 | 7/18/2022 |
1.0.24 | 442 | 7/17/2022 |
1.0.23 | 2,293 | 7/2/2022 |
1.0.22 | 435 | 6/30/2022 |
1.0.21 | 1,021 | 6/27/2022 |
1.0.20 | 548 | 6/10/2022 |
1.0.19 | 433 | 6/9/2022 |
1.0.18 | 1,123 | 6/3/2022 |
1.0.7 | 964 | 6/1/2022 |
1.0.6 | 484 | 5/21/2022 |
1.0.5 | 476 | 4/29/2022 |
1.0.4 | 494 | 4/27/2022 |
1.0.0 | 525 | 4/7/2022 |
0.2.0 | 471 | 4/7/2022 |
0.1.41 | 7,951 | 12/18/2021 |
0.1.37 | 4,903 | 11/13/2021 |
0.1.36 | 360 | 11/13/2021 |
0.1.35 | 349 | 11/12/2021 |
0.1.34 | 331 | 11/12/2021 |
0.1.33 | 322 | 11/12/2021 |
0.1.32 | 312 | 11/12/2021 |
0.1.31 | 337 | 11/12/2021 |
0.1.30 | 386 | 10/25/2021 |
0.1.29 | 414 | 10/18/2021 |
0.1.0 | 484 | 4/7/2022 |