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. (by reactiveui)

Refit Alternatives

Similar projects and alternatives to Refit

  1. Entity Framework

    EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. BenchmarkDotNet

    Powerful .NET library for benchmarking

  4. Hangfire

    An easy way to perform background job processing in .NET and .NET Core applications. No Windows Service or separate process required

  5. Serilog

    Simple .NET logging with fully-structured events

  6. Json.NET

    Json.NET is a popular high-performance JSON framework for .NET

  7. Polly

    54 Refit VS Polly

    Polly is a .NET resilience and transient-fault-handling library that allows developers to express policies such as Retry, Circuit Breaker, Timeout, Bulkhead Isolation, and Fallback in a fluent and thread-safe manner. From version 6.0.1, Polly targets .NET Standard 1.1 and 2.0+.

  8. xUnit

    43 Refit VS xUnit

    xUnit.net is a free, open source, community-focused unit testing tool for .NET.

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. CsvHelper

    Library to help reading and writing CSV files

  11. Flurl.Http

    Fluent URL builder and testable HTTP client for .NET

  12. Xamarin.Forms

    Discontinued Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.

  13. FluentValidation

    A popular .NET validation library for building strongly-typed validation rules.

  14. 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

  15. RestSharp

    Simple REST and HTTP API Client for .NET

  16. Eto.Forms

    Cross platform GUI framework for desktop and mobile applications in .NET

  17. NodaTime

    A better date and time API for .NET

  18. Fluent Assertions

    A very extensive set of extension methods that allow you to more naturally specify the expected outcome of a TDD or BDD-style unit tests. Targets .NET Framework 4.7, as well as .NET Core 2.1, .NET Core 3.0, .NET 6, .NET Standard 2.0 and 2.1. Supports the unit test frameworks MSTest2, NUnit3, XUnit2, MSpec, and NSpec3.

  19. Humanizer

    Humanizer meets all your .NET needs for manipulating and displaying strings, enums, dates, times, timespans, numbers and quantities

  20. AutoFixture

    AutoFixture is an open source library for .NET designed to minimize the 'Arrange' phase of your unit tests in order to maximize maintainability. Its primary goal is to allow developers to focus on what is being tested rather than how to setup the test scenario, by making it easier to create object graphs containing test data.

  21. SignalR

    7 Refit VS SignalR

    Incredibly simple real-time web for .NET

  22. NSwag

    47 Refit VS NSwag

    The Swagger/OpenAPI toolchain for .NET, ASP.NET Core and TypeScript.

  23. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better Refit alternative or higher similarity.

Refit discussion

Log in or Post with
  1. User avatar
    36a56a9a
    · 9 months ago
    · Reply

    Review ★★★★★ 10/10

Refit reviews and mentions

Posts with mentions or reviews of Refit. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-10-01.
  • How To Test Integrations with APIs Using WireMock in .NET
    2 projects | dev.to | 1 Oct 2024
    I really love using Refit library for communication with other services via HTTP protocol. This library provides an interface wrapper (with code generation) that wraps HttpClient using HttpClientFactory.
  • 20 Top C# Frameworks and Libraries on GitHub for Building Powerful Applications
    17 projects | dev.to | 23 May 2024
    12. Refit
  • Exception Handling in C# Methods returning object
    2 projects | /r/dotnet | 8 Dec 2023
    A lot of people have given you good replies, but have you looked at Refit?
  • Http calls on mobile, what is the preferred way / best practice
    2 projects | /r/dotnetMAUI | 11 Jul 2023
    Another question that rises is, would it be better to use some HttpClient package to handle the requests, like Refit in combination with Polly. But then again, it seems Refit also uses the HttpClient factory, which was a bad thing according to the previous?
  • Refactor your dotNET HTTP Clients to Typed HTTP Clients
    1 project | /r/dotnet | 23 May 2023
    Define a Refit client interface with the following for each API endpoint, e.g. GET /foo:
  • HttpClient best approach
    3 projects | /r/dotnet | 4 Apr 2023
    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.
  • What your hidden nuget gems ?
    32 projects | /r/dotnet | 10 Mar 2023
    Refit - simple, typed REST clients: https://github.com/reactiveui/refit
  • how to structure code for rest api calls
    1 project | /r/csharp | 20 Jan 2023
    I'd advise using this https://github.com/reactiveui/refit tool for HTTP requests. It saves a lot of time for serialization, deserialization and exception handling.
  • Roadmap for transition from Java
    4 projects | /r/dotnet | 19 Jan 2023
    Use Refit, and let manage the live of HttpClient. Also, Refit will give you a strongly typed client around an API. All you have to write is the interface. Ain't that neat ? If you can't, use the HttpClientFactory to create the HttpClient instance: https://learn.microsoft.com/en-us/dotnet/architecture/microservices/implement-resilient-applications/use-httpclientfactory-to-implement-resilient-http-requests
  • ASP.NET Core - how to properly make a GET request?
    4 projects | /r/dotnet | 6 Jan 2023
    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.
  • A note from our sponsor - CodeRabbit
    coderabbit.ai | 19 Mar 2025
    Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR. Learn more →

Stats

Basic Refit repo stats
35
8,915
9.1
11 days ago

reactiveui/refit is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of Refit is C#.


Sponsored
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai

Did you know that C# is
the 10th most popular programming language
based on number of references?