# SAIF.Platform.Kiota.HttpClientLibrary

## Examples

```XML
<KiotaReference Include="PetStoreClient" OpenApi="https://raw.githubusercontent.com/OAI/OpenAPI-Specification/f1852bd4bd89bf96ed929179f9f52cfa6621accb/examples/v2.0/yaml/petstore-expanded.yaml" />
```

```XML
<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>` | `<StructuredMimeTypes>application/json</StructuredMimeTypes`>                          | see `kiota generate --help` |
| IncludePath               | `-i, --include-path <include-path>`                   | `<IncludePath>/routes/**;/routes</IncludePath>`                                        | see `kiota generate --help` |
| ExcludePath               | `-e, --exclude-path <exclude-path>`                   | `<ExcludePath>/routes/**;/routes</ExcludePath>`                                        | see `kiota generate --help` |
| DisableValidationRules    | `--disable-validation-rules, --dvr`                   | `<DisableValidationRules>true</DisableValidationRules>`                                | see `kiota generate --help` |
| ClearCache                | `--cc, --clear-cache`                                 | `<ClearCache>true</ClearCache>`                                                        | see `kiota generate --help` |
| DisableSslValidation      | `--disable-ssl-validation, --dsv`                     | `<DisableSslValidation>true</DisableSslValidation>`                                    | see `kiota generate --help` |

---

[View source on GitHub](https://github.com/saif-corp/forge/blob/main/src/dotnet/SAIF.Platform.Kiota.HttpClientLibrary/README.md)
