SlySoft.RestResource.AspNetCoreUtils 1.0.0.19-Beta

This is a prerelease version of SlySoft.RestResource.AspNetCoreUtils.
dotnet add package SlySoft.RestResource.AspNetCoreUtils --version 1.0.0.19-Beta                
NuGet\Install-Package SlySoft.RestResource.AspNetCoreUtils -Version 1.0.0.19-Beta                
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="SlySoft.RestResource.AspNetCoreUtils" Version="1.0.0.19-Beta" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SlySoft.RestResource.AspNetCoreUtils --version 1.0.0.19-Beta                
#r "nuget: SlySoft.RestResource.AspNetCoreUtils, 1.0.0.19-Beta"                
#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 SlySoft.RestResource.AspNetCoreUtils as a Cake Addin
#addin nuget:?package=SlySoft.RestResource.AspNetCoreUtils&version=1.0.0.19-Beta&prerelease

// Install SlySoft.RestResource.AspNetCoreUtils as a Cake Tool
#tool nuget:?package=SlySoft.RestResource.AspNetCoreUtils&version=1.0.0.19-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.Hal, 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 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.

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.19-Beta 36 11/27/2024
1.0.0.18-Beta 64 11/22/2024
1.0.0.17-Beta 33 11/17/2024
1.0.0.15-Beta 89 11/1/2024
1.0.0.14-Beta 38 11/1/2024
1.0.0.13-Beta 35 11/1/2024
1.0.0.12-Beta 39 11/1/2024
1.0.0.9-Beta 62 10/19/2024
1.0.0.8-Beta 90 10/9/2024
1.0.0-Beta 102 7/13/2023

This is a beta version.