SameerDoshi walks us through creating a new Blazor application and how to use the OpenAPI Visual Studio 2022 extension to create a connected service to a Swagger API.
You will need to install the OpenAPI extension.
That will give you the Connected Service Option.
This video walks you through the following steps:
- Creating a new Blazor Application
- Connecting to a Swagger API
- Calling the API
- Injecting the instantiated API Client (So that you only load the config once)
- Refreshing your API connection after updating the Swagger API
References
Github Repos:
- Nextflow Pipeline Project included in this video.
https://github.com/microsoft/nextflow-runner - FireBlaze – Traditional API implementation (the hard way)
https://github.com/microsoft/FhirBlaze
Call a web API from ASP.NET Core Blazor app | Microsoft Docs
https://docs.microsoft.com/en-us/aspnet/core/blazor/call-web-api
Updated Feb 18, 2022
Version 4.0DaveUpton
Microsoft
Joined June 08, 2018
Healthcare and Life Sciences Blog
Follow this blog board to get notified when there's new activity