Facilitate HTTP Requests Using Refit in .Net Core
What is Refit?
Refit is a type-safe REST client for .NET. Its a type safe wrapper to interacting with Apis. It internally take care for serialization and deserialization. Refit automatically generate code based on defined interface.
SDK Requirements
Refit 6 requires Visual Studio 16.8 or higher, or the .NET SDK 5.0.100 or higher. It can target any .NET Standard 2.0 platform.
Refit 6 does not support the old packages.config format for NuGet references (as they do not support analyzers/source generators). You must migrate to PackageReference to use Refit v6 and later.
Get Started to consume Refit: