![]() |
VOOZH | about |
dotnet add package Russkyc.MinimalApi.Framework --version 1.1.0
NuGet\Install-Package Russkyc.MinimalApi.Framework -Version 1.1.0
<PackageReference Include="Russkyc.MinimalApi.Framework" Version="1.1.0" />
<PackageVersion Include="Russkyc.MinimalApi.Framework" Version="1.1.0" />Directory.Packages.props
<PackageReference Include="Russkyc.MinimalApi.Framework" />Project file
paket add Russkyc.MinimalApi.Framework --version 1.1.0
#r "nuget: Russkyc.MinimalApi.Framework, 1.1.0"
#:package Russkyc.MinimalApi.Framework@1.1.0
#addin nuget:?package=Russkyc.MinimalApi.Framework&version=1.1.0Install as a Cake Addin
#tool nuget:?package=Russkyc.MinimalApi.Framework&version=1.1.0Install as a Cake Tool
To install the Russkyc.MinimalApi.Framework package, you can use the NuGet Package Manager or the .NET CLI.
Follow these steps to set up the Russkyc.MinimalApi.Framework in your project.
Russkyc.MinimalApi.Framework NuGet package using the cli or the nuget package managerMicrosoft.EntityFrameworkCore.InMemory or Microsoft.EntityFrameworkCore.Sqlite depending on your database choice.Program.cs file:There are two options for setting up the framework in your project, a minimal setup and a more granular standard setup.
using System.ComponentModel.DataAnnotations;
using Microsoft.EntityFrameworkCore;
using Russkyc.MinimalApi.Framework;
using Russkyc.MinimalApi.Framework.Core;
using Russkyc.MinimalApi.Framework.Core.Access;
await MinimalApiFramework
.CreateDefault(options => options.UseSqlite("Data Source=test.sqlite"))
.RunAsync();
// Define your entity classes here or in a separate file
See the Minimal Sample Project for the complete code.
using System.ComponentModel.DataAnnotations;
using Microsoft.EntityFrameworkCore;
using Russkyc.MinimalApi.Framework.Core;
using Russkyc.MinimalApi.Framework.Core.Access;
using Russkyc.MinimalApi.Framework.Extensions;
using Russkyc.MinimalApi.Framework.Options;
var builder = WebApplication.CreateBuilder();
// Configure
FrameworkOptions.MapIndexToApiDocs = true;
FrameworkDbContextOptions.DbContextConfiguration = options => options.UseSqlite("Data Source=test.sqlite");
// Add required services
builder.Services
.AddMinimalApiFramework();
var webApplication = builder.Build();
// Add required endpoints
// Optionally, you can disable entity endpoints mapping and map them manually
webApplication.UseMinimalApiFramework(mapEntityEndpoints: false);
// If mapping is disabled, you can manually map entity endpoints
// Manual entity endpoints mapping for more granular control
webApplication.MapEntityEndpoints<SampleEntity, Guid>(options =>
{
// Other endpoint options can be configured here
});
// Sample prefixed mapping
// Same effect can be achieved when using the minimal setup
// by using the `FrameworkOptions` and setting `ApiPrefix`
var apiGroup = webApplication.MapGroup("nested");
apiGroup.MapEntityEndpoints<SampleEmbeddedEntity, int>();
await webApplication.RunAsync();
// Define your entity classes here or in a separate file
See the Standard Sample Project for the complete code.
For full documentation, please visit MinimalApi Framework - Github
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.1.0 | 447 | 11/20/2025 |
| 1.0.0 | 234 | 7/8/2025 |
| 0.10.0 | 234 | 6/2/2025 |
| 0.9.0 | 255 | 10/13/2024 |
| 0.8.0 | 222 | 10/12/2024 |
| 0.7.0 | 215 | 10/10/2024 |
| 0.6.0 | 187 | 10/9/2024 |
| 0.5.0 | 192 | 10/9/2024 |
| 0.4.0 | 188 | 10/9/2024 |
| 0.3.1 | 189 | 10/8/2024 |
| 0.3.0 | 182 | 10/8/2024 |
| 0.2.0 | 204 | 10/8/2024 |
| 0.1.1 | 189 | 10/8/2024 |
| 0.1.0 | 188 | 10/8/2024 |
Whats New:
- Nested entity permissions checking
- Roles based permissions
- Cookie and JWT auth roles support