SlySoft.RestResource.AspNetCoreUtils
1.0.0.17-Beta
See the version list below for details.
dotnet add package SlySoft.RestResource.AspNetCoreUtils --version 1.0.0.17-Beta
NuGet\Install-Package SlySoft.RestResource.AspNetCoreUtils -Version 1.0.0.17-Beta
<PackageReference Include="SlySoft.RestResource.AspNetCoreUtils" Version="1.0.0.17-Beta" />
paket add SlySoft.RestResource.AspNetCoreUtils --version 1.0.0.17-Beta
#r "nuget: SlySoft.RestResource.AspNetCoreUtils, 1.0.0.17-Beta"
// Install SlySoft.RestResource.AspNetCoreUtils as a Cake Addin #addin nuget:?package=SlySoft.RestResource.AspNetCoreUtils&version=1.0.0.17-Beta&prerelease // Install SlySoft.RestResource.AspNetCoreUtils as a Cake Tool #tool nuget:?package=SlySoft.RestResource.AspNetCoreUtils&version=1.0.0.17-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 | 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. |
-
net8.0
- Microsoft.AspNetCore.Mvc (>= 2.2.0)
- SlySoft.RestResource.Html (>= 1.0.0.15-Beta)
- SlySoft.RestResource.Serializers (>= 1.0.0.17-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.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.