Pitasoft.Client
7.0.1
See the version list below for details.
dotnet add package Pitasoft.Client --version 7.0.1
NuGet\Install-Package Pitasoft.Client -Version 7.0.1
<PackageReference Include="Pitasoft.Client" Version="7.0.1" />
<PackageVersion Include="Pitasoft.Client" Version="7.0.1" />
<PackageReference Include="Pitasoft.Client" />
paket add Pitasoft.Client --version 7.0.1
#r "nuget: Pitasoft.Client, 7.0.1"
#:package Pitasoft.Client@7.0.1
#addin nuget:?package=Pitasoft.Client&version=7.0.1
#tool nuget:?package=Pitasoft.Client&version=7.0.1
Pitasoft.Client
<a name="english"></a>
English
Pitasoft.Client is a .NET library designed to simplify the consumption of RESTful services. It provides a robust base class and helpers to handle HTTP requests, JSON serialization, and common API patterns.
Features
- Base REST Service:
RestServiceBaseprovides methods for GET, POST, PUT, and DELETE operations. - Result Handling: Integrated with
Pitasoft.ResultandPitasoft.Errorfor consistent response handling. - Query Helpers: Utilities to easily manage query strings in URIs.
- Flexible Configuration: Support for custom
HttpClientandJsonSerializerOptions.
Installation
Install via NuGet:
dotnet add package Pitasoft.Client
Basic Usage
Inherit from RestServiceBase to create your own service client:
public class MyApiService : RestServiceBase
{
public MyApiService(string baseUri) : base(baseUri) { }
public async Task<ResultEntity<MyData>> GetDataAsync(int id)
{
return await GetAsync<MyData>($"api/data/{id}");
}
}
<a name="castellano"></a>
Castellano
Pitasoft.Client es una librería .NET diseñada para simplificar el consumo de servicios RESTful. Proporciona una clase base robusta y utilidades para manejar peticiones HTTP, serialización JSON y patrones comunes de API.
Características
- Servicio REST Base:
RestServiceBaseproporciona métodos para operaciones GET, POST, PUT y DELETE. - Manejo de Resultados: Integrado con
Pitasoft.ResultyPitasoft.Errorpara un manejo consistente de respuestas. - Helpers de Consulta: Utilidades para gestionar fácilmente cadenas de consulta (query strings) en URIs.
- Configuración Flexible: Soporte para
HttpClientyJsonSerializerOptionspersonalizados.
Instalación
Instalar a través de NuGet:
dotnet add package Pitasoft.Client
Uso Básico
Hereda de RestServiceBase para crear tu propio cliente de servicio:
public class MyApiService : RestServiceBase
{
public MyApiService(string baseUri) : base(baseUri) { }
public async Task<ResultEntity<MyData>> GetDataAsync(int id)
{
return await GetAsync<MyData>($"api/data/{id}");
}
}
License
See License.txt for more details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. 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 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
- Pitasoft.Result (>= 7.0.1)
-
net8.0
- Pitasoft.Result (>= 7.0.1)
-
net9.0
- Pitasoft.Result (>= 7.0.1)
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.1.2 | 134 | 4/17/2026 |
| 8.1.1 | 147 | 3/26/2026 |
| 8.0.1 | 134 | 3/24/2026 |
| 7.0.7 | 137 | 3/20/2026 |
| 7.0.6 | 138 | 3/13/2026 |
| 7.0.5 | 144 | 3/2/2026 |
| 7.0.4 | 137 | 2/25/2026 |
| 7.0.3 | 145 | 2/12/2026 |
| 7.0.2 | 155 | 1/26/2026 |
| 7.0.1 | 160 | 1/26/2026 |
| 6.5.5 | 360 | 5/27/2025 |
| 6.5.4 | 338 | 5/27/2025 |
| 6.5.3 | 328 | 5/25/2025 |
| 6.5.2 | 342 | 5/25/2025 |
| 6.5.1 | 290 | 5/23/2025 |
| 6.5.0 | 341 | 5/19/2025 |
| 6.0.0 | 372 | 8/21/2024 |
| 5.2.2 | 377 | 5/17/2024 |
| 5.2.1 | 342 | 5/17/2024 |
| 5.2.0 | 455 | 11/20/2023 |