Maple.Result.Extensions.AspNetCore
0.2.5
dotnet add package Maple.Result.Extensions.AspNetCore --version 0.2.5
NuGet\Install-Package Maple.Result.Extensions.AspNetCore -Version 0.2.5
<PackageReference Include="Maple.Result.Extensions.AspNetCore" Version="0.2.5" />
<PackageVersion Include="Maple.Result.Extensions.AspNetCore" Version="0.2.5" />
<PackageReference Include="Maple.Result.Extensions.AspNetCore" />
paket add Maple.Result.Extensions.AspNetCore --version 0.2.5
#r "nuget: Maple.Result.Extensions.AspNetCore, 0.2.5"
#:package Maple.Result.Extensions.AspNetCore@0.2.5
#addin nuget:?package=Maple.Result.Extensions.AspNetCore&version=0.2.5
#tool nuget:?package=Maple.Result.Extensions.AspNetCore&version=0.2.5
Maple.Result.Extensions.AspNetCore
Maps the Maple.Result to the HTTP response (ASP.NET Core version)
Project status: EARLY STAGE
Check also my libraries:
- Maple.Result,
- <i>Maple.Result.Extensions.Functions.Worker</i> (coming soon),
- Maple.Result.Extensions.HttpClient.
Give it a star ⭐
Do you like it? Show your support by giving this project a star!
Status
➡️ Basic mapping without configuration.<br/> 🔲 Integration tests.<br/> 🔲 Configuration passed as a parameter to the extension method.<br/> 🔲 Support for global configuration.<br/> 🔲 Support for multiple successful codes.<br/> 🔲 Support for Created (201) with Location header.<br/> 🔲 Documentation.
Example Error Response
Example
{
"type": "https://example.com/probs/out-of-credit",
"status": 400,
"title": "You do not have enough credit.",
"detail": "Your current balance is 30, but that costs 50.",
"instance": "/accounts/12345/msgs/abc",
"errors": [
{
"pointer": "#/age",
"detail": "must be a positive integer",
"detailTemplated": {
"messageId":"user.details.age.mustBePositive"
}
},
{
"pointer": "#/profile/colour",
"detail": "must be ‘green’, ‘red’ or ‘blue’",
"detailTemplated": {
"messageId": "user.profile.colour",
"params": {
"validValueIds": [
"user.profile.colour.green",
"user.profile.colour.red",
"user.profile.colour.blue"
]
}
}
}
],
"detailTemplated": {
"messageId": "user.account.balance.tooLow",
"params": {
"errorCode": "UAB17",
"accounts": [
{
"title": "Main (***9456)",
"url": "/accounts/12345"
},
{
"title": "Main (***3357)",
"url": "/accounts/67890"
}
],
"currentBalance": 30,
"requiredBalance": 50
}
}
}
See also
- Problem Details for HTTP APIs - RFC 7807 is dead, long live RFC 9457
- tag URI scheme
- RFC 1738: Uniform Resource Locators (URL)
- RFC 3986: Uniform Resource Identifier (URI): Generic Syntax
- RFC 4151: The 'tag' URI Scheme
- RFC 6901: JavaScript Object Notation (JSON) Pointer
- RFC 9457: Problem Details for HTTP APIs
Contribution
Please contact author: engineer(at sign)blumail(dot)me
| 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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. |
-
net10.0
- Maple.Result (>= 1.38.16)
-
net8.0
- Maple.Result (>= 1.38.16)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.