![]() |
VOOZH | about |
dotnet add package AstreCode.Backend.Shared.API --version 10.0.1.4
NuGet\Install-Package AstreCode.Backend.Shared.API -Version 10.0.1.4
<PackageReference Include="AstreCode.Backend.Shared.API" Version="10.0.1.4" />
<PackageVersion Include="AstreCode.Backend.Shared.API" Version="10.0.1.4" />Directory.Packages.props
<PackageReference Include="AstreCode.Backend.Shared.API" />Project file
paket add AstreCode.Backend.Shared.API --version 10.0.1.4
#r "nuget: AstreCode.Backend.Shared.API, 10.0.1.4"
#:package AstreCode.Backend.Shared.API@10.0.1.4
#addin nuget:?package=AstreCode.Backend.Shared.API&version=10.0.1.4Install as a Cake Addin
#tool nuget:?package=AstreCode.Backend.Shared.API&version=10.0.1.4Install as a Cake Tool
Shared backend components for AstreCode microservices.
The AstreCode.Backend.Shared.API package provides essential shared components for building robust and scalable .NET 8.0 backend services. This package includes common middleware, configuration extensions, and utilities that streamline the development of microservices and API applications.
To install this package, use the .NET CLI:
dotnet add package AstreCode.Backend.Shared.API
Or via Package Manager Console:
Install-Package AstreCode.Backend.Shared.API
using Shared.API;
var builder = WebApplication.CreateBuilder(args);
// Add API services
builder.Services.AddApiServices(builder.Configuration);
// Add security
builder.Services.AddSecurity(builder.Configuration);
var app = builder.Build();
// Configure API pipeline
app.UseApiPipeline();
app.Run();
// The global exception handler is automatically configured
// when you use the API pipeline setup
app.UseApiPipeline();
[ApiController]
[Route("api/[controller]")]
public class ExampleController : ControllerBase
{
[HttpGet]
[PermissionAuthorize("Read:Example")]
public async Task<IActionResult> GetExample()
{
// Your implementation here
return Ok();
}
}
[ApiController]
[Route("api/[controller]")]
public class AdminController : ControllerBase
{
[HttpGet]
[GroupAuthorize("Administrators")]
public async Task<IActionResult> GetAdminData()
{
// Your implementation here
return Ok();
}
}
// In appsettings.json
{
"SSLOptions": {
"IsEnabled": true,
"CertificatePath": "path/to/certificate.pfx",
"CertificatePassword": "your-password",
"Port": 443
}
}
// In appsettings.json
{
"ApiConfiguration": {
"CorsOrigin": "https://yourdomain.com",
"CorsHeaders": "*",
"CorsMethods": "*",
"MajorVersion": 1,
"MinorVersion": 0
}
}
// In appsettings.json
{
"Serilog": {
"SeqUrl": "http://localhost:5341",
"LogPath": "logs/app.log"
}
}
This package depends on the following NuGet packages:
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the file for details.
For support and questions, please contact the AstreCode development team.
See for version history and changes.
AstreCode.Backend.Shared.API - Version 8.0.0
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on AstreCode.Backend.Shared.API:
| Package | Downloads |
|---|---|
|
AstreCode.Backend.Shared.Infrastructure
The shared infrastructure project for AstreCode backend |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.0.1.4 | 325 | 12/3/2025 |
| 9.0.1.4 | 1,892 | 10/13/2025 |
| 9.0.1.3 | 217 | 10/13/2025 |
| 9.0.1.2 | 212 | 10/12/2025 |
| 9.0.1.1 | 206 | 10/12/2025 |
| 9.0.1 | 192 | 10/12/2025 |
| 9.0.0.9 | 198 | 10/12/2025 |
| 9.0.0.8 | 222 | 10/10/2025 |
| 9.0.0.6 | 218 | 10/9/2025 |
| 9.0.0.5 | 229 | 10/9/2025 |
| 9.0.0.4 | 3,079 | 9/9/2025 |
| 9.0.0.3 | 214 | 9/9/2025 |
| 9.0.0.2 | 222 | 9/9/2025 |
| 9.0.0.1 | 350 | 9/8/2025 |
| 9.0.0 | 235 | 9/8/2025 |
| 8.0.0 | 232 | 9/8/2025 |