зеркало из https://github.com/microsoft/kiota.git
Updating code blocks
This commit is contained in:
Родитель
f304b137c0
Коммит
8bd8d950b1
|
@ -37,36 +37,6 @@ Once the `kiota-config.json` file and the API Manifest are updated, the code gen
|
|||
kiota client edit --client-name "graphDelegated" --class-name "GraphServiceClient" --exclude-path "/users/$count"
|
||||
```
|
||||
|
||||
```jsonc
|
||||
{
|
||||
"clients": {
|
||||
"graphDelegated": {
|
||||
"descriptionHash": "9EDF8506CB74FE44...",
|
||||
"descriptionLocation": "https://raw.githubusercontent.com/microsoftgraph/msgraph-metadata/master/openapi/v1.0/openapi.yaml",
|
||||
"includePatterns": ["**/users/**"],
|
||||
"excludePatterns": ["/users/$count"],
|
||||
"language": "csharp",
|
||||
"outputPath": "./generated/graph/csharp",
|
||||
"clientClassName": "GraphServiceClient",
|
||||
"clientNamespaceName": "Contoso.GraphApp",
|
||||
"features": {
|
||||
"serializers": [
|
||||
"Contoso.Json.CustomSerializer"
|
||||
],
|
||||
"deserializers": [
|
||||
"Contoso.Json.CustomDeserializer"
|
||||
],
|
||||
"structuredMimeTypes": [
|
||||
"application/json"
|
||||
],
|
||||
"usesBackingStore": true,
|
||||
"includeAdditionalData": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
_The resulting `kiota-config.json` file will look like this:_
|
||||
|
||||
```jsonc
|
||||
|
@ -77,7 +47,7 @@ _The resulting `kiota-config.json` file will look like this:_
|
|||
"descriptionHash": "9EDF8506CB74FE44...",
|
||||
"descriptionLocation": "https://raw.githubusercontent.com/microsoftgraph/msgraph-metadata/master/openapi/v1.0/openapi.yaml",
|
||||
"includePatterns": ["**/users/**"],
|
||||
"excludePatterns": [],
|
||||
"excludePatterns": ["/users/$count"],
|
||||
"language": "csharp",
|
||||
"outputPath": "./generated/graph/csharp",
|
||||
"clientClassName": "GraphServiceClient",
|
||||
|
|
|
@ -31,10 +31,6 @@ _The resulting `apimanifest.json` file will look like this:_
|
|||
|
||||
```jsonc
|
||||
{
|
||||
"publisher": {
|
||||
"name": "Microsoft Graph",
|
||||
"contactEmail": "graphsdkpub@microsoft.com"
|
||||
},
|
||||
"apiDependencies": { }
|
||||
}
|
||||
```
|
||||
|
|
|
@ -20,7 +20,9 @@ When `kiota config init` is executed, a `kiota-config.json` file would be create
|
|||
```bash
|
||||
kiota config init
|
||||
```
|
||||
_Results in the following `kiota-config.json` file:_
|
||||
|
||||
_The resulting `kiota-config.json` file will look like this:_
|
||||
|
||||
```jsonc
|
||||
{
|
||||
"version": "1.0.0",
|
||||
|
|
|
@ -160,7 +160,6 @@ _The resulting `apimanifest.json` file will look like this:_
|
|||
}
|
||||
```
|
||||
|
||||
|
||||
_The resulting file structure will look like this:_
|
||||
|
||||
```bash
|
||||
|
|
Загрузка…
Ссылка в новой задаче