APF.Core.Clean.Api
10.0.0.1
See the version list below for details.
dotnet add package APF.Core.Clean.Api --version 10.0.0.1
NuGet\Install-Package APF.Core.Clean.Api -Version 10.0.0.1
<PackageReference Include="APF.Core.Clean.Api" Version="10.0.0.1" />
<PackageVersion Include="APF.Core.Clean.Api" Version="10.0.0.1" />
<PackageReference Include="APF.Core.Clean.Api" />
paket add APF.Core.Clean.Api --version 10.0.0.1
#r "nuget: APF.Core.Clean.Api, 10.0.0.1"
#:package APF.Core.Clean.Api@10.0.0.1
#addin nuget:?package=APF.Core.Clean.Api&version=10.0.0.1
#tool nuget:?package=APF.Core.Clean.Api&version=10.0.0.1
Core.Clean.Api
Core.Clean.Api is a cross-cutting, feature-level package that provides API-level dependencies, pagination, authentication, routing, exception handling, and versioning configurations. It serves as a foundational package that can be used across multiple microservices to standardize API behavior.
Projects
src/Core.Clean.Api
- Core.Clean.Api
tests/Core.Clean.Api.Tests
- Core.Clean.Api.Tests
Purpose
- Centralizes API-related configurations such as routing, pagination, exception handling, authentication, and API versioning.
- Provides common services like
UserContextService, andTokenProvider. - Provides Action Filters for AccessRights and LogMethods.
- Provides Authentication handlers for ApiKey and JWT.
- Provides Exception handling middlewares.
- Standardizes API behavior for all microservices while avoiding duplication.
Features
- Routing & Constraints: Provides reusable route constraints for positive integers, non-empty strings, and valid GUIDs.
- Authentication: JWT and API Key authentication schemes configured with
TokenSettings. - Exception Handling: Registers global exception handler and problem details middleware.
- Context Services:
UserContextServicefor accessing user information. - Token Management:
TokenProviderandJsonWebTokenHelperfor managing JWT tokens. - API Versioning: Standardized versioning using header
x-versionwith error response support.
Getting Started
- Clone the repo
- Navigate to the root directory
- Run:
dotnet build
dotnet test
register database dependencies in a microservice
using Aurionpro.PaymentFramework.Core.Clean.Api.Extensions
var builder = WebApplication.CreateBuilder(args);
// Register common api dependencies
builder.Services.AddCoreCleanApi();
// Configure authentication
builder.Services.ConfigureAuthentication(builder.Configuration);
//Configure API versioning // default is 3.0
builder.Services.ConfigureApiVersioning(majorVersion:3,minorVersion:1)
| 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.Lambda.APIGatewayEvents (>= 2.7.1)
- APF.Core.Clean.Common (>= 10.0.0.1)
- Asp.Versioning.Mvc (>= 10.0.0)
- Asp.Versioning.Mvc.ApiExplorer (>= 10.0.0)
- AWSSDK.SecretsManager (>= 4.0.5.3)
- FluentValidation (>= 12.1.1)
- FluentValidation.AspNetCore (>= 11.3.0)
- Hashids.net (>= 1.7.0)
- Kralizek.Extensions.Configuration.AWSSecretsManager (>= 2.0.0)
- MediatR (>= 14.1.0)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 10.0.9)
- Microsoft.AspNetCore.OpenApi (>= 10.0.9)
- Microsoft.OpenApi (>= 2.9.0)
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 |
|---|---|---|
| 10.0.0.2-Beta-01 | 5 | 8/18/2026 |
| 10.0.0.1 | 234 | 8/14/2026 |
| 10.0.0.1-Beta-08 | 551 | 8/5/2026 |
| 10.0.0.1-Beta-07 | 94 | 8/5/2026 |
| 10.0.0.1-Beta-06 | 126 | 7/29/2026 |
| 10.0.0.1-Beta-05 | 100 | 7/21/2026 |
| 10.0.0.1-Beta-04 | 109 | 7/16/2026 |
| 10.0.0.1-Beta-03 | 82 | 7/16/2026 |
| 10.0.0.1-Beta-02 | 97 | 7/16/2026 |
| 8.0.0.16 | 81 | 8/11/2026 |
| 8.0.0.16-Beta-3 | 102 | 8/7/2026 |
| 8.0.0.16-Beta-2 | 204 | 7/15/2026 |
| 8.0.0.16-Beta-1 | 95 | 7/14/2026 |
| 8.0.0.15 | 320 | 7/10/2026 |
| 8.0.0.15-Beta-1 | 160 | 7/10/2026 |
| 8.0.0.14 | 163 | 7/9/2026 |
| 8.0.0.14-Beta-1 | 97 | 7/9/2026 |
| 8.0.0.13 | 300 | 6/25/2026 |
| 8.0.0.13-Beta-1 | 103 | 6/25/2026 |
| 8.0.0.12 | 344 | 6/25/2026 |
# Changelog
## 10.0.0.1 - 2026-08-14
- release package of version 10.0.0.01-Beta-08
## 10.0.0.01-Beta-08 - 2026-08-05
- updated AWSSDK.SecretsManager and Kralizek.Extensions.Configuration.AWSSecretsManager nuget versions
## 10.0.0.01-Beta-07 - 2026-08-05
- Added ASP.NET Core MVC support for API versioning (xversion)
- sln to slnx
## 10.0.0.01-Beta-06 - 2026-07-29
- PagedRequest related changes
## 10.0.0.01-Beta-05 - 2026-07-21
- corrected rbac logic for ally (changes in RBACActionFilter)
## 10.0.0.01-Beta-04 - 2026-07-16
- implemented a workaround for a known ASP.NET Core bug AddApiVersioning() corrupts the IProblemDetailsWriter registrations