2017-04-08 01:41:51 +03:00
|
|
|
# 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
|
2017-06-01 19:04:20 +03:00
|
|
|
- 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.
|