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 98 9/19/2024
2.0.0 100 9/15/2024
1.0.28 2,285 10/25/2023
1.0.26 4,414 11/27/2022
1.0.25 2,636 7/18/2022
1.0.24 444 7/17/2022
1.0.23 2,302 7/2/2022
1.0.22 437 6/30/2022
1.0.21 1,023 6/27/2022
1.0.20 550 6/10/2022
1.0.19 435 6/9/2022
1.0.18 1,125 6/3/2022
1.0.7 966 6/1/2022
1.0.6 486 5/21/2022
1.0.5 478 4/29/2022
1.0.4 496 4/27/2022
1.0.0 527 4/7/2022
0.2.0 473 4/7/2022
0.1.41 7,953 12/18/2021
0.1.37 4,905 11/13/2021
0.1.36 362 11/13/2021
0.1.35 351 11/12/2021
0.1.34 333 11/12/2021
0.1.33 324 11/12/2021
0.1.32 314 11/12/2021
0.1.31 339 11/12/2021
0.1.30 388 10/25/2021
0.1.29 416 10/18/2021
0.1.0 486 4/7/2022