devdeer.Libraries.AspNetCore.RestApi 23.0.1

dotnet add package devdeer.Libraries.AspNetCore.RestApi --version 23.0.1
                    
NuGet\Install-Package devdeer.Libraries.AspNetCore.RestApi -Version 23.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="devdeer.Libraries.AspNetCore.RestApi" Version="23.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="devdeer.Libraries.AspNetCore.RestApi" Version="23.0.1" />
                    
Directory.Packages.props
<PackageReference Include="devdeer.Libraries.AspNetCore.RestApi" />
                    
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 devdeer.Libraries.AspNetCore.RestApi --version 23.0.1
                    
#r "nuget: devdeer.Libraries.AspNetCore.RestApi, 23.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 devdeer.Libraries.AspNetCore.RestApi@23.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=devdeer.Libraries.AspNetCore.RestApi&version=23.0.1
                    
Install as a Cake Addin
#tool nuget:?package=devdeer.Libraries.AspNetCore.RestApi&version=23.0.1
                    
Install as a Cake Tool

devdeer.Libraries.AspNetCore.RestApi

NuGet Downloads

Disclaimer

If you want to use this package you should be aware of some principles and practices we at DEVDEER use. So be aware that this is not backed by a public repository. The purpose here is to give out customers easy access to our logic. Nevertheless you are welcome to use this lib if it provides any advantages.

Summary

This package is used to provide startup logic, base types and other specific logic to ASP.NET Core API projects.

Please keep in mind that this package is not intended to be used in UI web projects!

Usage

One of the main purposes for this packages was the fact, that the initial configuration of ASP.NET APIs can be overwhelming. You need to inject dependencies and app components in the correct order. Also you often want to put configuration of those things to outside stores (appsettings.json in our case). This package now reduces all of this to only some lines of code. You could use this as follows in the Program.cs:

var builder = WebApplication
    .CreateBuilder(args)
    .ConfigureDefaults();
builder.Services.ConfigureServices(builder.Configuration, opt => 
{
    // your explicit options and callbacks
});
// your additional DI here
var app = builder.Build();
app.ConfigureDefaults();
app.Run();

Now it is crucial to understand that ConfigureLogging(), ConfigureServices() and ConfigureDefaults() are methods coming from this package. The outcome can be controlled in 2 ways:

  1. Usage of ConfigurationOptions action. You can define some of the wanted behavior using the optional parameter provided by ConfigureServices() extension method.
  2. Putting elements in your appsettings.*.json.

Some common app settings are:

{
    "EntraId": {
        "Instance": "https://login.microsoftonline.com/",
        "TenantId": "",
        "Domain": ""
    },
    "Cors": {
        "EnableCors": true,
        "AllowCredentials": false,
        "AllowedHeaders": ["*"],
        "AllowedMethods": ["GET", "POST"]
    },
    "Swagger": {
        "ApiDescription": "",
        "DeprecatedApiMessage": "<p><strong><span style='color:white;background-color:red'>DEPRECATED</span></strong></p>",
        "Contact": {
            "Name": "",
            "Email": ""
        },
        "SupportedVersions": [{
        "Major": 1,
        "Minor": 0
        }],
        "Enable": true
    }
}

Using the syntax above will automatically configure the respective services in the correct order with just two lines of code.

More Details

Authentication

If the EntraId config option is set we automatically configure authentication to EntraId or Azure AD B2C/Entra ID Extenal Identities.

About DEVDEER

DEVDEER is a company from Magdeburg, Germany which is specialized in consulting, project management and development. We are very focussed on Microsoft Azure as a platform to run our products and solutions in the cloud. So all of our backend components usually runs in this environment and is developed using .NET. In the frontend area we are using react and a huge bunch of packages to build our UIs.

You can find us online:

Website

GitHub GitHub Org's stars

YouTube YouTube Channel Subscribers YouTube Channel Views

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

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
23.0.1 0 12/21/2025
23.0.0 102 12/13/2025
22.4.2 431 12/11/2025
22.4.1 402 12/11/2025
22.4.0 197 12/5/2025
22.3.4 227 11/28/2025
22.3.3 191 11/22/2025
22.3.2 179 11/22/2025
22.3.1 345 11/21/2025
22.3.0 322 11/21/2025
22.2.2 234 11/7/2025
22.2.1 408 10/21/2025
22.2.0 171 10/18/2025
22.1.9 241 10/15/2025
22.1.8 178 10/15/2025
22.1.7 187 10/15/2025
22.1.6 177 10/15/2025
22.1.5 199 10/15/2025
22.1.4 184 10/14/2025
22.1.3 196 10/13/2025
22.1.2 213 10/12/2025
22.1.1 174 10/12/2025
22.1.0 158 10/12/2025
22.0.5 140 10/11/2025
22.0.4 119 10/11/2025
22.0.3 124 10/11/2025
22.0.2 116 10/11/2025
22.0.1 126 10/11/2025
22.0.0 115 10/11/2025
21.2.5 215 10/7/2025
21.2.4 191 10/7/2025
21.2.3 192 10/7/2025
21.2.2 203 10/6/2025
21.2.1 185 10/6/2025
21.2.0 192 10/6/2025
21.1.8 192 10/6/2025
21.1.7 184 10/6/2025
21.1.6 184 10/6/2025
21.1.5 187 10/6/2025
21.1.4 193 10/4/2025
21.1.2 184 10/4/2025
21.1.1 177 10/4/2025
21.0.2 127 10/4/2025
21.0.1 196 9/29/2025
21.0.0 144 9/27/2025
20.2.4 518 8/28/2025
20.2.3 249 8/28/2025
20.2.2 416 8/13/2025
20.2.1 279 7/29/2025
20.2.0 146 7/29/2025
20.1.5 176 7/29/2025
20.1.4 161 7/29/2025
20.1.3 619 7/22/2025
20.1.2 574 7/22/2025
20.1.0 232 7/17/2025
20.0.2 210 7/17/2025
20.0.1 210 7/16/2025
20.0.0 196 7/16/2025
19.1.1 679 6/11/2025
19.1.0 200 5/30/2025
19.0.2 360 5/16/2025
19.0.1 285 5/16/2025
19.0.0 338 4/11/2025
18.0.1 389 3/18/2025
18.0.0 292 2/14/2025
17.1.7 711 1/15/2025
17.1.6 206 1/15/2025
17.1.5 645 1/8/2025
17.1.4 300 1/6/2025
17.1.3 241 1/6/2025
17.1.2 227 1/5/2025
17.1.1 211 1/5/2025
17.1.0 230 1/4/2025
17.0.2 579 12/24/2024
17.0.1 380 12/13/2024
17.0.0 327 12/11/2024
16.5.0 916 12/2/2024
16.4.7 329 11/1/2024
16.4.6 287 10/30/2024
16.4.5 225 10/30/2024
16.4.4 207 10/30/2024
16.4.3 604 10/27/2024
16.4.2 219 10/27/2024
16.4.1 199 10/27/2024
16.4.0 233 10/27/2024
16.3.3 338 10/14/2024
16.3.2 232 10/14/2024
16.3.1 266 10/12/2024
16.3.0 305 10/3/2024
16.2.2 531 8/23/2024
16.2.1 700 6/27/2024
16.2.0 212 6/27/2024
16.1.5 544 6/12/2024
16.1.4 226 6/12/2024
16.1.3 520 5/30/2024
16.1.2 231 5/29/2024
16.1.1 219 5/28/2024
16.1.0 220 5/28/2024
16.0.0 252 5/24/2024
15.0.1 250 5/19/2024
15.0.0 267 5/14/2024
14.4.3 228 5/14/2024
14.4.1 459 4/19/2024
14.4.0 245 4/19/2024
14.3.0 360 3/21/2024
14.2.0 458 3/11/2024
14.1.1 247 3/9/2024
14.1.0 248 3/9/2024
14.0.1 519 2/18/2024
14.0.0 693 1/20/2024
13.0.5 241 1/18/2024
13.0.4 629 12/25/2023
13.0.3 249 12/25/2023
13.0.2 419 12/11/2023
13.0.0 265 12/10/2023
12.7.5 387 11/9/2023
12.7.4 220 11/9/2023
12.7.3 288 10/29/2023
12.7.2 250 10/29/2023
12.7.1 318 9/27/2023
12.7.0 262 9/16/2023
12.6.4 262 9/14/2023
12.6.2 285 9/8/2023
12.6.1 266 9/7/2023
12.6.0 257 9/6/2023
12.5.0 589 8/15/2023
12.4.1 235 8/15/2023
12.4.0 275 8/15/2023
12.3.0 831 5/30/2023
12.2.1 315 5/29/2023
12.2.0 302 5/24/2023
12.1.0 305 5/24/2023
12.0.0 333 5/24/2023
11.0.5 834 5/23/2023
11.0.4 315 5/23/2023
11.0.3 277 5/23/2023
11.0.2 363 5/21/2023
11.0.1 310 5/21/2023
11.0.0 317 5/21/2023
10.6.0 336 5/21/2023
10.5.13 1,143 4/12/2023
10.5.12 369 4/12/2023
10.5.11 356 4/12/2023
10.5.10 625 4/12/2023
10.5.9 385 4/6/2023
10.5.8 589 3/14/2023
10.5.7 395 3/14/2023
10.5.6 803 3/11/2023
10.5.5 846 1/13/2023
10.5.4 710 1/10/2023
10.5.3 492 1/4/2023
10.5.2 463 1/3/2023
10.5.1 611 12/29/2022
10.5.0 708 12/29/2022
10.4.2 482 12/29/2022
10.4.0 836 12/23/2022
10.2.24 1,573 10/19/2022
10.2.23 588 10/19/2022
10.2.22 546 10/18/2022
10.2.21 552 10/17/2022
10.2.20 569 10/17/2022
10.2.19 581 10/17/2022
10.2.18 846 9/13/2022
10.2.17 1,448 9/13/2022
10.2.16 1,052 9/7/2022
10.2.15 857 9/6/2022
10.2.14 1,218 9/6/2022
10.2.13 622 9/6/2022
10.2.12 841 9/6/2022
10.2.11 846 9/6/2022
10.2.10 794 9/6/2022
10.2.9 1,066 9/5/2022
10.2.8 726 8/15/2022
10.2.7 658 8/13/2022
10.2.6 798 8/5/2022
10.2.5 778 7/19/2022
10.2.4 1,439 5/16/2022
10.2.3 688 5/16/2022
10.2.2 1,626 3/20/2022
10.2.0 801 3/20/2022
10.1.1 822 3/18/2022
10.1.0 787 3/14/2022
10.0.0 825 3/1/2022
9.0.4 860 2/28/2022
9.0.3 1,964 1/24/2022
9.0.2 736 12/22/2021
9.0.1 555 12/22/2021
9.0.0 547 12/22/2021
8.0.5 1,139 12/1/2021
8.0.3 1,213 8/14/2021
8.0.2 739 8/14/2021
8.0.1 836 8/14/2021
8.0.0 651 8/9/2021
7.0.13 1,544 7/12/2021
7.0.12 1,070 6/9/2021
7.0.11 1,563 5/1/2021
7.0.10 1,203 5/1/2021
1.4.0 958 8/25/2020

- New PathHandling option in OpenApiOptions.
- SuppressImplicitRequiredAttributeForNonNullableReferenceTypes is set to true by default.
- Package updates.