Library for easily creating AutoRest extensions in TypeScript/NodeJS
Перейти к файлу
microsoft-github-policy-service[bot] e4cceca78b
Auto merge mandatory file pr
This pr is auto merged as it contains a mandatory file and is opened for more than 10 days.
2023-05-31 18:48:46 +00:00
.scripts updated to common design standards 2018-02-02 14:29:37 -08:00
.vscode updated for standard build settings 2018-02-02 14:33:32 -08:00
lib attempt number two to fix null file issue 2018-09-17 13:36:28 -07:00
.gitignore updated for standard build settings 2018-02-02 14:33:32 -08:00
.npmignore updating publishing 2018-02-02 16:04:28 -08:00
LICENSE Initial commit 2017-12-05 13:41:01 -08:00
SECURITY.md Microsoft mandatory file 2023-01-24 16:44:37 +00:00
code-model-v1.d.ts initial 2017-12-06 13:28:16 -08:00
main.ts update exports to show more 2018-02-06 15:27:52 -08:00
package.json attempt number two to fix null file issue 2018-09-17 13:36:28 -07:00
readme.md updated for standard build settings 2018-02-02 14:33:32 -08:00
tsconfig.json Update tsconfig.json 2018-02-02 15:09:05 -08:00

readme.md

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

AutoRest Extension Base

Allows to easily create an AutoRest extension. See https://github.com/azure/autorest-extension-helloworld for an example of how to reference and use this package. We recommend using that as a starting point.

Usage

import { AutoRestExtension } from "autorest-extension-base";

const extension = new AutoRestExtension();

extension.Add("plugin-name", async autoRestApi => {
  // plugin implementation
  // Available functions:
  // * Information retrieval:
  //       autoRestApi.ListInputs
  //       autoRestApi.ReadFile
  //       autoRestApi.GetValue
  // * Information submission:
  //       autoRestApi.WriteFile
  //       autoRestApi.Message
});

extension.Run();