Pitasoft.Client 7.0.1

There is a newer version of this package available.
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
                    
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="Pitasoft.Client" Version="7.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Pitasoft.Client" Version="7.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Pitasoft.Client" />
                    
Project file
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 Pitasoft.Client --version 7.0.1
                    
#r "nuget: Pitasoft.Client, 7.0.1"
                    
#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 Pitasoft.Client@7.0.1
                    
#: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=Pitasoft.Client&version=7.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Pitasoft.Client&version=7.0.1
                    
Install as a Cake Tool

Pitasoft.Client

NuGet Version

English | Castellano


<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: RestServiceBase provides methods for GET, POST, PUT, and DELETE operations.
  • Result Handling: Integrated with Pitasoft.Result and Pitasoft.Error for consistent response handling.
  • Query Helpers: Utilities to easily manage query strings in URIs.
  • Flexible Configuration: Support for custom HttpClient and JsonSerializerOptions.

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: RestServiceBase proporciona métodos para operaciones GET, POST, PUT y DELETE.
  • Manejo de Resultados: Integrado con Pitasoft.Result y Pitasoft.Error para 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 HttpClient y JsonSerializerOptions personalizados.

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed