Tailored SDK experiences via Kiota now generally available
We’re happy to announce Kiota, our code generator for HTTP APIs described by OpenAPI, is available to all developers who want to focus on calling APIs in a consistent, robust and reliable way, without having to worry about the messy details of constructing HTTP requests. It is an open-source project, built on GitHub.
What is Kiota?
Kiota is a command line tool for generating an API client to call any OpenAPI described API you are interested in. 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. Kiota API clients provide a strongly typed experience with features you’d expect from a high-quality API client (simple, reliable, secure and scalable), but without having to learn a new library for every HTTP API. It also provides embedded support for retry handling, secure redirects, transparent authentication and automatic payload compression.
We have options to install Kiota. The easiest way would be to use our dotnet tool and install it globally on your environment. It’s as simple as running a single command and you will be able to generate client libraries in no time!
If you want to discover other ways to install Kiota (e.g., web, docker, build, etc.), review the getting started guide.
Using the tool
The first thing you will want to do with Kiota is search for APIs. To achieve this, using the Kiota search command will help identify and choose the right API for your business scenario.
Once you have identified the API to use, use that location with the parameter –openapi to visualize the API structure with the Kiota show command. This will give you confidence in the surface area that you want to generate for your client library. You can specify which paths you want to include by using the include glob pattern –include-path.
You are now only a command away to be able to leverage a rich client library experience. To generate your client library, use the kiota generate command.
Using a Kiota generated client
You can now use the Kiota generated client in your application using standardized API patterns.
Try out the new version today!
We’re excited about this release and can’t wait for you to try it out. We look forward to hearing from you about your experience with the tool and how we can continue to make Kiota even better.
- Learn more about Kiota
- Follow us on @Microsoft365Dev)/Twitter to stay up to date on news and announcements.
- Visit our Microsoft Graph Dev Center | APIs and app development for more resources.