RestEase 1.6.4
dotnet add package RestEase --version 1.6.4
NuGet\Install-Package RestEase -Version 1.6.4
<PackageReference Include="RestEase" Version="1.6.4" />
<PackageVersion Include="RestEase" Version="1.6.4" />
<PackageReference Include="RestEase" />
paket add RestEase --version 1.6.4
#r "nuget: RestEase, 1.6.4"
#:package RestEase@1.6.4
#addin nuget:?package=RestEase&version=1.6.4
#tool nuget:?package=RestEase&version=1.6.4
RestEase
RestEase is a little type-safe REST API client library for .NET Framework 4.5.2 and higher and .NET Platform Standard 1.1 and higher, which aims to make interacting with remote REST endpoints easy, without adding unnecessary complexity.
To use it, you define an interface which represents the endpoint you wish to communicate with (more on that in a bit), where methods on that interface correspond to requests that can be made on it. RestEase will then generate an implementation of that interface for you, and by calling the methods you defined, the appropriate requests will be made. See Installation and Quick Start to get up and running!
Almost every aspect of RestEase can be overridden and customized, leading to a large level of flexibility.
It also works on platforms which don't support runtime code generation, such as .NET Native and iOS, if you reference RestEase.SourceGenerator. See Using RestEase.SourceGenerator for more information.
RestEase is built on top of HttpClient and is deliberately a "leaky abstraction": it is easy to gain access to the full capabilities of HttpClient, giving you control and flexibility, when you need it.
RestEase is inspired by Anaïs Betts' Refit, which in turn is inspired by Retrofit.