{"id":37051980,"url":"https://github.com/ellizio/kiota.autogen","last_synced_at":"2026-01-14T06:00:16.055Z","repository":{"id":249096467,"uuid":"814793618","full_name":"ellizio/Kiota.Autogen","owner":"ellizio","description":"A set of libraries for auto-generating API clients using Kiota","archived":false,"fork":false,"pushed_at":"2025-06-24T15:32:09.000Z","size":59,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-15T05:26:36.164Z","etag":null,"topics":["kiota","openapi-client","openapi-codegen","openapi3","swagger"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ellizio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-13T18:06:04.000Z","updated_at":"2025-06-24T15:27:06.000Z","dependencies_parsed_at":"2025-01-16T09:27:38.671Z","dependency_job_id":"97cd44e9-84d8-4885-8d0a-eda19a6ffaac","html_url":"https://github.com/ellizio/Kiota.Autogen","commit_stats":null,"previous_names":["ellizio/kiota.autogen"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ellizio/Kiota.Autogen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ellizio%2FKiota.Autogen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ellizio%2FKiota.Autogen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ellizio%2FKiota.Autogen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ellizio%2FKiota.Autogen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ellizio","download_url":"https://codeload.github.com/ellizio/Kiota.Autogen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ellizio%2FKiota.Autogen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28412180,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["kiota","openapi-client","openapi-codegen","openapi3","swagger"],"created_at":"2026-01-14T06:00:13.877Z","updated_at":"2026-01-14T06:00:15.934Z","avatar_url":"https://github.com/ellizio.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003cp align=\"center\"\u003e Kiota.Autogen \u003c/p\u003e\r\n\r\n\u003cp align=\"center\"\u003e A set of libraries for auto-generating API clients using \u003ca href=\"https://github.com/microsoft/kiota\"\u003eKiota\u003c/a\u003e \u003c/p\u003e\r\n\r\n---\r\n\r\n## Libraries list\r\n\r\n- [![](https://img.shields.io/nuget/dt/Kiota.Autogen.Swagger?logo=nuget\u0026color=007edf)](https://www.nuget.org/packages/Kiota.Autogen.Swagger/) [Kiota.Autogen.Swagger](src/Kiota.Autogen.Swagger) for generating API client based on [Swashbuckle.AspNetCore](https://github.com/domaindrivendev/Swashbuckle.AspNetCore)\r\n\r\n## Basic Usage\r\n\r\n1. Add a `Class Library` project to the solution that contains WebApi project\r\n2. Add WebApi project reference with `ExcludeAssets=\"All\"`\r\n```xml\r\n\u003cItemGroup\u003e\r\n    \u003cProjectReference Include=\"..\\ExampleService.Api\\ExampleService.Api.csproj\" ExcludeAssets=\"All\" /\u003e\r\n\u003c/ItemGroup\u003e\r\n```\r\n3. Install `Kiota.Autogen.Swagger` with `PrivateAssets=\"All\"`\r\n```xml\r\n\u003cItemGroup\u003e\r\n    \u003cPackageReference Include=\"Kiota.Autogen.Swagger\" Version=\"1.18.0\" PrivateAssets=\"All\" /\u003e\r\n\u003c/ItemGroup\u003e\r\n```\r\n4. Install following `Kiota` packages\r\n```xml\r\n\u003cItemGroup\u003e\r\n    \u003cPackageReference Include=\"Microsoft.Kiota.Abstractions\" Version=\"1.12.4\" /\u003e\r\n    \u003cPackageReference Include=\"Microsoft.Kiota.Http.HttpClientLibrary\" Version=\"1.12.4\" /\u003e\r\n    \u003cPackageReference Include=\"Microsoft.Kiota.Serialization.Form\" Version=\"1.12.4\" /\u003e\r\n    \u003cPackageReference Include=\"Microsoft.Kiota.Serialization.Json\" Version=\"1.12.4\" /\u003e\r\n    \u003cPackageReference Include=\"Microsoft.Kiota.Serialization.Multipart\" Version=\"1.12.4\" /\u003e\r\n    \u003cPackageReference Include=\"Microsoft.Kiota.Serialization.Text\" Version=\"1.12.4\" /\u003e\r\n\u003c/ItemGroup\u003e\r\n```\r\n5. Create a `gensettings.json` file with the following structure\r\n```jsonc\r\n[\r\n  {\r\n    \"name\": \"WeatherClient\", // API client name to be generated\r\n    \"namespace\": \"Weather.Client\", // API client namespace\r\n    \"version\": \"v1\" // WebApi Swagger document version\r\n  },\r\n  {\r\n    \"name\": \"WeatherClientNew\",\r\n    \"namespace\": \"Weather.Client.New\",\r\n    \"version\": \"v2\"\r\n  }\r\n]\r\n```\r\n6. Set up `Class library` project to build as a nuget package\r\n```xml\r\n\u003cPropertyGroup\u003e\r\n    ... other properties\r\n\r\n    \u003cIsPackable\u003etrue\u003c/IsPackable\u003e\r\n    \u003cPackageId\u003eExampleService.Client\u003c/PackageId\u003e\r\n\u003c/PropertyGroup\u003e\r\n```\r\n7. Pack `Class library` project\r\n8. Enjoy using API client\r\n```csharp\r\nusing Microsoft.Kiota.Abstractions.Authentication;\r\nusing Microsoft.Kiota.Http.HttpClientLibrary;\r\nusing Weather.Client;\r\n\r\nusing var httpClient = new HttpClient();\r\nhttpClient.BaseAddress = new Uri(\"http://your_service_url\");\r\n\r\nvar provider = new AnonymousAuthenticationProvider();\r\nusing var adapter = new HttpClientRequestAdapter(provider, httpClient: httpClient);\r\nvar client = new WeatherClient(adapter);\r\n\r\nvar forecasts = await client.Weatherforecast.GetAsync();\r\n```\r\n\r\nSee [full example](https://github.com/ellizio/Kiota.Autogen-Examples/tree/master/1.%20Swagger)\r\n\r\n## Advanced Usage\r\n\r\nYou can provide your own implementations of `Microsoft.Kiota.Abstractions` from the `Class library` project if you need\\\r\nUsage:\r\n```csharp\r\nusing Microsoft.Kiota.Abstractions.Authentication;\r\nusing Microsoft.Kiota.Http.HttpClientLibrary;\r\nusing Weather.Client;\r\n\r\nusing var httpClient = new HttpClient();\r\nhttpClient.BaseAddress = new Uri(\"http://your_service_url\");\r\n\r\nvar provider = new AnonymousAuthenticationProvider();\r\nusing var adapter = new HttpClientRequestAdapter(provider, new WeatherParseNodeFactory(), new WeatherSerializationWriterFactory(), httpClient: httpClient);\r\nvar client = new WeatherClient(adapter);\r\n\r\nvar forecasts = await client.Weatherforecast.GetAsync();\r\n```\r\n\r\nSee [full example](https://github.com/ellizio/Kiota.Autogen-Examples/tree/master/2.%20Advanced)\r\n\r\n## More Examples\r\n\r\nSee more examples [here](https://github.com/ellizio/Kiota.Autogen-Examples)\r\n\r\n## Additional References\r\n\r\n- [Changelog](CHANGELOG.md)\r\n- [Kiota](https://github.com/microsoft/kiota)\r\n- [Swashbuckle.AspNetCore](https://github.com/domaindrivendev/Swashbuckle.AspNetCore)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fellizio%2Fkiota.autogen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fellizio%2Fkiota.autogen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fellizio%2Fkiota.autogen/lists"}