How to consume Data from a Web API using Blazor WebAssembly

  Рет қаралды 8,108

Tech With Pat

Tech With Pat

2 жыл бұрын

In this video, I'm going to show you how to consume a Web API from a Blazor WebAssembly app.
Source code: github.com/techwithpat/Crypto...
Subscribe for more content like this: kzbin.info...
Support the channel: www.buymeacoffee.com/itsmepat...
Where you can find me:
💻 Github: github.com/techwithpat
🌐 Website: www.techwithpat.com
🕴️ LinkedIn: / patrick-tshibanda-4310...
#blazor #webapi #httpclient

Пікірлер: 9
@davestorm6718
@davestorm6718 2 жыл бұрын
Love it! I did not know about Paste JSON as Classes in Visual Studio! What a time saver! Thanks!!!
@broadshare
@broadshare 2 жыл бұрын
I am an experienced c# developer but I always learn a lot from you Pat, thank you so much
@hamgaiteen8897
@hamgaiteen8897 Жыл бұрын
any suggestion on the secure the API with secret, Pat?
@qutiephoebe2154
@qutiephoebe2154 Жыл бұрын
Great vid.👍😁 I'm a bit new to blazor web assembly. 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.
@LimingRen
@LimingRen Жыл бұрын
Do you need to worry about CORS in order to call an external REST API?
@TechWithPat
@TechWithPat Жыл бұрын
Yes, it is the responsibility of the REST API to enable CORS
@TheDuerden
@TheDuerden Жыл бұрын
@@TechWithPat Thank you for this comment, I have been banging my head against CORS errors for a few hours reading through a lot of Microsoft documentation - and it is nice to have confirmed the conclusion that I had come to...
@philipkeefer5948
@philipkeefer5948 Жыл бұрын
@@TechWithPat so your demo did not seem to specify anything related to CORS. Are you saying the rapidapi site has already done CORS configuration for you? In my example, I'm getting CORS error when trying to call an external api from my visual studio project and I'm not sure how to fix it.
@TechWithPat
@TechWithPat Жыл бұрын
@@philipkeefer5948 I think RapidAPI sets the Access-Control-Allow-Origin header to "*" in the response, allowing any origin to make API requests without triggering a CORS error. If you're getting CORS error, check API documentation for specific CORS requirements to follow.
GET Request to API with Blazor/C#
9:17
ZetBit
Рет қаралды 6 М.
Call REST API from ASP NET Core Blazor
9:58
kudvenkat
Рет қаралды 67 М.
бесит старшая сестра!? #роблокс #анимация #мем
00:58
КРУТОЙ ПАПА на
Рет қаралды 3,6 МЛН
Я нашел кто меня пранкует!
00:51
Аришнев
Рет қаралды 3,8 МЛН
ОДИН ДЕНЬ ИЗ ДЕТСТВА❤️ #shorts
00:59
BATEK_OFFICIAL
Рет қаралды 9 МЛН
The day of the sea 🌊 🤣❤️ #demariki
00:22
Demariki
Рет қаралды 105 МЛН
SEC000: Securing Blazor & Web APIs with AAD
30:25
Hassan Habib
Рет қаралды 8 М.
Don't throw exceptions in C#. Do this instead
18:13
Nick Chapsas
Рет қаралды 252 М.
Blazor Consuming API
14:50
DavidSeesSharp
Рет қаралды 3,1 М.
Blazor Authentication with JSON Web Tokens
31:19
Coding Tutorials
Рет қаралды 8 М.
Blazor Basics: Event Handlers
25:34
Just Blazor Programming
Рет қаралды 3,7 М.
бесит старшая сестра!? #роблокс #анимация #мем
00:58
КРУТОЙ ПАПА на
Рет қаралды 3,6 МЛН