You can now use Microsoft Kiota within Visual Studio Code

Rabeb Othmani

We are happy to announce that Microsoft Kiota, our code generator for REST HTTP APIs described by OpenAPI, is now available on Visual Studio Code as an extension.

Kiota is a client generator for HTTP REST APIs described by OpenAPI. The experience is available as a command-line tool and as a Visual Studio Code extension. Kiota helps eliminate the need to take a dependency on a different API client for every API that you need to call, as well as limiting the generation to the exact API surface area you’re interested in, thanks to a filtering capability.

In a matter of seconds, you can use Kiota for the following:

  • Search for API descriptions
  • Filter and select the API endpoints you need
  • Generate models and a chained method API surface in the language of your choice
  • Call the API with the new client

Microsoft Kiota extension for Visual Studio Code

This Visual Studio Code extension adds a rich UI for the Kiota experience. The features include all Kiota capabilities such as search for API descriptions, filtering and generating API clients and more.

Getting started with the extension

Once the extension is installed, you will to see the commands available to you.

• Once the extension is installed, you will be able to see the commands available to you.

Search for an API description using a keyword.

Search for an API description using a keyword.

Search results from keywords

 

Select the OpenAPI description you are interested in, and you will be presented with the Kiota OpenAPI Explorer containing all the available endpoints.

• Select the OpenAPI description you are interested in, and you will be presented with the Kiota OpenAPI Explorer containing all the available endpoints.

 

Select the endpoints to include in your API client.

Select the endpoints to include in your API client.

 

Finally, you can generate the API client. You will be prompted to provide some parameters for your client such as the class and namespace names. You also need to select the language for the generated client.

Kiota generation of the GitHub API client.

 

Try out the extension!

We’re excited to bring the Kiota experience to Visual Studio Code and can’t wait for you to try it out. We look forward to hearing your feedback about how we can continue to make Kiota even better.

For more information, visit Microsoft Graph Dev Center. Follow us on Microsoft 365 Developer (@Microsoft365Dev) / Twitter for the latest news.

Happy coding!

0 comments

Discussion is closed.

Feedback usabilla icon