►► Master Web API development Best Practices: https://bit.ly/3TnqoFQ
►► Build great web apps in Blazor WebAssembly: https://bit.ly/437g87T
►► Support us on Patreon and get the source code: / codemaze
Hi everyone. My name is Marinko Spasojevic, and in this video, I will show you how to use Refit to consume REST APIs in C#.
The Refit library for C# provides us with a type-safe wrapper for interacting with HTTP-based APIs. Instead of using HttpClient, which is provided for us by ASP.NET Core, we can define an interface that represents the API we want to interact with.
With this interface, we define the endpoints (GET, POST, PUT, DELETE) our API contains, along with any route or body parameters. Also, we can include headers in the interface, such as ones for Authorization.
In this video, I will show you how to do all of that.
As usual, If you like the video please don’t forget to hit the like and subscribe buttons. It helps a channel a lot and supports my work here as well.
LINKS MENTIONED IN THE VIDEO
►► Authorize HttpClient- • Authorize Requests With HttpClient an...
FOLLOW US ON SOCIAL MEDIA!
►► / marinko-spasojevic
►► / codemazeblog
►► / codemazeblog