Consume REST API from Blazor WebAssembly

preview_player
Показать описание
In this tutorial, I'll show you how to call and consume a REST API service from a Blazor WebAssembly application.
I'll explain how to enable CORS (Cross-Origin Resource Sharing) on the RESTful service side.
You'll learn how to register HttpClient with the address of WebAPI service and inject it to the Razor components.
Finally, I'll show you how to display binary images of categories in the Northwind database.
Рекомендации по теме
Комментарии
Автор

Thank you so much for such a concise yet complete explanation. I couldn't find out why I couldn't consume my API. Turns out I completly forgot about CORS. Keep up the good work !

Valoo
Автор

Good job bro. Very simple yet instructive. Just what I needed to get me off my journey in Blazor WASM

MrNoga
Автор

God bless you man!!! I was having a bad time with this blazor error in the bottom, you save all my work

laurosantana
Автор

Great vid.👍😁 I'm a bit new to blazor web assembly. In the 4:50 of the vid, Can a web assembly consume multiple Web Api base addresses?
Let's say the app is consuming 1 web api from amazon and another web api from Microsoft. Is that possible? Thanks.

qutiephoebe
Автор

سلام اقای شاد .
تدریستون عالی هست ، و از ویدیوتون ممنونم .
میخواستم درخواست کنم یک ویدو بسازید در باره نحوه تعیین سطح دسترسی کاربران با نقش های مختلف به سطوح مختلخ .
authentication .
این مسئله رو زیاد دنبالش میگردم ولی چیزی که اصولی باشه رو پیدا نمیکنم .
از ویدو خوبتون هم متشکرم . ❤❤❤❤❤

موسیامیری-سغ
Автор

Get request works, but i have this samme error for Post request...

krzysztofbarbarski
Автор

کد این آموزش رو نیاز دارم، اگه امکانش هست برام بفرست

amirpanah
Автор

What about DELETE, PUT and POST operations sir?
Thanks for the video anyway!

torrvic
Автор

great video! could you upload the source code to github please?

MegaxAT