Tag Archives: WebApi
January 13, 2016Posted by on
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:
- Generate a Swagger metadata (.json file) for WebApi [If you don’t have one already] May be using Swashbuckle is the easiest way.
- Download and install Azure SDK
- 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.