E13.Common.Api
2025.117.22
dotnet add package E13.Common.Api --version 2025.117.22
NuGet\Install-Package E13.Common.Api -Version 2025.117.22
<PackageReference Include="E13.Common.Api" Version="2025.117.22" />
<PackageVersion Include="E13.Common.Api" Version="2025.117.22" />
<PackageReference Include="E13.Common.Api" />
paket add E13.Common.Api --version 2025.117.22
#r "nuget: E13.Common.Api, 2025.117.22"
#:package E13.Common.Api@2025.117.22
#addin nuget:?package=E13.Common.Api&version=2025.117.22
#tool nuget:?package=E13.Common.Api&version=2025.117.22
E13.Common.Api
Overview
E13.Common.Api is a package within the E13.Common collection designed for building Web API projects. It provides standardized components, extensions, and utilities to streamline the development of API layers in a layered application architecture.
Features
- Standard API Configuration: Extension methods for configuring API services with best practices
- Swagger Integration: Pre-configured Swagger/OpenAPI documentation setup
- CORS Configuration: Built-in Cross-Origin Resource Sharing policy setup
- Diagnostics Helpers: Tools for exposing diagnostic information in development environments
- Authentication Extensions: Utilities for working with claims and authentication
- Database Context Integration: Simplified setup for Entity Framework database contexts
Installation
dotnet add package E13.Common.Api
Usage
Adding Standard API Services
// In Startup.cs or Program.cs
public void ConfigureServices(IServiceCollection services)
{
// Add standard API services (controllers, CORS, JSON handling)
services.AddStandardApi();
// Add a database context with standard configuration
services.AddStandardDbContext<MyDbContext>(Configuration, "DefaultConnection");
}
Dependencies
- .NET 9.0
- Microsoft.AspNetCore.App
- Microsoft.ApplicationInsights.AspNetCore
- Microsoft.EntityFrameworkCore
- Swashbuckle.AspNetCore (Swagger)
- E13.Common.AspNet
- E13.Common.Data.Db
Related Packages
E13.Common.Api is part of the E13.Common collection, which includes:
- E13.Common.Core - Core utilities and base classes
- E13.Common.AspNet - ASP.NET shared components
- E13.Common.Api.AzureAD - Azure AD authentication for APIs
- E13.Common.Data.Db - Database access components
- E13.Common.Domain - Domain layer components
- E13.Common.RestEase - REST client utilities
Contributing
Contributions to E13.Common.Api are welcome. If you have suggestions or improvements, please submit an issue or create a pull request in the GitHub repository.
License
This project is licensed under the MIT License. For more details, see the LICENSE file in the repository.
| 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 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. |
-
net9.0
- E13.Common.AspNet (>= 2025.114.21)
- E13.Common.Data.Db (>= 2025.114.21)
- Microsoft.ApplicationInsights (>= 2.23.0)
- Microsoft.ApplicationInsights.AspNetCore (>= 2.23.0)
- Microsoft.AspNetCore.Hosting (>= 2.3.0)
- Microsoft.AspNetCore.Mvc.Versioning (>= 5.1.0)
- Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer (>= 5.1.0)
- Microsoft.EntityFrameworkCore.InMemory (>= 9.0.3)
- Microsoft.Extensions.Configuration (>= 9.0.3)
- Microsoft.Extensions.Hosting (>= 9.0.3)
- Microsoft.Extensions.Identity.Core (>= 9.0.3)
- Microsoft.Identity.Web (>= 3.8.2)
- Swashbuckle.AspNetCore.Filters (>= 8.0.2)
- Swashbuckle.AspNetCore.Swagger (>= 8.1.0)
- Swashbuckle.AspNetCore.SwaggerGen (>= 8.1.0)
- Swashbuckle.AspNetCore.SwaggerUI (>= 8.1.0)
- System.IdentityModel.Tokens.Jwt (>= 8.7.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on E13.Common.Api:
| Package | Downloads |
|---|---|
|
E13.Common.Nunit.Api
Common package containing helpers for an Nunit based testing project targeting an Api layer |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2025.117.22 | 226 | 4/27/2025 |
| 2025.114.21 | 257 | 4/24/2025 |
| 2025.114.20 | 235 | 4/24/2025 |
| 2025.114.19 | 269 | 4/24/2025 |
| 2025.114.18 | 226 | 4/24/2025 |
| 2025.112.17 | 262 | 4/22/2025 |
| 2025.112.16 | 255 | 4/22/2025 |
| 2025.111.15 | 243 | 4/21/2025 |
| 2025.106.14 | 258 | 4/16/2025 |
| 2025.106.12 | 306 | 4/16/2025 |
| 2025.97.11 | 233 | 4/7/2025 |
| 2025.96.9 | 254 | 4/6/2025 |
| 2025.96.8 | 237 | 4/6/2025 |
| 2025.91.7 | 250 | 4/1/2025 |
| 2025.91.6 | 229 | 4/1/2025 |
| 2025.90.4 | 269 | 3/31/2025 |
| 2023.30.1 | 452 | 1/30/2023 |
| 2023.18.1 | 472 | 1/18/2023 |
| 2021.324.4 | 1,327 | 11/20/2021 |
| 1.0.0 | 243 | 4/1/2025 |