Slysoft.RestResource.AspNetCoreUtils 1.0.0-Beta

This is a prerelease version of Slysoft.RestResource.AspNetCoreUtils.
There is a newer prerelease version of this package available.
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                
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-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-Beta                
#r "nuget: Slysoft.RestResource.AspNetCoreUtils, 1.0.0-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-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 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. 
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.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.