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
                    
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="E13.Common.Api" Version="2025.117.22" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="E13.Common.Api" Version="2025.117.22" />
                    
Directory.Packages.props
<PackageReference Include="E13.Common.Api" />
                    
Project file
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 E13.Common.Api --version 2025.117.22
                    
#r "nuget: E13.Common.Api, 2025.117.22"
                    
#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 E13.Common.Api@2025.117.22
                    
#: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=E13.Common.Api&version=2025.117.22
                    
Install as a Cake Addin
#tool nuget:?package=E13.Common.Api&version=2025.117.22
                    
Install as a Cake Tool

E13.Common.Api

NuGet Version License: MIT

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

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed