Now let’s focus on how we can set up communication between client and server.
To begin we as so often start with the basic Blazor Webassembly template, but this time ignore the Frontend part.
dotnet new blazorwasm -o tryout_blazor_api --hosted
As well as changing the ports to run on to 8443 for SSL and 8080 for pure HTTP.
"applicationUrl": "https://localhost:8443;http://localhost:8080",
"applicationUrl": "https://localhost:8443;http://localhost:8080",
The resulting code should be like: https://github.com/sukapx/tryout_blazor_api/tree/76fed6f2e3fe1c963aa3bb8c8ff68528e8139a6d
Continue reading “ASP Net Rest API – Swagger”