https://github.com/skrusty/dotswaggen
DotSwagGen is a command line code generator for the swagger specification written in C#
https://github.com/skrusty/dotswaggen
Last synced: about 1 year ago
JSON representation
DotSwagGen is a command line code generator for the swagger specification written in C#
- Host: GitHub
- URL: https://github.com/skrusty/dotswaggen
- Owner: skrusty
- License: mit
- Created: 2015-01-23T13:35:16.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-07T16:02:20.000Z (over 11 years ago)
- Last Synced: 2025-04-03T07:22:17.878Z (over 1 year ago)
- Language: C#
- Homepage:
- Size: 394 KB
- Stars: 14
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/skrusty/dotswaggen)
# DotSwagGen
DotSwagGen is a command line code generator for the swagger specification. It allows you to generate client code for .NET from a simple swagger spec file which defines a REST Api.
## Templates
DotSwagGen uses a template engine to create code output in any language for a given swagger specification.
Currently there are two templates included, a C# Model and a C# Operation template. You can create your own templates for specific requirements or languages.
## Usage
Usage: dotswaggen -s \ -n test.namespace -o \
-s, --swagger Required. Input files to be processed.
-n, --namespace Required. The namespace to use for generated code
-o, --output Required. The folder to output rendered code to
--t-prefix Prefix the template filename for each template type
--o-prefix Prefix the output filename for each file generated
--o-single-name The filename to write all output to
--help Display this help screen.
## Swagger Spec Support
Currently we only support Swagger 1.2.
1.1 is planned to arrive soon.