KiotaUiClient is a desktop application built with Avalonia UI that provides a graphical interface for Microsoft's Kiota OpenAPI SDK generator. This tool simplifies the process of generating API client code from OpenAPI specifications.
This application allows you to:
- Generate client code for various programming languages from OpenAPI specifications
- Update existing client code
- Refresh client code from an existing kiota-lock.json file
- .NET 11.0
- Microsoft.OpenAPI.Kiota (installed automatically by the application)
Download a Release for you OS (Windows/Mac/Linux) or build it yourself:
Steps to build (requires the .NET 11 SDK):
git clone https://github.com/archteck/KiotaUiClient.git
cd KiotaUiClient
dotnet build
dotnet test
dotnet run --project src/KiotaUiClientThe application interface includes several fields that correspond to Kiota's command-line options:
-
URL: The URL or file path to the OpenAPI description (required)
-
Namespace: The namespace for the generated code
-
Client Name: The name of the generated client class
-
Language: The target programming language for code generation
- Supported languages: C#, Go, Java, PHP, Python, Ruby, Shell, Swift, TypeScript
-
Access Modifier: The type access modifier (C# only)
- Options: Public, Internal, Protected
-
Destination Folder: The output folder where generated code will be placed (required)
- Browse: Select a destination folder
- Generate Client: Generate a new API client
- Update Client: Update an existing client with the latest version of Kiota
- Refresh Client: Regenerate a client using configuration from kiota-lock.json, if language and access modifier(C# only) provided it will use that instead of the values in kiota-lock.json
- The application manages Kiota's installation using .NET's global tool system
- When generating a client, the application validates your inputs and calls Kiota with appropriate command-line arguments
- The application displays the output from Kiota in the status area
- Enter the OpenAPI description URL (e.g.,
https://api.example.com/openapi.json) - Set the namespace (e.g.,
Example.Api.Client) - Set the client name (e.g.,
ExampleClient) - Select "C#" as the language
- Choose an access modifier (e.g., "Public"), only if C#
- Select a destination folder
- Click "Generate Client"
If you've previously generated a client and have a kiota-lock.json file:
- Select the folder containing your existing client code
- Click "Update Client(Kiota Version)"
If you've previously generated a client and have a kiota-lock.json file:
- Select the folder containing your existing client code
- Click "Refresh Client"
I don't own Kiota, Kiota is a Microsoft tool, this is just a UI to consume the tool, I think the tool is so good, but some people are more used to use UI to generate the API SDK/Client.
See the LICENSE file for details.