.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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: