OpenAPI (f.k.a Swagger) Specification code generator. Supports C#, PowerShell, Go, Java, Node.js, TypeScript, Python
Перейти к файлу
Johannes Bader 59c3bf48d7 Batch mode (#2443)
* batch mode

* test case

* updated regen

* version bump
2017-07-14 17:12:54 -07:00
.vscode Support adhoc config (#2291) 2017-05-24 15:32:30 -07:00
Samples Batch mode (#2443) 2017-07-14 17:12:54 -07:00
Tools version bump 2017-07-12 15:11:35 -07:00
docs Enum stuff (#2394) 2017-06-27 10:57:27 -07:00
package Updating nuget package metadata (#2285) 2017-05-23 12:14:30 -07:00
schema base classes can now have x-ms-discriminator-value extension on them (#2115) 2017-04-06 10:25:34 -07:00
src Batch mode (#2443) 2017-07-14 17:12:54 -07:00
.gitattributes Bootstrapper (#1866) 2017-02-23 10:53:00 -08:00
.gitignore level up (#2308) 2017-06-01 09:04:20 -07:00
.ruby-version add in a root level gemfile so that we will have all ruby test dependencies declared at root 2015-07-27 23:28:54 -07:00
.travis.yml Updated travis to use go 1.8.3 (#2330) 2017-06-05 08:47:59 -07:00
AutoRest.sln Simplify JsonRpc client. (#2408) 2017-07-05 16:02:04 -07:00
AutoRest.sln.DotSettings Update entire build system to use Dotnet-CLI tools (-004812 or higher!) (#1827) 2017-02-14 13:28:57 -08:00
ChangeLog.md Adding release notes for 0.16.0 release 2016-05-11 15:41:15 -07:00
Dockerfile Add @lmazuel's Dockerfile from lmazuel/autorest-docker 2017-03-10 09:33:04 -08:00
Gemfile Updated gemfiles to support faraday. 2015-08-07 12:06:04 +03:00
Issues.md Page with links to Issues Queries 2016-06-15 14:02:05 -07:00
LICENSE update copyright year 2016-08-19 15:55:59 -07:00
README.md version bump 2017-07-12 15:11:35 -07:00
VERSION bump version 2017-07-14 06:33:11 -07:00
global.json Update global.json 2017-06-01 12:03:28 -07:00
gulpfile.iced Python update (#2391) 2017-06-29 14:22:38 -07:00
package.json level up (#2308) 2017-06-01 09:04:20 -07:00
pom.xml Use the latest java runtimes (#2279) 2017-05-21 22:24:02 +02:00

README.md

AutoRest
Repo Status

The AutoRest tool generates client libraries for accessing RESTful web services. Input to AutoRest is a spec that describes the REST API using the Open API Initiative format.

Support Policy

AutoRest is an open source tool -- if you need assistance, first check the documentation. If you find a bug or need some help, feel free to submit an issue

AutoRest will release a stable version on the second Wednesday of the month.

Using npm you can upgrade to the latest stable version of AutoRest:

# Install latest autorest package
npm install -g autorest

# Update the generator plugins to the latest stable version
autorest --reset

You can still access the nightly build of the generator plugins by using --prerelease on the autorest command line:

# install the latest nightly autorest generators 
autorest --latest --prerelease 

# revert back to the latest stable release of autorest generators:
autorest --reset 

If you're living life on the edge (and know what you're doing!) you can access the next version of the main autorest package from npm:

# install the 'next' version of the autorest package 
npm install autorest@next 

# revert to the 'stable' version of the autorest package 
npm install autorest@latest 

Features-in-progress in AutoRest will be found in the 'next' version, and use at your own risk :D

What's Next

The finishing touches on the extension model are being made right now in the @next version of autorest, which will make it possible to install and manage extensions on a fine-grained level, as well as being able to publish a plugin written in different languages.

We've already started on the path to OpenAPI 3 support, a new code modeler, which will lead to generators for some languages, and new language support!

Installing Autorest

Installing AutoRest on Windows, MacOS or Linux involves two steps:

  1. Install Node.js (7.10.0 or greater)

for more help, check out Installing Node.JS on different platforms

  1. Install AutoRest using npm
# Depending on your configuration you may need to be elevated or root to run this. (on OSX/Linux use 'sudo' )
npm install -g autorest

Updating Autorest

To update AutoRest if you have previous versions installed, please run:

autorest --latest

or

# Removes all other versions and installs the latest
autorest --reset

For more information, run autorest --help

Status on various platforms:

OS Status
Windows x64 Verified - Working
OSX 10.11 x64 Verified - Working (may have to install openssl manually?)
Ubuntu 14.04 x64 (any) Verified - Working -- use the following commands first:
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install libunwind8 libicu52 -y
Ubuntu 16.04 x64 (desktop) Verified - Working
Ubuntu 16.04 x64 (server or via BashForWindows/WSL) Verified - Working -- use the following commands first:
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install libunwind8 -y
Ubuntu 16.10 x64 Verified - Working -- use the following commands first:
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install libunwind8 -y && wget http://mirrors.kernel.org/ubuntu/pool/main/i/icu/libicu55_55.1-7_amd64.deb && sudo dpkg -i libicu55_55.1-7_amd64.deb

Other Linux platforms might work -- if the platform is listed https://github.com/Azure/autorest/releases/tag/dotnet-runtime-1.0.4 -- there is a fairly good chance that it'll work. As more testing is completed, we'll ensure that we update the status here.

PREVIEW AVAILABLE : Installer EXE for AutoRest now online

You can test out the PREVIEW AutoRest installer from : https://github.com/Azure/autorest/releases/download/dotnet-runtime-1.0.3/AutoInstaller.exe

Note: The Installer is a work-in-progress -- it has been tested for the happy path, some functionality isn't yet implemented:

  • Remove/Uninstall - not yet implemented
  • Upgrade - minimally tested
  • About and Project buttons - not yet implemented
  • not yet codesiged
  • no silent/unattended mode yet

    image

Getting Started using AutoRest image

Start by reading the documentation for using AutoRest:

Developers image

Get yourself up and coding in AutoRest

Some information about the internal AutoRest architecture (may need updating!):


Code of Conduct

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.