Norad.GranMa.Api
1.3.3
dotnet add package Norad.GranMa.Api --version 1.3.3
NuGet\Install-Package Norad.GranMa.Api -Version 1.3.3
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="Norad.GranMa.Api" Version="1.3.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Norad.GranMa.Api" Version="1.3.3" />
<PackageReference Include="Norad.GranMa.Api" />
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 Norad.GranMa.Api --version 1.3.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Norad.GranMa.Api, 1.3.3"
#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 Norad.GranMa.Api@1.3.3
#: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=Norad.GranMa.Api&version=1.3.3
#tool nuget:?package=Norad.GranMa.Api&version=1.3.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
lib-granma-api
Overview
lib-granma-api provides shared API utilities and conventions for GranMa (Grant Management) REST APIs. It includes pagination, filtering, sorting, validation, and common middleware configurations for building consistent HTTP APIs.
Features
- Pagination: Standardized paging for API responses
- Filtering & Sorting: Flexible query support for collections
- Validation: Fluent validation for request models
- Middleware: Common middleware for error handling, logging, and correlation
- Extensibility: Easily extendable for custom API logic
Installation
.NET CLI
dotnet add package Norad.GranMa.Api
PackageReference
<PackageReference Include="Norad.GranMa.Api" Version="x.y.z" />
Framework Compatibility
| Framework | Supported Versions |
|---|---|
| .NET | 9.0 |
| .NET Standard | 2.1 |
Getting Started
Basic Usage
using Norad.GranMa.Api;
// Example: Add API middleware to your ASP.NET Core pipeline
app.UseMiddleware<ErrorHandlingMiddleware>();
app.UseMiddleware<CorrelationIdMiddleware>();
// Example: Use validation utilities
var validator = new MyRequestValidator();
var result = validator.Validate(request);
if (!result.IsValid) {
// handle validation errors
}
API Documentation
See the source code for key abstractions such as:
- Pagination and filtering helpers
- Validation utilities
- Middleware implementations
- API conventions and extensions
License
This project is licensed under the MIT License - see the LICENSE file for details.
Built with ❤️ by Norad
| Product | Versions 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. net10.0 was computed. 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.
-
net9.0
- Correlate (>= 6.0.0)
- Correlate.AspNetCore (>= 6.0.0)
- Correlate.DependencyInjection (>= 6.0.0)
- FluentValidation (>= 12.0.0)
- Microsoft.AspNetCore.OpenApi (>= 9.0.6)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.7)
- Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore (>= 9.0.6)
- Scalar.AspNetCore (>= 2.6.1)
- Serilog.AspNetCore (>= 9.0.0)
- Serilog.Enrichers.CorrelationId (>= 3.0.1)
- Serilog.Sinks.ApplicationInsights (>= 4.0.0)
- Serilog.Sinks.Console (>= 6.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.