Winche.Storage.AspNetCore.Rest 1.0.0

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

Winche.Storage

Lightweight .NET libraries and sample apps for storing file metadata in PostgreSQL and objects in S3-compatible archives (presigned URLs). The solution includes core abstractions, a Postgres+S3 file-store implementation, a small REST adapter, and a sample ASP.NET app.

Integrates with Winche.Sentinel for access control.

Install

dotnet add package Winche.Storage

Add the REST API integrations as needed:

dotnet add package Winche.Storage.AspNetCore.Rest

Quick Start

1. Configure appsettings.json

{
  "WincheStorage": {
    "S3Archive": {
      "BucketName": "your-bucket",
      "AccessKey": "YOUR_ACCESS_KEY",
      "SecretKey": "YOUR_SECRET_KEY",
      "RegionName": "us-east-1",
      "PresignedUrlExpiry": "00:15:00"
    }
  }
}

2. Register services

builder.Services.AddWincheStorage(connectionString, builder.Configuration);

// Add REST API (optional)
builder.Services.AddWincheStorageRestApi();

3. Initialize schema and map endpoints

// Ensures the file records table
app.UseWincheStorage();

// Map REST routes (default prefix: "files")
app.UseWincheStorageRestApi();

See samples/WebApi for a complete working example.

Packages

Package Description
Winche.Storage Core file store: schema, CRUD, queries, file management
Winche.Storage.AspNetCore.Rest ASP.NET Core REST endpoints

Requirements

  • .NET 10 SDK (see <TargetFramework> in each project; this repo targets net10.0)
  • PostgreSQL for metadata storage
  • An S3-compatible bucket for object storage (or mock for local development)

License

Elastic License 2.0

Product Compatible and additional computed target framework versions.
.NET 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
8.0.0 159 7/5/2026
7.0.0 133 6/30/2026
6.4.0 147 6/25/2026
6.3.0 145 6/21/2026
6.2.0 135 6/20/2026
6.1.0 139 6/20/2026
6.0.0 138 6/17/2026
5.0.0 125 6/17/2026
4.0.0 179 6/16/2026
3.0.0 138 6/15/2026
2.0.1 146 5/27/2026
2.0.0 127 5/27/2026
1.0.0 132 5/25/2026