RestEase icon indicating copy to clipboard operation
RestEase copied to clipboard

Easy-to-use typesafe REST API client library for .NET Standard 1.1 and .NET Framework 4.5 and higher, which is simple and customisable. Inspired by Refit

Results 19 RestEase issues
Sort by recently updated
recently updated
newest added

At some point, I'd like to move to RestEase 2. There are two main things want to achieve: 1. Make use of source generators 2. Make Json.NET optional This issue...

discussion
restease-2.0

Hi! I was wondering why RestEase doesn’t support [serialization of complex type parameters](https://github.com/canton7/RestEase#serialization-of-variable-query-parameters) in a format compatible with ASP.NET Core MVC by default. It’s possible to do if you implement...

public static T Rest(string baseAddress, int requestTimeoutSeconds, params string[] defaultRequestHeaders) { var httpClientHandler = new HttpClientHandler { ServerCertificateCustomValidationCallback = (message, cert, chain, errors) => { return true; } }; var...

### Discussed in https://github.com/canton7/RestEase/discussions/231 Originally posted by **Legion-ale** July 21, 2022 As explained in the title i'm in the following situation: ``` private readonly Microsoft.Extensions.Http.PolicyHttpMessageHandler retryPolicyHandler = new Microsoft.Extensions.Http.PolicyHttpMessageHandler( Policy.HandleResult(r...

Change Proposed: 1. Change parameter from `IDictionary` to `IEnumerable` for `RequestInfo.AddQueryMap(...)` and `RequestInfo.AddQueryCollectionMap(...)` 2. Update method emitters to reflect such change. 3. Reword diagnostic code and message 4. Add tests...

**Description** Using `Task` when T is a string does not work. **To Reproduce** ``` c# public interface ITest { Task CallGoogleAsync(CancellationToken token); // works Task CallGoogleAsync(CancellationToken token); // throws exception...

fix-scheduled

Hi, I'm finding that if a route has a return type as string, the http content from the response is directly passed back instead of being first sent to the...

Bumps [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json) from 11.0.1 to 13.0.1. Release notes Sourced from Newtonsoft.Json's releases. 13.0.1 New feature - Add JsonSelectSettings with configuration for a regex timeout Change - Remove portable assemblies from...

dependencies

Currently we just allow dictionaries, but we might as well permit `IEnumerable` instead of `IDictionary`

**Description** I've defined a query parameter on an interface like this: ``` C# public interface IApi { [Query("api-version")] string ApiVersion { get; set; } [Get("users")] Task GetUsersAsync(); } ``` What...