Milad.ApiKit.AspNetCore
1.0.5
dotnet add package Milad.ApiKit.AspNetCore --version 1.0.5
NuGet\Install-Package Milad.ApiKit.AspNetCore -Version 1.0.5
<PackageReference Include="Milad.ApiKit.AspNetCore" Version="1.0.5" />
<PackageVersion Include="Milad.ApiKit.AspNetCore" Version="1.0.5" />
<PackageReference Include="Milad.ApiKit.AspNetCore" />
paket add Milad.ApiKit.AspNetCore --version 1.0.5
#r "nuget: Milad.ApiKit.AspNetCore, 1.0.5"
#:package Milad.ApiKit.AspNetCore@1.0.5
#addin nuget:?package=Milad.ApiKit.AspNetCore&version=1.0.5
#tool nuget:?package=Milad.ApiKit.AspNetCore&version=1.0.5
# Milad.ApiKit.AspNetCore
Milad.ApiKit.AspNetCore is a lightweight toolkit for building clean ASP.NET Core APIs.
## Features
- Result Pattern
- ApiResult
- Custom Errors
- Pagination
- FluentResults integration
# Milad.ApiKit.AspNetCore
[](https://www.nuget.org/packages/Milad.ApiKit.AspNetCore)
[](https://www.nuget.org/packages/Milad.ApiKit.AspNetCore)
[](https://github.com/milad6117/Milad.ApiKit.AspNetCore/actions)
[](LICENSE)
[](https://dotnet.microsoft.com/)
[](https://learn.microsoft.com/dotnet/csharp/)
A lightweight ASP.NET Core toolkit that provides Result Pattern, API Response, Pagination, Custom Errors, and other reusable building blocks for modern APIs.
Markdown
## Installation
Install the package using the .NET CLI:
dotnet add package Milad.ApiKit.AspNetCore
Or install it from NuGet Package Manager in Visual Studio.
## Usage
### Result
var result = Result.Success();
if(result.IsSuccess)
{
Console.WriteLine("Success");
}
### Failure
var result = Result.Failure(CustomErrors.NotFound("Book"));
if(result.IsFailed)
{
Console.WriteLine(result.Errors.First().Message);
}
### Pagination
var response = new PaginationResult<BookDto>(
items,
totalCount,
page,
pageSize);
## License
MIT License
| Product | Versions 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. |
-
net10.0
- FluentResults (>= 4.0.0)
- FluentValidation (>= 12.1.1)
- Microsoft.EntityFrameworkCore (>= 10.0.9)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.