1 Generating with autorest for Typescript Track1
Jose Manuel Heredia Hidalgo редактировал(а) эту страницу 2020-10-16 13:18:04 -07:00

Install autorest

npm install -g autorest

CLI Example:

autorest
--typescript --package-name=@azure/ai-anomaly-detector
--input-file=https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/cognitiveservices/data-plane/AnomalyDetector/preview/v1.0/AnomalyDetector.json

Config File Example

  • Readme.md
package-name: "@azure/ai-anomaly-detector"
title: GeneratedClient
description: AnomalyDetector Client
generate-metadata: false
license-header: MICROSOFT_MIT_NO_VERSION
output-folder: ../
source-code-folder-path: ./src/generated
input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/cognitiveservices/data-plane/AnomalyDetector/preview/v1.0/AnomalyDetector.json
add-credentials: false
package-version: "3.0.0-beta.1"

Run in terminal:

autorest ./Readme.md --typescript