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