Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Http][Kiota] Include Kiota API Client code generation as part of the Uno Kiota Extension #2644

Open
kazo0 opened this issue Dec 17, 2024 · 0 comments
Assignees
Labels
area/http kind/enhancement New feature or request.

Comments

@kazo0
Copy link
Contributor

kazo0 commented Dec 17, 2024

Along with work from #2510

Currently, the generation of the kiota classes based on the openapi json/yml spec needs to be done manually before building the project.

See: https://learn.microsoft.com/en-us/openapi/kiota/using#client-generation

We need to find a way to incorporate this into the build process when using the Kiota Uno Extension.

Proposed API

I am imagining something like an IHostBuilder extension method called .UseKiota("PATH_TO_API_SPEC.json") or perhaps on a per client basis like:

hostBuilder.UseHttp((context, services) => services
	.AddKiotaClient("PATH_TO_API_SPEC.json")
	.AddKiotaClient("PATH_TO_A_DIFFERENT_API_SPEC.yml")
);
@kazo0 kazo0 added kind/enhancement New feature or request. triage/untriaged Indicates an issue requires triaging or verification. area/http labels Dec 17, 2024
@kazo0 kazo0 removed the triage/untriaged Indicates an issue requires triaging or verification. label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/http kind/enhancement New feature or request.
Projects
None yet
Development

No branches or pull requests

2 participants