Skip to content

Commit

Permalink
Update swagger directory-Generate from official swagger specs (Azure#…
Browse files Browse the repository at this point in the history
  • Loading branch information
azabbasi authored Aug 18, 2020
1 parent 92af16c commit 1bf4bd0
Show file tree
Hide file tree
Showing 37 changed files with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions sdk/digitaltwins/Azure.DigitalTwins.Core/src/autorest.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,29 @@
# Azure.DigitalTwins.Core

## Azure DigitalTwins swagger

## Local copy of the swagger document

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.

## Official swagger document

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).

## Code generation

Run `generate.ps1` in this directory to generate the code.

### AutoRest Configuration
> see https://aka.ms/autorest
## AutoRest Configuration

> see <https://aka.ms/autorest>
``` yaml
#when generating from local changes:
input-file: $(this-folder)/swagger/digitaltwins.json
#when generating from official source - The raw link must have a commit hash for C# generator
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

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

#azure-arm: true
#license-header: MICROSOFT_MIT_NO_VERSION
Expand Down

0 comments on commit 1bf4bd0

Please sign in to comment.