OpenRestClient 1.5.5

There is a newer version of this package available.
See the version list below for details.
dotnet add package OpenRestClient --version 1.5.5
                    
NuGet\Install-Package OpenRestClient -Version 1.5.5
                    
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.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OpenRestClient" Version="1.5.5" />
                    
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.5
                    
#r "nuget: OpenRestClient, 1.5.5"
                    
#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.5
                    
#: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.5
                    
Install as a Cake Addin
#tool nuget:?package=OpenRestClient&version=1.5.5
                    
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 134 2/5/2025
1.6.6 120 1/8/2025
1.6.5 107 1/8/2025
1.6.4 147 1/3/2025
1.6.3 134 1/3/2025
1.6.2 146 1/3/2025
1.6.1 151 1/3/2025
1.6.0 146 1/3/2025
1.5.9 146 1/3/2025
1.5.8 125 1/2/2025
1.5.7 114 12/31/2024
1.5.6 113 12/31/2024
1.5.5 110 12/31/2024
1.5.4 109 12/23/2024
1.5.3 122 12/18/2024
1.5.2 120 12/18/2024
1.5.1 116 12/18/2024
1.5.0 115 12/18/2024
1.4.1 127 12/17/2024
1.4.0 133 12/17/2024
1.3.2 151 12/13/2024
1.3.1 125 12/12/2024
1.3.0 123 12/12/2024
1.2.9 115 12/12/2024
1.2.8 128 12/12/2024
1.2.7 126 12/12/2024
1.2.6 123 12/12/2024
1.2.5 120 12/6/2024
1.2.4 120 12/6/2024
1.2.3 120 12/5/2024
1.2.2 122 12/5/2024
1.2.1 115 12/5/2024
1.2.0 126 12/5/2024
1.1.0 120 12/5/2024
1.0.0 244 12/21/2023