autorest/Samples
Johannes Bader 859628f72c support --use=package@version (#2574)
* support --use=package@version

* sanit

* CI job update

* unbull

* try resolve locally first

* Java bump

* regen

* miss
2017-09-12 16:58:25 -07:00
..
1a-code-generation-minimal merge 2.0 into master (#2554) 2017-08-28 10:57:39 -07:00
1b-code-generation-multilang support --use=package@version (#2574) 2017-09-12 16:58:25 -07:00
1c-multiple-input-swaggers merge 2.0 into master (#2554) 2017-08-28 10:57:39 -07:00
1d-common-settings merge 2.0 into master (#2554) 2017-08-28 10:57:39 -07:00
2a-validation merge 2.0 into master (#2554) 2017-08-28 10:57:39 -07:00
2b-suppressions merge 2.0 into master (#2554) 2017-08-28 10:57:39 -07:00
3a-literate-swagger merge 2.0 into master (#2554) 2017-08-28 10:57:39 -07:00
3b-custom-transformations empty class support (#2572) 2017-09-07 15:09:21 -07:00
3c-guards merge 2.0 into master (#2554) 2017-08-28 10:57:39 -07:00
3d-custom-validation merge 2.0 into master (#2554) 2017-08-28 10:57:39 -07:00
3e-batch-mode merge 2.0 into master (#2554) 2017-08-28 10:57:39 -07:00
3f-example-generation support --use=package@version (#2574) 2017-09-12 16:58:25 -07:00
test support --use=package@version (#2574) 2017-09-12 16:58:25 -07:00
readme.md level up (#2308) 2017-06-01 09:04:20 -07:00

readme.md

Samples

The samples in this folder cover a wide variety of AutoRest features in a tutorial fashion:

  1. Common code generation scenarios
  2. Validation
  3. Advanced topics, e.g.
    • custom transformations
    • conditional configuration

Running an example

To run any of these examples, call

autorest <path to configuration file>

For instance, if the current directory is this folder (<repo>/Samples), you may run

autorest 1a-code-generation-minimal/readme.md

Alternatively, you may run

autorest 1a-code-generation-minimal

since AutoRest automatically searches folders for a configuration file.