Cake.Rest

Cake Addin for easily consuming REST APIs through RestSharp.

#addin nuget:?package=Cake.Rest&version=0.1.2

dotnet add package Cake.Rest --version 0.1.2

<PackageReference Include="Cake.Rest" Version="0.1.2" />

Aliases

Aliases for simplifying usage of RestSharp in Cake

General

Rest(string, Uri, Action<Stream, IHttpResponse>) Sends a REST request with empty body, and receives its response.
Rest(string, Uri, Action<Stream>) Sends a REST request with empty body, and receives its response.
Rest(string, Uri, IDictionary<string, string>, Action<Stream, IHttpResponse>) Sends a REST request with empty body, and receives its response.
Rest(string, Uri, IDictionary<string, string>, Action<Stream>) Sends a REST request with empty body, and receives its response.
Rest(string, Uri, IDictionary<string, string>, BodyType, string, Action<Stream, IHttpResponse>) Sends a REST request and receives its response.
Rest(string, Uri, IDictionary<string, string>, BodyType, string, Action<Stream>) Sends a REST request and receives its response.
Rest(string, Uri, IDictionary<string, string>, BodyType, string) Sends a REST request and receives its response.
Rest(string, Uri, IDictionary<string, string>, string, string, Stream, Action<Stream, IHttpResponse>) Sends a REST request and receives its response.
Rest(string, Uri, IDictionary<string, string>, string, string, Stream, Action<Stream>) Sends a REST request and receives its response.
Rest(string, Uri, IDictionary<string, string>, string, string, Stream) Sends a REST request and receives its response.
Rest(string, Uri, IDictionary<string, string>) Send a REST request with empty body, and receive its response.