Rystem.RepositoryFramework.Api.Server 0.9.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Rystem.RepositoryFramework.Api.Server --version 0.9.1
                    
NuGet\Install-Package Rystem.RepositoryFramework.Api.Server -Version 0.9.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="Rystem.RepositoryFramework.Api.Server" Version="0.9.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Rystem.RepositoryFramework.Api.Server" Version="0.9.1" />
                    
Directory.Packages.props
<PackageReference Include="Rystem.RepositoryFramework.Api.Server" />
                    
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 Rystem.RepositoryFramework.Api.Server --version 0.9.1
                    
#r "nuget: Rystem.RepositoryFramework.Api.Server, 0.9.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.
#addin nuget:?package=Rystem.RepositoryFramework.Api.Server&version=0.9.1
                    
Install Rystem.RepositoryFramework.Api.Server as a Cake Addin
#tool nuget:?package=Rystem.RepositoryFramework.Api.Server&version=0.9.1
                    
Install Rystem.RepositoryFramework.Api.Server as a Cake Tool

Api auto-generated

In your web application you have only to add one row after service build.

app.AddApiForRepositoryFramework();

public static TEndpointRouteBuilder AddApiForRepositoryFramework<TEndpointRouteBuilder>(
    this TEndpointRouteBuilder app,
    string startingPath = "api",
    AuthorizationForApi? authorizationPolicy = null)

You may add api for each service by

    public static IEndpointRouteBuilder AddApiForRepository<T>(this IEndpointRouteBuilder app,
        string startingPath = "api",
        AuthorizationForApi? authorizationPolicy = null)

Startup example

In the example below you may find the DI for repository with string key for User model, populated with random data in memory, swagger to test the solution, the population method just after the build and the configuration of your API based on repository framework.

using RepositoryFramework.WebApi.Models;

var builder = WebApplication.CreateBuilder(args);
builder.Services
    .AddRepositoryInMemoryStorageWithStringKey<User>()
    .PopulateWithRandomData(x => x.Email!, 120, 5);
    builder.Services.AddEndpointsApiExplorer();
    builder.Services.AddSwaggerGen();

var app = builder.Build();
app.Services.Populate();
// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
    app.UseSwagger();
    app.UseSwaggerUI();
}
app.UseHttpsRedirection();
app.AddApiForRepositoryFramework();
app.Run();
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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 was computed.  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

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
9.0.30 507 3/26/2025
9.0.29 8,902 3/18/2025
9.0.28 137 3/17/2025
9.0.27 133 3/16/2025
9.0.26 148 3/13/2025
9.0.25 52,027 3/9/2025
9.0.21 249 3/6/2025
9.0.20 19,490 3/6/2025
9.0.19 215 3/6/2025
9.0.18 198 3/4/2025
9.0.17 102 3/1/2025
9.0.16 94 3/1/2025
9.0.15 75,439 2/22/2025
9.0.14 22,484 2/18/2025
9.0.13 111 2/9/2025
9.0.12 217,632 1/13/2025
9.0.11 23,948 1/9/2025
9.0.10 74 1/9/2025
9.0.9 3,947 1/7/2025
9.0.8 12,443 1/6/2025
9.0.7 88 1/6/2025
9.0.4 92,244 12/23/2024
9.0.3 99 12/22/2024
9.0.2 10,642 12/21/2024
9.0.1 1,136 12/21/2024
9.0.0 173,007 11/16/2024
9.0.0-rc.1 86 10/18/2024
6.2.0 218,989 10/9/2024
6.1.1 115 10/9/2024
6.1.0 47,914 9/29/2024
6.0.24 153 9/11/2024
6.0.23 340,112 7/18/2024
6.0.21 141 6/18/2024
6.0.20 727,749 6/16/2024
6.0.19 30,367 6/14/2024
6.0.18 140 6/14/2024
6.0.17 118 6/14/2024
6.0.16 49,981 6/10/2024
6.0.15 130 6/9/2024
6.0.14 94,255 5/24/2024
6.0.13 153 5/23/2024
6.0.12 115 5/23/2024
6.0.11 132 5/20/2024
6.0.9 104 5/20/2024
6.0.7 96 5/18/2024
6.0.6 152 5/10/2024
6.0.5 147 5/10/2024
6.0.4 549,809 4/3/2024
6.0.3 1,418 3/25/2024
6.0.2 393,574 3/11/2024
6.0.0 1,171,162 11/21/2023
6.0.0-rc.6 119 10/25/2023
6.0.0-rc.5 94 10/25/2023
6.0.0-rc.4 88 10/23/2023
6.0.0-rc.3 79 10/19/2023
6.0.0-rc.2 90 10/18/2023
6.0.0-rc.1 84 10/16/2023
5.0.20 638,591 9/25/2023
5.0.19 938 9/10/2023
5.0.18 917 9/6/2023
5.0.17 899 9/6/2023
5.0.16 964 9/5/2023
5.0.15 916 9/5/2023
5.0.14 879 9/5/2023
5.0.13 878 9/1/2023
5.0.12 911 8/31/2023
5.0.11 883 8/30/2023
5.0.10 897 8/29/2023
5.0.9 934 8/24/2023
5.0.8 945 8/24/2023
5.0.7 450,408 8/23/2023
5.0.6 18,255 8/21/2023
5.0.5 5,077 8/21/2023
5.0.4 944 8/16/2023
5.0.3 213,323 8/2/2023
5.0.2 2,600 8/2/2023
5.0.1 12,404 8/1/2023
5.0.0 12,677 7/31/2023
4.1.26 141,452 7/20/2023
4.1.25 25,439 7/16/2023
4.1.24 398,529 6/13/2023
4.1.23 46,487 6/13/2023
4.1.22 130,311 5/30/2023
4.1.21 56,225 5/20/2023
4.1.20 405,408 4/19/2023
4.1.19 96,228 3/20/2023
4.1.18 1,118 3/20/2023
4.1.17 1,100 3/16/2023
4.1.16 1,108 3/16/2023
4.1.15 1,064 3/15/2023
4.1.14 1,648 3/9/2023
4.1.13 1,092 3/7/2023
4.1.12 1,309 2/10/2023
4.1.11 1,177 1/26/2023
4.1.10 1,163 1/22/2023
4.1.9 1,146 1/20/2023
4.1.8 1,113 1/18/2023
4.1.7 1,318 1/18/2023
4.1.6 1,181 1/17/2023
4.1.1 1,177 1/4/2023
4.1.0 1,230 1/1/2023
3.1.5 1,159 12/21/2022
3.1.3 1,192 12/12/2022
3.1.2 1,146 12/7/2022
3.1.1 1,147 12/7/2022
3.1.0 1,213 12/2/2022
3.0.29 1,193 12/1/2022
3.0.28 1,178 12/1/2022
3.0.27 1,379 11/23/2022
3.0.25 1,233 11/23/2022
3.0.24 1,207 11/18/2022
3.0.23 1,194 11/18/2022
3.0.22 1,240 11/15/2022
3.0.21 1,244 11/14/2022
3.0.20 1,224 11/13/2022
3.0.19 1,464 11/2/2022
3.0.18 1,225 11/2/2022
3.0.17 1,228 10/29/2022
3.0.16 1,241 10/29/2022
3.0.15 1,205 10/29/2022
3.0.14 1,314 10/24/2022
3.0.13 1,287 10/24/2022
3.0.12 1,317 10/17/2022
3.0.11 1,294 10/10/2022
3.0.10 1,331 10/6/2022
3.0.9 1,263 10/6/2022
3.0.8 1,246 10/6/2022
3.0.7 1,272 10/6/2022
3.0.6 1,243 10/5/2022
3.0.5 1,257 10/5/2022
3.0.4 1,221 10/5/2022
3.0.3 1,265 10/3/2022
3.0.2 1,269 9/30/2022
3.0.1 1,256 9/29/2022
2.0.17 1,287 9/29/2022
2.0.16 1,250 9/27/2022
2.0.15 1,365 9/27/2022
2.0.14 1,300 9/26/2022
2.0.13 1,338 9/26/2022
2.0.12 1,314 9/26/2022
2.0.11 1,254 9/25/2022
2.0.10 1,332 9/25/2022
2.0.9 1,334 9/22/2022
2.0.8 1,316 9/22/2022
2.0.6 1,266 9/20/2022
2.0.5 1,291 9/20/2022
2.0.4 1,288 9/20/2022
2.0.2 1,299 9/20/2022
2.0.1 1,384 9/13/2022
2.0.0 1,291 8/19/2022
1.1.24 1,321 7/30/2022
1.1.23 1,289 7/29/2022
1.1.22 1,283 7/29/2022
1.1.21 1,352 7/29/2022
1.1.20 1,318 7/29/2022
1.1.19 1,382 7/27/2022
1.1.17 1,275 7/27/2022
1.1.16 1,323 7/26/2022
1.1.15 1,341 7/25/2022
1.1.14 1,328 7/25/2022
1.1.13 1,278 7/22/2022
1.1.12 1,365 7/19/2022
1.1.11 1,342 7/19/2022
1.1.10 1,328 7/19/2022
1.1.9 1,324 7/19/2022
1.1.8 1,343 7/18/2022
1.1.7 1,320 7/18/2022
1.1.6 1,326 7/18/2022
1.1.5 1,309 7/17/2022
1.1.4 1,353 7/17/2022
1.1.3 1,345 7/17/2022
1.1.2 1,359 7/17/2022
1.1.0 1,338 7/17/2022
1.0.2 1,303 7/15/2022
1.0.1 1,270 7/15/2022
1.0.0 1,317 7/8/2022
0.10.7 1,342 7/7/2022
0.10.2 1,363 7/2/2022
0.10.1 1,286 7/1/2022
0.10.0 1,293 7/1/2022
0.9.11 1,336 6/29/2022
0.9.10 1,335 6/20/2022
0.9.9 1,299 6/11/2022
0.9.7 1,353 6/9/2022
0.9.6 1,306 6/5/2022
0.9.5 1,327 6/3/2022
0.9.4 1,320 6/3/2022
0.9.3 1,292 6/3/2022
0.9.2 1,306 5/31/2022
0.9.1 1,285 5/31/2022
0.9.0 1,285 5/31/2022