Siemens.AspNet.MinimalApi.Sdk 0.1.0-alpha.29

Prefix Reserved
This is a prerelease version of Siemens.AspNet.MinimalApi.Sdk.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Siemens.AspNet.MinimalApi.Sdk --version 0.1.0-alpha.29
                    
NuGet\Install-Package Siemens.AspNet.MinimalApi.Sdk -Version 0.1.0-alpha.29
                    
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="Siemens.AspNet.MinimalApi.Sdk" Version="0.1.0-alpha.29" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Siemens.AspNet.MinimalApi.Sdk" Version="0.1.0-alpha.29" />
                    
Directory.Packages.props
<PackageReference Include="Siemens.AspNet.MinimalApi.Sdk" />
                    
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 Siemens.AspNet.MinimalApi.Sdk --version 0.1.0-alpha.29
                    
#r "nuget: Siemens.AspNet.MinimalApi.Sdk, 0.1.0-alpha.29"
                    
#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.
#addin nuget:?package=Siemens.AspNet.MinimalApi.Sdk&version=0.1.0-alpha.29&prerelease
                    
Install Siemens.AspNet.MinimalApi.Sdk as a Cake Addin
#tool nuget:?package=Siemens.AspNet.MinimalApi.Sdk&version=0.1.0-alpha.29&prerelease
                    
Install Siemens.AspNet.MinimalApi.Sdk as a Cake Tool

Siemens.AspNet.Minimal.Sdk

The Siemens.AspNet.Minimal.Sdk NuGet package offers a streamlined approach to building Minimal APIs in ASP.NET Core. It includes pre-configured defaults, opinionated helpers, and seamless integrations that accelerate development and simplify application setup.


📖 1. Overview

This SDK is designed to remove boilerplate code and help you focus on what matters: your business logic.

✅ Key Features

  • ⚙️ Pre-configured application startup
  • ☁️ AWS integration (optional)
  • 🗄️ Database connectivity (supports AWS DynamoDB)
  • 🔄 Consistent JSON serialization settings
  • 🔐 Security best practices (JWT, OAuth2, security headers)
  • ✔️ Custom validation support
  • 📘 Auto-configured OpenAPI/Swagger

📦 2. Installation

2.1 Using the .NET CLI

dotnet add package Siemens.AspNet.Minimal.Sdk

⚡ 3. Quickstart Example

Below is a minimal setup using ServerlessMinimalWebApi, designed to get you started in seconds:

using Pulse.FieldingTool.Api;
using Siemens.AspNet.MinimalApi.Sdk;

// Create the minimal API host
var webApi = new ServerlessMinimalWebApi();

// Optionally set a global base path for all endpoints
webApi.BasePath = "api/fieldingtool";

// Register application services
webApi.RegisterServices = (services, config) =>
{
    services.AddApi(config);
};

// Map API endpoints
webApi.MapEndpoints = endpoints =>
{
    endpoints.MapApi();
};

// Run the application
webApi.Run(args);

// Enable testing via WebApplicationFactory<Program>
namespace Pulse.FieldingTool
{
    public partial class Program {}
}

🧠 4. Key Concepts

Component Description
ServerlessMinimalWebApi Opinionated builder for hosting, logging, and config setup
RegisterServices Delegate for adding services to the DI container
MapEndpoints Delegate for defining endpoint mappings using Minimal API routing
Run Starts the web application
partial Program Enables integration testing with WebApplicationFactory<Program>
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. 
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 Siemens.AspNet.MinimalApi.Sdk:

Package Downloads
Siemens.AspNet.MsTest.Sdk

A library which contains following functions: - Siemens.AspNet.MsTest.Sdk

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.1.0-alpha.54 118 4/14/2025
0.1.0-alpha.53 137 4/14/2025
0.1.0-alpha.48 149 4/14/2025
0.1.0-alpha.47 140 4/9/2025
0.1.0-alpha.46 179 4/9/2025
0.1.0-alpha.44 115 4/7/2025
0.1.0-alpha.41 111 4/7/2025
0.1.0-alpha.40 118 4/7/2025
0.1.0-alpha.39 74 4/4/2025
0.1.0-alpha.38 77 4/4/2025
0.1.0-alpha.37 79 4/4/2025
0.1.0-alpha.33 117 4/4/2025
0.1.0-alpha.29 120 4/3/2025
0.1.0-alpha.28 115 4/3/2025
0.1.0-alpha.27 119 4/3/2025
0.1.0-alpha.26 122 4/2/2025