Tag Archives: WebApi

.Net client SDK for WebApi

Generating a strongly typed client SDK for a WebApi can be feasible and easy now via Swagger metadata and Azure SDK tooling in Visual Studio.

Even if your WebApi is not hosted as an Azure API App. You still can leverage the Azure API App client tool integrated in Visual Studio (Via Azure SDK tooling)

Here are the needed steps, to get your WebApi .Net Client SDK generated:

  1. Generate a Swagger metadata (.json file) for WebApi [If you don’t have one already] May be using Swashbuckle is the easiest way.
  2. Download and install Azure SDK
  3. From Visual Studio, right-click on the project you wish to create your Client SDK in,  then select “Add” => “Azure API App Client…” and select the Swagger metadata file (.json) to create your Client SDK.
Advertisements