Git Product home page Git Product logo

typespec-azure's Introduction

TypeSpec Azure Libraries

TypeSpec is a language for describing cloud service APIs and generating other API description languages, client and service code, documentation, and other assets.

This repository adds common Azure-specific TypeSpec libraries to the TypeSpec core that is pulled in as a git submodule.

Try TypeSpec without installing anything

You can try TypeSpec on the web without installing anything. TypeSpec playground for Azure services

Prerequisites

  • Please install Node.js 16 LTS and ensure you are able to run the npm command in a command prompt: npm --version.
  • It is recommended to have npm 7+. To update npm run npm install -g npm

Getting Started

For TypeSpec language documentation, see https://microsoft.github.io/typespec.

If you are team working on Azure, see TypeSpec Azure development documentation https://azure.github.io/typespec-azure. You should pre-install as well @azure-tools/typespec-azure-core to define Azure resources, and @azure-tools/typespec-autorest to export in Swagger:

npm install @typespec/rest @typespec/openapi3 @azure-tools/typespec-azure-core @azure-tools/typespec-autorest

If you plan to use the output openapi with autorest or any of the azure sdk tooling you should use typespec-autorest, the openapi3 emitter is not going to have any of the ms extensions (pageable, lro, client name, etc.) and so it will be losing information.

Build Pipelines

Information on using TypeSpec within build pipelines can be found here

Packages

Name Changelog Latest Next
@azure-tools/typespec-autorest Changelog
@azure-tools/typespec-azure-core Changelog
@azure-tools/typespec-resource-manager Changelog

@next version of the package are the latest versions available on the main branch.

Package Layering

The main packages in this repository can be considered a series of layers which progressively add functionality for specific scenarios:

typespec-azure's People

Contributors

allenjzhang avatar archerzz avatar dependabot[bot] avatar iscai-msft avatar mario-guerra avatar markcowl avatar tadelesh avatar timotheeguerin avatar weshaggard avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.