This post has been republished via RSS; it originally appeared at: Microsoft Tech Community - Latest Blogs - .
@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
