Skip to content

Commit 1bf4bd0

Browse files
authored
Update swagger directory-Generate from official swagger specs (#14311)
1 parent 92af16c commit 1bf4bd0

37 files changed

+19
-6
lines changed

sdk/digitaltwins/Azure.DigitalTwins.Core/src/autorest.md

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,29 @@
11
# Azure.DigitalTwins.Core
22

3+
## Azure DigitalTwins swagger
4+
5+
## Local copy of the swagger document
6+
7+
A local copy of the official swagger documents are stored in this directory for convenience and testing purposes. Please make sure that you do not use these swagger documents for official code generation purposes.
8+
9+
## Official swagger document
10+
11+
The official swagger specification for Azure DigitalTwins can be found [here](https://raw.githubusercontent.com/Azure/azure-rest-api-specs/97db8d1015c2780c2704fe0f55537ff1f4740140/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/digitaltwins.json).
12+
13+
## Code generation
14+
315
Run `generate.ps1` in this directory to generate the code.
416

5-
### AutoRest Configuration
6-
> see https://aka.ms/autorest
17+
## AutoRest Configuration
18+
19+
> see <https://aka.ms/autorest>
720
821
``` yaml
9-
#when generating from local changes:
10-
input-file: $(this-folder)/swagger/digitaltwins.json
22+
#when generating from official source - The raw link must have a commit hash for C# generator
23+
input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/97db8d1015c2780c2704fe0f55537ff1f4740140/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/digitaltwins.json
1124

12-
#when generating from official source
13-
#require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c3dd5df2863101b56eef256b810927cdcc4e44d2/specification/digitaltwins/data-plane/readme.md
25+
#if you want to generate using local changes:
26+
#input-file: $(this-folder)/swagger/2020-05-31-preview/digitaltwins.json
1427

1528
#azure-arm: true
1629
#license-header: MICROSOFT_MIT_NO_VERSION

0 commit comments

Comments
 (0)