Kodevy.Platform.API
3.0.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Kodevy.Platform.API --version 3.0.1
NuGet\Install-Package Kodevy.Platform.API -Version 3.0.1
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="Kodevy.Platform.API" Version="3.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Kodevy.Platform.API" Version="3.0.1" />
<PackageReference Include="Kodevy.Platform.API" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Kodevy.Platform.API --version 3.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Kodevy.Platform.API, 3.0.1"
#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.
#:package Kodevy.Platform.API@3.0.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Kodevy.Platform.API&version=3.0.1
#tool nuget:?package=Kodevy.Platform.API&version=3.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Kodevy Platform
Shared .NET 8 libraries for building microservices with Clean Architecture. These packages provide the foundational plumbing so your microservices stay consistent, production-ready, and free of boilerplate.
Packages
| Package | Description |
|---|---|
Kodevy.Platform.API |
API plumbing — middleware, JWT authentication, authorization, Swagger, health checks, Serilog integration |
Kodevy.Platform.Application |
Application layer primitives — API clients, configuration, current user service, request/response wrappers |
Kodevy.Platform.Domain |
Domain abstractions — auditable entity interfaces and base types |
Kodevy.Platform.Infra |
Infrastructure components — EF Core extensions (SQL Server, PostgreSQL), database providers, Serilog sinks |
Installation
dotnet add package Kodevy.Platform.API
dotnet add package Kodevy.Platform.Application
dotnet add package Kodevy.Platform.Domain
dotnet add package Kodevy.Platform.Infra
Install only the layers your project needs. In a Clean Architecture setup:
- API project —
Kodevy.Platform.API - Application project —
Kodevy.Platform.Application - Domain project —
Kodevy.Platform.Domain - Infrastructure project —
Kodevy.Platform.Infra
What's Included
Kodevy.Platform.API
- Global exception handling middleware
- Request context middleware
- JWT authentication strategy (configurable)
- Claims-based authorization strategy
- Swagger / OpenAPI configuration with JWT bearer support
- Health check extensions (including EF Core database checks)
- Serilog integration
Kodevy.Platform.Application
ApiClientBase— typed HTTP client with built-in auth token handlingApiResult/ServiceResponseWrapper/PaginatedResponseWrapper— standard response wrappersICurrentUserService— access to the current authenticated userIUnitOfWork— persistence contractBaseApplicationSettings/AuthConfiguration/JwtSettings— configuration models
Kodevy.Platform.Domain
IAuditableEntity— interface for entities with created/modified tracking
Kodevy.Platform.Infra
DatabaseConnection/DatabaseProvider— multi-provider database setup (SQL Server, PostgreSQL)AuditSaveChangesInterceptor— automatic audit field population on saveRelationalDatabaseExtensions— EF Core registration with environment-based migration behavior- Serilog database sinks (SQL Server, PostgreSQL)
Configuration
Authentication & Authorization
Configure in appsettings.json:
{
"AuthConfiguration": {
"AuthenticationStrategy": "Jwt",
"AuthorizationStrategy": "Claims"
},
"JwtSettings": {
"Secret": "your-secret-key",
"Issuer": "your-issuer",
"Audience": "your-audience"
}
}
Database
{
"DatabaseConfiguration": {
"Provider": "PostgreSQL",
"ConnectionString": "Host=localhost;Database=mydb;Username=user;Password=pass"
}
}
Supported providers: SqlServer, PostgreSQL
Migration behavior:
- Development — migrations are automatically applied on startup
- Production — migrations are not applied automatically. Set
RUN_MIGRATIONS_ONLY=trueto apply migrations and exit
Used By
These packages are consumed by microservices generated with the Kodevy Microservice Templates:
dotnet new install Kodevy.Templates.Microservice.Init
dotnet new kodevy-microservice-init \
--organization Contoso \
--system Platform \
--microservice Identity
License
MIT
| 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Kodevy.Platform.Application (>= 3.0.1)
- Kodevy.Platform.Infra (>= 3.0.1)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 8.0.8)
- Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore (>= 8.0.0)
- Microsoft.IdentityModel.JsonWebTokens (>= 8.1.1)
- Microsoft.IdentityModel.Protocols (>= 8.1.1)
- Microsoft.IdentityModel.Protocols.OpenIdConnect (>= 8.1.1)
- Microsoft.OpenApi (>= 1.6.14)
- Serilog (>= 4.3.0)
- Serilog.AspNetCore (>= 8.0.0)
- Swashbuckle.AspNetCore (>= 6.5.0)
- System.IdentityModel.Tokens.Jwt (>= 8.1.1)
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 |
|---|---|---|
| 4.4.1 | 103 | 8/18/2026 |
| 4.4.0 | 96 | 8/18/2026 |
| 4.3.1 | 151 | 4/6/2026 |
| 4.3.0 | 117 | 3/22/2026 |
| 4.2.2 | 131 | 3/16/2026 |
| 4.2.1 | 121 | 3/12/2026 |
| 4.2.0 | 110 | 3/12/2026 |
| 4.1.1 | 124 | 3/2/2026 |
| 4.1.0 | 114 | 3/2/2026 |
| 4.0.0 | 116 | 3/1/2026 |
| 3.0.1 | 127 | 2/8/2026 |
| 3.0.0 | 126 | 1/2/2026 |
| 2.1.0 | 180 | 12/26/2025 |
| 2.0.0 | 178 | 12/26/2025 |
| 1.0.0 | 206 | 12/24/2025 |