OpenRestClient 1.5.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package OpenRestClient --version 1.5.3
                    
NuGet\Install-Package OpenRestClient -Version 1.5.3
                    
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="OpenRestClient" Version="1.5.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OpenRestClient" Version="1.5.3" />
                    
Directory.Packages.props
<PackageReference Include="OpenRestClient" />
                    
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 OpenRestClient --version 1.5.3
                    
#r "nuget: OpenRestClient, 1.5.3"
                    
#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 OpenRestClient@1.5.3
                    
#: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=OpenRestClient&version=1.5.3
                    
Install as a Cake Addin
#tool nuget:?package=OpenRestClient&version=1.5.3
                    
Install as a Cake Tool
  • Esta libreria se encarga de consumir una ApiRest de una manera facil y rapida

  • https://github.com/Clihsman/OpenRestClient.git

  • El RestController nos permite crear un controlador

  • para consumir la API

  • RestController(<como argumento ingresamos la ruta que vamos a consumir>)

  • El RestMethod nos permite definir el tipo que queremos consumir

  • RestMethod(<tipo de metodo a consumir>)

  • El InJoin es una herramienta que nos permite unir un parametro

  • ejemplo:

    • long All(InJoin(",") params int[] ids) ⇒ Call<long>(nameof(Destroy), id);
    • All(1,2,3,4); = https://host-prueba/api/metodo-prueba/1,2,3,4
  • El RestHost nos permine definir el Host que vamos a consumir

  • implementacion: [assembly: RestHost("https://host-prueba")]

  • El MethodType nos permite definir que tipo de metodo queremos usar

  • La clase RestApp nos permite contiene toda la estructura para consumir la API

    • RestApp(<tipo-clase-padre>)
    • RestApp(<host>, <tipo-clase-padre>)
    • Call<tipo-de-retorno>(<nombre-del-metodo>, <argumentos>); retorna el valor de T
    • CallString(<nombre-del-metodo>, <argumentos>); retorna el valor en String
    • CallArray<tipo-de-retorno>(<nombre-del-metodo>, <argumentos>); retorna el valor de T[] pero como un arreglo
    • AddHeader(<nombre>, <valor>); agrega un encabezado a la clase
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 was computed.  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 was computed.  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
1.6.7 204 2/5/2025
1.6.6 170 1/8/2025
1.6.5 154 1/8/2025
1.6.4 196 1/3/2025
1.6.3 185 1/3/2025
1.6.2 191 1/3/2025
1.6.1 200 1/3/2025
1.6.0 194 1/3/2025
1.5.9 198 1/3/2025
1.5.8 171 1/2/2025
1.5.7 160 12/31/2024
1.5.6 161 12/31/2024
1.5.5 155 12/31/2024
1.5.4 167 12/23/2024
1.5.3 167 12/18/2024
1.5.2 167 12/18/2024
1.5.1 161 12/18/2024
1.5.0 165 12/18/2024
1.4.1 172 12/17/2024
1.4.0 176 12/17/2024
Loading failed