Hal.Core
10.0.0
dotnet add package Hal.Core --version 10.0.0
NuGet\Install-Package Hal.Core -Version 10.0.0
<PackageReference Include="Hal.Core" Version="10.0.0" />
<PackageVersion Include="Hal.Core" Version="10.0.0" />
<PackageReference Include="Hal.Core" />
paket add Hal.Core --version 10.0.0
#r "nuget: Hal.Core, 10.0.0"
#:package Hal.Core@10.0.0
#addin nuget:?package=Hal.Core&version=10.0.0
#tool nuget:?package=Hal.Core&version=10.0.0
Hal.Core
Hal.Core is a robust library designed to streamline the implementation of Hypertext Application Language (HAL) in .NET applications. It provides a foundation for creating HAL-compliant APIs, enhancing the readability and maintainability of your code.
Features
- Resource Building: Simplifies the creation of HAL resources with embedded links.
- Link Generation: Easily generate and manage hyperlinks within your resources.
- Collection Handling: Manage collections of resources effectively with built-in utilities.
- Extensibility: Customizable to fit various use cases.
Installation
Install the package via NuGet:
dotnet add package Hal.Core
Usage
Here's a basic example of how to use Hal.Core in your .NET application:
using Hal.Core;
var forecast = Enumerable.Range(1, 5).Select(index =>
new WeatherForecast
(
DateOnly.FromDateTime(DateTime.Now.AddDays(index)),
Random.Shared.Next(-20, 55),
summaries[Random.Shared.Next(summaries.Length)]
))
.ToArray();
var response = new ResourceCollectionBuilder<WeatherForecast, string>(forecast, "meta")
.AddLink(linkGenerator
.SetRouteName("GetWeatherForecast")
.Build())
.Build();
| Product | Versions 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. |
-
net10.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Hal.Core:
| Package | Downloads |
|---|---|
|
VHal.AspNetCore
VHal.AspNetCore provides ASP.NET Core extensions for implementing Hypertext Application Language (HAL) in web APIs. It includes: - ASP.NET Core Integration for creating HAL resources. - Request Handling within the HAL framework. - Resource Link Management for collections and individual resources. |
GitHub repositories
This package is not used by any popular GitHub repositories.