Description
An important scenario for Blazor apps is making calls to Web APIs to get data from the server to the client. Previously, the Blazor WebAssembly app template demonstrated how to set up and make these API calls, but that code was removed when we unified the Blazor mode in .NET 8. So, this doc on making API calls from Blazor is critical for helping users figure out how to set that up themselves.
The doc currently starts out by diving right into authentication scenarios, which is a more advanced scenario. It should instead start with the most basic scenario of making an API call from a Blazor app using an HttpClient. It should then build up to more complex scenarios and more advanced considerations from there.
Page URL
https://learn.microsoft.com/en-us/aspnet/core/blazor/call-web-api?view=aspnetcore-10.0
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/call-web-api.md
Document ID
c7e59a08-1c60-32c2-75fd-33cb77ff7a5d
Platform Id
32bfc271-12a7-7ce3-dcec-43ac2e8c68d7
Article author
@guardrex
Metadata
- ID: 8b5e2e10-ff7b-2b9f-84da-f16028ae2c53
- PlatformId: 32bfc271-12a7-7ce3-dcec-43ac2e8c68d7
- Service: aspnet-core
- Sub-service: blazor
Related Issues
Description
An important scenario for Blazor apps is making calls to Web APIs to get data from the server to the client. Previously, the Blazor WebAssembly app template demonstrated how to set up and make these API calls, but that code was removed when we unified the Blazor mode in .NET 8. So, this doc on making API calls from Blazor is critical for helping users figure out how to set that up themselves.
The doc currently starts out by diving right into authentication scenarios, which is a more advanced scenario. It should instead start with the most basic scenario of making an API call from a Blazor app using an HttpClient. It should then build up to more complex scenarios and more advanced considerations from there.
Page URL
https://learn.microsoft.com/en-us/aspnet/core/blazor/call-web-api?view=aspnetcore-10.0
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/call-web-api.md
Document ID
c7e59a08-1c60-32c2-75fd-33cb77ff7a5d
Platform Id
32bfc271-12a7-7ce3-dcec-43ac2e8c68d7
Article author
@guardrex
Metadata
Related Issues