Slysoft.RestResource.AspNetCoreUtils
1.0.0-Beta
See the version list below for details.
dotnet add package Slysoft.RestResource.AspNetCoreUtils --version 1.0.0-Beta
NuGet\Install-Package Slysoft.RestResource.AspNetCoreUtils -Version 1.0.0-Beta
<PackageReference Include="Slysoft.RestResource.AspNetCoreUtils" Version="1.0.0-Beta" />
paket add Slysoft.RestResource.AspNetCoreUtils --version 1.0.0-Beta
#r "nuget: Slysoft.RestResource.AspNetCoreUtils, 1.0.0-Beta"
// Install Slysoft.RestResource.AspNetCoreUtils as a Cake Addin #addin nuget:?package=Slysoft.RestResource.AspNetCoreUtils&version=1.0.0-Beta&prerelease // Install Slysoft.RestResource.AspNetCoreUtils as a Cake Tool #tool nuget:?package=Slysoft.RestResource.AspNetCoreUtils&version=1.0.0-Beta&prerelease
RestResource.AspNetCoreUtils
Utility for returning RestResource objects from controller methods respecting the Accept header of the request
Getting started
Install from Nuget.Org, and add the following in the start up code:
builder.Services.AddControllers(options => {
options.OutputFormatters.Insert(0, new ResourceHalJsonFormatter());
options.OutputFormatters.Insert(1, new ResourceHalXmlFormatter());
options.OutputFormatters.Insert(2, new ResourceHtmlFormatter());
options.RespectBrowserAcceptHeader = true;
});
Prerequisites
Requires Slysoft.RestResource, Slysoft.RestResource.HalJson, SlySoft.RestResource.HalXml, and SlySoft.RestResource.Html Slysoft.RestResource.Client contains utilities for communicating with web services created using RestResource
Usage
Find examples of how to use RestResource.AspNetCoreUtils at my blog.
Additional documentation
More comprehensive documentation is also at my blog.
Feedback
Contact me for questions, issuess, or collaboration at sylvesterjj@gmail.com
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
-
net6.0
- Microsoft.AspNetCore.Mvc (>= 2.2.0)
- Slysoft.RestResource (>= 1.0.0-Beta)
- Slysoft.RestResource.HalJson (>= 1.0.0-Beta)
- Slysoft.RestResource.HalXml (>= 1.0.0-Beta)
- Slysoft.RestResource.Html (>= 1.0.0-Beta)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0.15-Beta | 54 | 11/1/2024 |
1.0.0.14-Beta | 31 | 11/1/2024 |
1.0.0.13-Beta | 30 | 11/1/2024 |
1.0.0.12-Beta | 34 | 11/1/2024 |
1.0.0.9-Beta | 58 | 10/19/2024 |
1.0.0.8-Beta | 85 | 10/9/2024 |
1.0.0-Beta | 98 | 7/13/2023 |
This is a beta version.