WebApiClient
An open source project based on the HttpClient. You only need to define the c# interface and modify the related features to invoke the client library of the remote http interface asynchronously. (by dotnetcore)
RestEase
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 (by canton7)
Our great sponsors
WebApiClient | RestEase | |
---|---|---|
0 | 11 | |
1,996 | 1,036 | |
1.0% | - | |
4.0 | 4.6 | |
24 days ago | 4 months ago | |
C# | C# | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
WebApiClient
Posts with mentions or reviews of WebApiClient.
We have used some of these posts to build our list of alternatives
and similar projects.
We haven't tracked posts mentioning WebApiClient yet.
Tracking mentions began in Dec 2020.
RestEase
Posts with mentions or reviews of RestEase.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-07.
-
Best way to implement base class for API calls?
If Swagger/OpenAPI is available, save yourself a lot of trouble and generate the client using OpenAPI Generator. If not, use a library like RestEase to make it significantly easier to create the client.
-
ASP.NET Core - how to properly make a GET request?
Use RestEase to create your own client library. Refit is a very similar and more popular library. IMO RestEase is an improvement over Refit and I prefer it, but either will solve your problems. Both are libs that have you build interfaces describing the API endpoints, then the library handles all the boilerplate code that calls HttpClient.
-
Is it a best practice to use NSwag generated code for calls to a local web API?
I haven't tried this myself, but to take it a step further from just sharing request types you could try using RestEase.
-
Creating and Using HTTP Client SDKs in .NET 6
Honorable mentions: RestEase, RESTFulSense
-
API url strings throughout UI
Take a look at RestEase: https://github.com/canton7/RestEase
What are some alternatives?
When comparing WebApiClient and RestEase you can also consider the following projects:
Refit - The automatic type-safe REST library for .NET Core, Xamarin and .NET. Heavily inspired by Square's Retrofit library, Refit turns your REST API into a live interface.
RestSharp - Simple REST and HTTP API Client for .NET
Ocelot - .NET API Gateway
Flurl.Http - Fluent URL builder and testable HTTP client for .NET
NSwag - The Swagger/OpenAPI toolchain for .NET, ASP.NET Core and TypeScript.
Simple.OData.Client
RestLess - The automatic type-safe-reflectionless REST API client library for .Net Standard