HoneyDrunk.Web.Rest.Abstractions 0.5.0

dotnet add package HoneyDrunk.Web.Rest.Abstractions --version 0.5.0
                    
NuGet\Install-Package HoneyDrunk.Web.Rest.Abstractions -Version 0.5.0
                    
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="HoneyDrunk.Web.Rest.Abstractions" Version="0.5.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="HoneyDrunk.Web.Rest.Abstractions" Version="0.5.0" />
                    
Directory.Packages.props
<PackageReference Include="HoneyDrunk.Web.Rest.Abstractions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add HoneyDrunk.Web.Rest.Abstractions --version 0.5.0
                    
#r "nuget: HoneyDrunk.Web.Rest.Abstractions, 0.5.0"
                    
#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.
#:package HoneyDrunk.Web.Rest.Abstractions@0.5.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=HoneyDrunk.Web.Rest.Abstractions&version=0.5.0
                    
Install as a Cake Addin
#tool nuget:?package=HoneyDrunk.Web.Rest.Abstractions&version=0.5.0
                    
Install as a Cake Tool

HoneyDrunk.Web.Rest.Abstractions

Pure contracts and constants for HoneyDrunk REST services. This library has no dependencies on ASP.NET Core or any runtime packages.

Contract Shapes

ApiResult / ApiResult<T>

Standard response envelope for successful operations:

{
  "status": "Success",
  "correlationId": "abc-123",
  "traceId": "00-abc123...",
  "timestamp": "2026-01-10T00:00:00Z",
  "data": { ... }
}

ApiErrorResponse

Standard error envelope for all non-2xx responses:

{
  "correlationId": "abc-123",
  "traceId": "00-abc123...",
  "timestamp": "2026-01-10T00:00:00Z",
  "error": {
    "code": "VALIDATION_FAILED",
    "message": "One or more validation errors occurred."
  },
  "validationErrors": [
    { "field": "email", "message": "Email is required." }
  ]
}

PageResult<T>

Paginated result set:

{
  "items": [...],
  "pageNumber": 1,
  "pageSize": 20,
  "totalCount": 100,
  "totalPages": 5,
  "hasPreviousPage": false,
  "hasNextPage": true
}

Constants

  • HeaderNames - Standard HTTP header names (X-Correlation-Id, X-Request-Id, etc.)
  • MediaTypes - Standard media types (application/json, etc.)
  • ApiErrorCode - Machine-readable error codes
  • RestTelemetryTags - Telemetry tag names for logging and tracing

Usage

Reference this package for contract definitions. Use HoneyDrunk.Web.Rest.AspNetCore for the actual middleware and filters.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on HoneyDrunk.Web.Rest.Abstractions:

Package Downloads
HoneyDrunk.Web.Rest.AspNetCore

ASP.NET Core integration for HoneyDrunk REST conventions. Provides middleware for correlation propagation, exception mapping, and request logging. Includes MVC filters for model validation, minimal API endpoint conventions, and JSON serialization defaults. Ensures consistent API responses across all services.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.5.0 105 5/18/2026
0.4.0 104 5/4/2026
0.3.0 116 4/25/2026
0.2.0 127 2/14/2026
0.1.0 123 1/12/2026

v0.5.0: Consolidated API result failure factories while preserving response contracts.