Anarchy.Toolkit.Web
1.0.3
See the version list below for details.
dotnet add package Anarchy.Toolkit.Web --version 1.0.3
NuGet\Install-Package Anarchy.Toolkit.Web -Version 1.0.3
<PackageReference Include="Anarchy.Toolkit.Web" Version="1.0.3" />
<PackageVersion Include="Anarchy.Toolkit.Web" Version="1.0.3" />
<PackageReference Include="Anarchy.Toolkit.Web" />
paket add Anarchy.Toolkit.Web --version 1.0.3
#r "nuget: Anarchy.Toolkit.Web, 1.0.3"
#:package Anarchy.Toolkit.Web@1.0.3
#addin nuget:?package=Anarchy.Toolkit.Web&version=1.0.3
#tool nuget:?package=Anarchy.Toolkit.Web&version=1.0.3
Anarchy.Toolkit.Web
Shared ASP.NET Core REST API pipeline and presentation helpers.
dotnet add package Anarchy.Toolkit.Web
- Build an API using
RestApiWebAppStartupBaseand the web entry-point bases for native hosting or AWS Lambda. - Compose the supplied middleware, authentication, Swagger, JSON converters and validation attributes around your application's endpoints.
- A health controller exposes the shared health-report model. Application-specific scopes and endpoints remain in the consumer.
When to use it
Use this package to host a toolkit-based REST API on ASP.NET Core or AWS Lambda while sharing startup, authentication, health and error-handling conventions. It supplies infrastructure around your endpoints; it does not define your application's API contracts or business logic.
How to use it
- Define application settings and a settings module, then derive a startup from
RestApiWebAppStartupBase<TAppSettingsDiModule, TAppSettings>. Register your services and configure authorization scopes in its service-configuration hook. - Implement controllers with explicit request/response types and call application services rather than database repositories directly. Keep transport DTOs separate from domain entities.
- Supply the
IReadOnlyCollection<IServiceHealthReport>consumed by the health controller, using an empty collection if there are no checks or registering the relevant provider reports. - Use
WebAppEntryPoint.RunWebHost<Startup>(args)for a native host and anAwsWebAppEntryPointBaseimplementation for Lambda. Configure real authentication, secrets and environment-specific settings before deployment.
The sample API startup, native entry point and Lambda entry point show the complete structure. Test the HTTP pipeline with Testing.Web.
See the endpoint guide, API sample and toolkit overview.
Releases
1.0.3
- build: migrate local automation to NUKE
1.0.2
- docs: expand package guides and release histories
- chore(deps): update AWS, Polly, and xUnit packages
1.0.1
- Added a package-specific NuGet README.
1.0.0
- Introduced API hosting, controller and middleware infrastructure, authentication, Swagger and Lambda hosting helpers.
| 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
- Amazon.Extensions.Configuration.SystemsManager (>= 7.1.1)
- Amazon.Lambda.APIGatewayEvents (>= 3.0.1)
- Amazon.Lambda.AspNetCoreServer (>= 10.3.1)
- Amazon.Lambda.Core (>= 3.4.0)
- Anarchy.Toolkit.Core.Health (>= 1.0.3)
- Anarchy.Toolkit.Core.Persistence.Abstractions (>= 1.0.3)
- Anarchy.Toolkit.Hosting (>= 1.0.3)
- Anarchy.Toolkit.Infrastructure.Http (>= 1.0.3)
- AWSSDK.Core (>= 4.0.102.19)
- AWSSDK.Extensions.NETCore.Setup (>= 4.0.102.10)
- AWSSDK.KeyManagementService (>= 4.0.101.4)
- AWSSDK.SecretsManager (>= 4.0.100.25)
- Humanizer (>= 3.0.10)
- IdentityServer4.AccessTokenValidation (>= 3.0.1)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 10.0.14)
- Microsoft.AspNetCore.Mvc.NewtonsoftJson (>= 10.0.14)
- Microsoft.Extensions.Hosting.Systemd (>= 10.0.14)
- Microsoft.Identity.Client (>= 4.92.0)
- Microsoft.IdentityModel.JsonWebTokens (>= 8.23.0)
- Microsoft.OpenApi (= 2.12.2)
- Newtonsoft.Json (>= 13.0.4)
- Serilog (>= 4.4.0)
- Serilog.Sinks.Console (>= 6.1.1)
- Swashbuckle.AspNetCore (>= 10.3.1)
- System.IdentityModel.Tokens.Jwt (>= 8.23.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Anarchy.Toolkit.Web:
| Package | Downloads |
|---|---|
|
Anarchy.Toolkit.Web.Ui
Blazor UI pipeline: cookie-session OAuth login, environment catalog, downstream API client base, and reusable components (notifications, modals, JSON viewer, pagination). |
|
|
Anarchy.Toolkit.Testing.Web
Web end-to-end test base (RestApiTestCaseBase exercising both the native Kestrel and AWS Lambda pipelines), a testable Lambda entry point, and HTTP request helpers. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial release.