Archetypical.Software.Vega.Api.Abstractions
2.9.0
dotnet add package Archetypical.Software.Vega.Api.Abstractions --version 2.9.0
NuGet\Install-Package Archetypical.Software.Vega.Api.Abstractions -Version 2.9.0
<PackageReference Include="Archetypical.Software.Vega.Api.Abstractions" Version="2.9.0" />
<PackageVersion Include="Archetypical.Software.Vega.Api.Abstractions" Version="2.9.0" />
<PackageReference Include="Archetypical.Software.Vega.Api.Abstractions" />
paket add Archetypical.Software.Vega.Api.Abstractions --version 2.9.0
#r "nuget: Archetypical.Software.Vega.Api.Abstractions, 2.9.0"
#:package Archetypical.Software.Vega.Api.Abstractions@2.9.0
#addin nuget:?package=Archetypical.Software.Vega.Api.Abstractions&version=2.9.0
#tool nuget:?package=Archetypical.Software.Vega.Api.Abstractions&version=2.9.0
Archetypical.Software.Vega.Api.Abstractions
Base controllers, dependency injection helpers, and common abstractions for building ASP.NET Core APIs, often used with Dapr.
Overview
This package provides a set of tools and conventions to accelerate the development of robust, observable, and configurable web APIs. It includes:
- Simplified application setup (
CreateVegaApi,UseVegaApiDefaults). - Base DbContext (
VegaDbContext) with multi-provider support. - Integrated Dapr features (Distributed Cache, Remote Configuration).
- JWT bearer validation against OIDC discovery, enabled by default.
- Configuration options (
VegaApiOptions) to easily enable/disable features like OData, Swagger, OpenTelemetry, Health Checks, etc. - Standardized configuration loading from
appsettings.jsonand environment variables.
Installation
Install the package via NuGet:
# .NET CLI
dotnet add package Archetypical.Software.Vega.Api.Abstractions
# Package Manager
Install-Package Archetypical.Software.Vega.Api.Abstractions
You will also likely need packages for the features you intend to use, such as:
Microsoft.EntityFrameworkCore.SqlServer/Npgsql.EntityFrameworkCore.PostgreSQL/ etc. (for DbContext)Dapr.AspNetCore(for Dapr integration)Swashbuckle.AspNetCore(for Swagger, often included by default)OpenTelemetry.Extensions.Hosting/OpenTelemetry.Instrumentation.AspNetCore/ etc. (for OpenTelemetry)
Basic Usage (Program.cs)
using Archetypical.Software.Vega.Api.Abstractions;
var builder = VegaApiApplication.CreateVegaApi(options =>
{
options.ServiceName = "MyMicroservice";
options.ServiceDescription = "Provides core business logic.";
// Local-only example:
// options.TurnOff.Authentication = true;
options.HealthChecks = healthChecksBuilder =>
{
// healthChecksBuilder.AddCheck<MyCustomHealthCheck>("custom_check");
return healthChecksBuilder;
};
}, args);
// builder.Services.AddScoped<IMyService, MyService>();
var app = builder.Build();
app.UseVegaApiDefaults();
app.Run();
Authentication in Vega, ELI5
By default, Vega services expect callers to send a Bearer JWT. The service downloads public signing keys from the configured OIDC authority, verifies the token signature/lifetime/issuer, and requires a tenant claim named TenantId or tenant_id.
The default dev authority is:
https://idp.dev.archetypical.ai/oidc/
For local tests or throwaway development without tokens, turn authentication off explicitly:
$env:VEGA__API__TurnOff__Authentication="true"
When authentication is enabled, controllers and /db/schema-info plus /db/query require authenticated users. /healthz and /readyz stay anonymous so probes keep working. Injected HttpClient instances forward the inbound bearer token by default.
Documentation
For detailed information on configuration and features, please refer to the documentation in the docs folder:
Key areas include:
- Configuring
VegaApiOptions - Using
CreateVegaApiandUseVegaApiDefaults - Configuration via
appsettings.jsonand Environment Variables - Authentication
- Using
VegaDbContext - Dapr Distributed Cache
- Remote Configuration
Building From Source (Contributors)
See docs/building.md for restoring, building, and
testing this repository, including the src/Directory.Build.props
build-output path convention used to avoid Windows MAX_PATH issues.
Contributing
[Details on contributing, code of conduct, etc.]
License
[License information]
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. 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 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
- Archetypical.Software.Configuration.Manager (>= 0.4.3)
- AspNetCore.HealthChecks.ApplicationStatus (>= 9.0.0)
- AspNetCore.HealthChecks.Dapr (>= 9.0.0)
- Dapr.AspNetCore (>= 1.18.5)
- EntityFrameworkCore.ClickHouse (>= 3.0.3)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 10.0.11)
- Microsoft.AspNetCore.Mvc.NewtonsoftJson (>= 10.0.11)
- Microsoft.AspNetCore.OData (>= 9.5.0)
- Microsoft.EntityFrameworkCore (>= 10.0.11)
- Microsoft.EntityFrameworkCore.InMemory (>= 10.0.11)
- Microsoft.EntityFrameworkCore.Sqlite (>= 10.0.11)
- Microsoft.EntityFrameworkCore.SqlServer (>= 10.0.11)
- Microsoft.Extensions.Caching.Memory (>= 10.0.11)
- Microsoft.Extensions.Diagnostics.Probes (>= 10.9.0-preview.1.26411.16)
- Microsoft.Extensions.Diagnostics.ResourceMonitoring (>= 10.9.0)
- Npgsql.EntityFrameworkCore.PostgreSQL (>= 10.0.3)
- OpenTelemetry.Exporter.Console (>= 1.17.0)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.17.0)
- OpenTelemetry.Extensions.Hosting (>= 1.17.0)
- OpenTelemetry.Instrumentation.AspNetCore (>= 1.17.0)
- OpenTelemetry.Instrumentation.EntityFrameworkCore (>= 1.17.0-beta.1)
- OpenTelemetry.Instrumentation.Http (>= 1.17.0)
- OpenTelemetry.Instrumentation.Runtime (>= 1.17.0)
- SQLitePCLRaw.lib.e_sqlite3 (>= 3.53.3)
- Swashbuckle.AspNetCore (>= 10.2.3)
- Swashbuckle.AspNetCore.ReDoc (>= 10.2.3)
- Swashbuckle.AspNetCore.SwaggerGen (>= 10.2.3)
-
net9.0
- Archetypical.Software.Configuration.Manager (>= 0.4.3)
- AspNetCore.HealthChecks.ApplicationStatus (>= 9.0.0)
- AspNetCore.HealthChecks.Dapr (>= 9.0.0)
- Dapr.AspNetCore (>= 1.18.5)
- EntityFrameworkCore.ClickHouse (>= 2.0.1)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 9.0.19)
- Microsoft.AspNetCore.Mvc.NewtonsoftJson (>= 9.0.19)
- Microsoft.AspNetCore.OData (>= 9.5.0)
- Microsoft.EntityFrameworkCore (>= 9.0.19)
- Microsoft.EntityFrameworkCore.InMemory (>= 9.0.19)
- Microsoft.EntityFrameworkCore.Sqlite (>= 9.0.19)
- Microsoft.EntityFrameworkCore.SqlServer (>= 9.0.19)
- Microsoft.Extensions.Caching.Memory (>= 9.0.19)
- Microsoft.Extensions.Diagnostics.Probes (>= 10.9.0-preview.1.26411.16)
- Microsoft.Extensions.Diagnostics.ResourceMonitoring (>= 9.10.0)
- Npgsql.EntityFrameworkCore.PostgreSQL (>= 9.0.4)
- OpenTelemetry.Exporter.Console (>= 1.17.0)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.17.0)
- OpenTelemetry.Extensions.Hosting (>= 1.17.0)
- OpenTelemetry.Instrumentation.AspNetCore (>= 1.17.0)
- OpenTelemetry.Instrumentation.EntityFrameworkCore (>= 1.17.0-beta.1)
- OpenTelemetry.Instrumentation.Http (>= 1.17.0)
- OpenTelemetry.Instrumentation.Runtime (>= 1.17.0)
- SQLitePCLRaw.lib.e_sqlite3 (>= 3.53.3)
- Swashbuckle.AspNetCore (>= 10.2.3)
- Swashbuckle.AspNetCore.ReDoc (>= 10.2.3)
- Swashbuckle.AspNetCore.SwaggerGen (>= 10.2.3)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Archetypical.Software.Vega.Api.Abstractions:
| Package | Downloads |
|---|---|
|
Archetypical.Software.Vega.Api.IntegrationTests.Framework
Reusable integration test framework for applications built on Archetypical.Software.Vega.Api.Abstractions. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.9.0 | 151 | 8/13/2026 |
| 2.8.1 | 71 | 8/13/2026 |
| 2.8.0 | 148 | 7/2/2026 |
| 2.7.1 | 305 | 1/10/2026 |
| 2.7.0 | 108 | 1/9/2026 |
| 2.6.0 | 106 | 1/9/2026 |
| 2.5.0 | 154 | 12/31/2025 |
| 2.4.0 | 209 | 10/13/2025 |
| 2.3.0 | 238 | 9/22/2025 |
| 2.2.0 | 199 | 9/8/2025 |
| 2.1.1 | 196 | 9/8/2025 |
| 2.1.0 | 275 | 5/5/2025 |
| 2.0.3 | 258 | 4/12/2025 |
| 2.0.2 | 172 | 4/11/2025 |
| 2.0.1 | 254 | 4/10/2025 |
| 2.0.0 | 274 | 4/9/2025 |
| 1.5.0 | 242 | 4/7/2025 |
| 1.4.0 | 245 | 4/2/2025 |
| 1.3.0 | 216 | 4/1/2025 |
| 1.2.8 | 224 | 3/31/2025 |