Threenine.ApiResponse 2.0.13

dotnet add package Threenine.ApiResponse --version 2.0.13                
NuGet\Install-Package Threenine.ApiResponse -Version 2.0.13                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Threenine.ApiResponse" Version="2.0.13" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Threenine.ApiResponse --version 2.0.13                
#r "nuget: Threenine.ApiResponse, 2.0.13"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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 35 9/19/2024
2.0.0 61 9/15/2024
1.0.28 1,792 10/25/2023
1.0.26 4,381 11/27/2022
1.0.25 2,593 7/18/2022
1.0.24 422 7/17/2022
1.0.23 2,204 7/2/2022
1.0.22 408 6/30/2022
1.0.21 951 6/27/2022
1.0.20 525 6/10/2022
1.0.19 426 6/9/2022
1.0.18 1,071 6/3/2022
1.0.7 915 6/1/2022
1.0.6 464 5/21/2022
1.0.5 455 4/29/2022
1.0.4 470 4/27/2022
1.0.0 504 4/7/2022
0.2.0 451 4/7/2022
0.1.41 7,881 12/18/2021
0.1.37 4,849 11/13/2021
0.1.36 353 11/13/2021
0.1.35 327 11/12/2021
0.1.34 310 11/12/2021
0.1.33 297 11/12/2021
0.1.32 290 11/12/2021
0.1.31 316 11/12/2021
0.1.30 377 10/25/2021
0.1.29 391 10/18/2021
0.1.0 461 4/7/2022