Important: this repository does not contain a fully working solution, it is work in progress. Unfortunally I have other priorities at the moment and will most likely not proceed with this in the near future. If you would like to continue this work, feel free to contact me or just use the code. License is MIT.
Commandline tool which generates client code for a Swagger enabled API
swagger.exe [options]
This repository tries to provide the same functionality offered by the awesome swagger-codegen but without its Prerequisites (which might be a bit inconvenient in a .Net environment ;-))
Option | Description |
---|---|
-u, --url |
The url of the API which serves the resource listing |
-a, --apiname |
The name of the API |
-n, --namespace |
Specifies the namespace for the generated proxy or template. The default namespace is the global namespace. |
-o, --out |
Specifies the file (or directory) in which to save the generated proxy code. You can also specify a directory in which to create this file. The tool derives the default file name from the API name. |
swagger.exe --url "http://petstore.swagger.wordnik.com/api/api-docs" --apiname PetStore