Programming with Palermo

Blazor WebAssembly Using A Single Web API - Episode 4


Listen Later

Code Sample

Json Serialization

With Blazor's implementation of WASM, the front end and the backend of a Blazor C# project is separated. This means that for the WASM project to run on the client side it needs to interact with a server to send and receive data. This is possible using API's however it's far too easy to create many api controllers for every reason to call to the server. With this Json Serialization pattern you will create a single API to send/receive data from the front end to the back end. This patterns prevents the creation of hundreds of API endpoints for Blazor WebAssembly applications as they grow.

This demo will be going over what code is needed to be added to both the frontend and the backend. And how to add additional queries to your application.

Thanks to Clear Measure for sponsoring this episode of Programming with Palermo.

This program is syndicated on many channels. To send a question or comment to the show, email [email protected]. We’d love to hear from you.

To use the private and confidential Chaplain service, use the following              Gentleman: 512-619-6950              Lady: 512-923-8178

...more
View all episodesView all episodes
Download on the App Store

Programming with PalermoBy Jeffrey Palermo