Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

OpenAPI based HTTP Client code generator

License

NotificationsYou must be signed in to change notification settings

microsoft/kiota

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DotnetCodeQLCoverageSonarcloud Status

Kiota is a command line tool for generating an API client to call any OpenAPI described API you are interested in. The goal is to eliminate the need to take a dependency on a different API SDK for every API that you need to call. Kiota API clients provide a strongly typed experience with all the features you expect from a high quality API SDK, but without having to learn a new library for every HTTP API.

This library builds on top of theMicrosoft.OpenAPI.NET library to ensure comprehensive support for APIs that use OpenAPI descriptions. One of the goals of the project is to provide the best code generator support possible for OpenAPI and JSON Schema features. Theconceptual documentation describes how kiota works and the high level concepts, this readme documents how to get started with Kiota.

Getting started

Generating SDKs

  1. Install required tools and dependencies. (refer to theSupported Languages table under theRequired tools & dependencies column)
  2. Get Kiota using one of theavailable options.
  3. Generate your API client, checkout theParameters reference for the different options.
  4. Start calling your API using your fluent API Client.

Supported languages

The following table provides an overview of the languages supported by Kiota and the progress in the implementation of the different components.

LanguageGenerationAbstractionsSerializationAuthenticationHTTPRequired tools & dependencies
CLI🛠️(see CSharp) +🛠️(see CSharp)(see CSharp)(see CSharp)link
CSharpFORM,JSON,MULTIPART,TEXTAnonymous,API Key,Azurelink
Dart🛠️🛠️🛠️ FORM,🛠️ JSON,🛠️ MULTIPART,🛠️ TEXT🛠️ Anonymous,🛠️ API Key🛠️link
GoFORM,JSON,MULTIPART,TEXTAnonymous,API Key,Azurelink
JavaFORM,JSON,MULTIPART,TEXTAnonymous,API Key,Azurelink
PHPJSON,FORM,MULTIPART,TEXTAnonymous,✔️ PHP Leaguelink
PythonFORM,JSON,MULTIPART,TEXTAnonymous,Azurelink
Ruby🛠️🛠️❌ FORM,JSON,❌ MULTIPART,❌ TEXTAnonymous,OAuth2🛠️
Swift🛠️❌ FORM,❌ JSON,❌ FORM,❌ TEXTAnonymous,❌ Azure
TypeScript/JavaScript🛠️🛠️FORM,JSON,MULTIPART,TEXTAnonymous,API Key,Azure,SPFx🛠️link

Legend: ✔ -> stable, 🛠️ -> in preview, ❌ -> not started, ▶ -> in progress.

Parameters reference

Parameters are documentedhere.

Debugging

Make sure youinstall the pre-requisites first. If you are using Visual Studio Code as your IDE, thelaunch.json file already contains the configuration to run Kiota. By default this configuration will use theopenApiDocs/v1.0/Mail.yml under thePowerShell repository as the OpenAPI to generate an SDK for. By default this configuration will output the generated files in a graphdotnetv4|graphjavav4|graphtypescriptv4 folder located in the parent folder this repository is cloned in.

Selecting the language you want to generate an API client for in the Visual Studio Debug tab and hittingF5 will automatically build, start, and attach the debugging process to Kiota.

Samples

You can find samples of clients generated with Kiota in theKiota samples repository.

An example of an application that is calling multiple API can be found in theKiotaApp repo

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to aContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant usthe rights to use your contribution. For details, visithttps://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to providea CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructionsprovided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted theMicrosoft Open Source Code of Conduct.For more information see theCode of Conduct FAQ orcontactopencode@microsoft.com with any additional questions or comments.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsofttrademarks or logos is subject to and must followMicrosoft's Trademark & Brand Guidelines.Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.Any use of third-party trademarks or logos are subject to those third-party's policies.


[8]ページ先頭

©2009-2025 Movatter.jp