Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 2.37 KB

README.md

File metadata and controls

27 lines (18 loc) · 2.37 KB

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.

Swagger.Codegen.Net Build status

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 ;-))

Options

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.

Examples

swagger.exe --url "http://petstore.swagger.wordnik.com/api/api-docs" --apiname PetStore