An open API service indexing awesome lists of open source software.

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#

Awesome Lists containing this project

README

          

[![Build Status](https://travis-ci.org/skrusty/dotswaggen.svg?branch=master)](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.