Skip to content

SAIF.Platform.Kiota.HttpClientLibrary

Examples

<KiotaReference Include="PetStoreClient" OpenApi="https://raw.githubusercontent.com/OAI/OpenAPI-Specification/f1852bd4bd89bf96ed929179f9f52cfa6621accb/examples/v2.0/yaml/petstore-expanded.yaml" />
<KiotaReference Include="PetStoreClient" OpenApi="https://raw.githubusercontent.com/OAI/OpenAPI-Specification/f1852bd4bd89bf96ed929179f9f52cfa6621accb/examples/v2.0/yaml/petstore-expanded.yaml">
  <IncludePath>/pets;/pets/{id}#GET</IncludePath>
</KiotaReference>

Kiota Cli Reference

Command

kiota generate

Mappings

Property Option Example Default Value
Include required parameter (sets default output path/class) Required
OpenApi -d, --openapi <path> <OpenApi>path/to/file.yml</OpenApi> <OpenApi>http://example.com/file.yml</OpenApi> see kiota generate --help
Manifest -a, --manifest <manifest> <Manifest>path/to/manifest.json</Manifest> see kiota generate --help
OutputPath -o, --output <path> <OutputPath>path/to/output</OutputPath> Include Path
Language -l, --language <language> <Language>java</Language> CSharp
ClassName -c, --class-name <name> <ClassName>MyClass</ClassName> Include Filename
NamespaceName -n, --namespace-name <name> <NamespaceName>MyNamespace</NamespaceName> ProjectName
LogLevel --ll, --log-level <level> <LogLevel>debug</LogLevel> see kiota generate --help
BackingStore -b, --backing-store <BackingStore>true</BackingStore> see kiota generate --help
ExcludeBackwardCompatible --ebc, --exclude-backward-compatible <ExcludeBackwardCompatible>true</ExcludeBackwardCompatible> true
AdditionalData --ad, --additional-data <AdditionalData>true</AdditionalData> see kiota generate --help
Serializer -s, --serializer <classes> <Serializer>JsonSerializer</Serializer> see kiota generate --help
Deserializer --deserializer, --ds <classes> <Deserializer>JsonDeserializer</Deserializer> see kiota generate --help
CleanOutput --clean-output, --co <CleanOutput>true</CleanOutput> true
StructuredMimeTypes -m, --structured-mime-types <structured-mime-types> `application/json