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 | 75 | 9/19/2024 |
2.0.0 | 92 | 9/15/2024 |
1.0.28 | 2,082 | 10/25/2023 |
1.0.26 | 4,401 | 11/27/2022 |
1.0.25 | 2,624 | 7/18/2022 |
1.0.24 | 440 | 7/17/2022 |
1.0.23 | 2,291 | 7/2/2022 |
1.0.22 | 433 | 6/30/2022 |
1.0.21 | 1,019 | 6/27/2022 |
1.0.20 | 546 | 6/10/2022 |
1.0.19 | 431 | 6/9/2022 |
1.0.18 | 1,121 | 6/3/2022 |
1.0.7 | 962 | 6/1/2022 |
1.0.6 | 482 | 5/21/2022 |
1.0.5 | 474 | 4/29/2022 |
1.0.4 | 492 | 4/27/2022 |
1.0.0 | 523 | 4/7/2022 |
0.2.0 | 469 | 4/7/2022 |
0.1.41 | 7,949 | 12/18/2021 |
0.1.37 | 4,901 | 11/13/2021 |
0.1.36 | 358 | 11/13/2021 |
0.1.35 | 347 | 11/12/2021 |
0.1.34 | 329 | 11/12/2021 |
0.1.33 | 320 | 11/12/2021 |
0.1.32 | 310 | 11/12/2021 |
0.1.31 | 335 | 11/12/2021 |
0.1.30 | 384 | 10/25/2021 |
0.1.29 | 412 | 10/18/2021 |
0.1.0 | 482 | 4/7/2022 |