Type-safe REST API clients for .NET, generated from annotated interfaces with build-time source generation, direct request construction, System.Text.Json defaults, and support for trimming and AOT.
Info
| Version: | 12.0.0 |
| Author(s): | .NET Foundation and Contributors |
| Last Update: | Wednesday, June 24, 2026 |
| .NET Fiddle: | Online Example |
| Project Url: | https://github.com/reactiveui/refit |
| NuGet Url: | https://www.nuget.org/packages/refit |
Install
Install-Package refit
dotnet add package refit
paket add refit
refit Download (Unzip the "nupkg" after downloading)
Dependencies
.NETStandard 2.0
- Newtonsoft.Json(>= 12.0.3)
- System.Text.Json(>= 4.7.2)
- Newtonsoft.Json(>= 12.0.3)
- System.Text.Json(>= 4.7.2)
- Newtonsoft.Json(>= 12.0.3)
- System.Text.Json(>= 4.7.2)