Back to Browse

Refit - Great API Client To Turn Your REST API Into a Live Interface

2.8K views
Jul 1, 2024
13:33

►► Check out our courses: https://bit.ly/cdmz-courses ►► Support us on Patreon and get the source code: https://www.patreon.com/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- https://youtu.be/5FXd35Vtuxk FOLLOW US ON SOCIAL MEDIA! ►► https://www.linkedin.com/in/marinko-spasojevic/ ►► https://twitter.com/CodeMazeBlog ►► https://www.facebook.com/CodeMazeBlog

Download

0 formats

No download links available.

Refit - Great API Client To Turn Your REST API Into a Live Interface | NatokHD