AzRUtil.Web.Api
10.3.0
dotnet add package AzRUtil.Web.Api --version 10.3.0
NuGet\Install-Package AzRUtil.Web.Api -Version 10.3.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="AzRUtil.Web.Api" Version="10.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AzRUtil.Web.Api" Version="10.3.0" />
<PackageReference Include="AzRUtil.Web.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 AzRUtil.Web.Api --version 10.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AzRUtil.Web.Api, 10.3.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 AzRUtil.Web.Api@10.3.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=AzRUtil.Web.Api&version=10.3.0
#tool nuget:?package=AzRUtil.Web.Api&version=10.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
AzRUtil.Web.Api
ASP.NET Core Web API utilities with standardized responses, validation, and base controller.
?? Installation
dotnet add package AzRUtil.Web.Api
Or via Package Manager:
Install-Package AzRUtil.Web.Api
?? Target Framework
- .NET 10
? Features
- Base API Controller - Standardized response methods
- API Response Models - Consistent JSON responses
- Validation Filters - Model state validation
- Pagination Support - X.PagedList integration
- Error Handling - Structured error responses
- RDLC Reports - Report generation (when combined with Web.Rdlc)
?? Dependencies
| Package | Version |
|---|---|
| AzRUtil.Web | 10.1.1 |
| X.PagedList | 10.5.9 |
?? Quick Start
using AzRUtil.Web.Api;
[ApiController]
[Route("api/[controller]")]
public class ProductsController : BaseApiController
{
[HttpGet]
public IActionResult GetAll()
{
var products = _service.GetAll();
return OkResult(products, "Products retrieved successfully");
}
[HttpGet("{id}")]
public IActionResult GetById(int id)
{
var product = _service.GetById(id);
if (product == null)
return ErrorResult("Product not found", 404);
return OkResult(product);
}
[HttpPost]
public IActionResult Create([FromBody] ProductDto model)
{
if (!ModelState.IsValid)
return ValidationResult(ModelState);
try
{
var result = _service.Create(model);
return OkResult(result, "Product created successfully");
}
catch (Exception ex)
{
return ExceptionResult(ex);
}
}
}
API Response Format
{
"isError": false,
"responseStatus": "success",
"responseCode": 200,
"responseGroup": "success",
"message": "Data retrieved successfully",
"data": { ... }
}
Available Response Methods
| Method | Description |
|---|---|
OkResult(data, message) |
Success response with data |
OkResult(pagedList, message) |
Paginated success response |
ValidationResult(modelState) |
Validation error response |
UnauthorizedResult(message) |
401/403 error response |
ErrorResult(message) |
Client error response |
FailedResult(data, message) |
Server error response |
ExceptionResult(exception) |
Exception response with logging |
?? Documentation
For full API documentation, visit: http://ashiquzzaman.me/project/AzRUtil.Web.Library
?? License
PROPRIETARY SOFTWARE - See LICENSE.txt
- ? You may use the compiled NuGet package
- ? You may NOT access, copy, or use source code
- ? No warranty or guarantee provided
- ? No liability accepted for any damages
?? Contact
For licensing inquiries: ashiquzzaman@outlook.com
� Ashiquzzaman. All Rights Reserved.
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- AzRUtil.Web (>= 10.3.0)
- X.PagedList (>= 10.5.9)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Web API utilities with standardized response handling.