Swagger Codegen

The Swagger codegen project allows generation of both client libraries and server stubs from a Swagger definition. Once you've read through the below please head over to GitHub to get the latest sources.

Prerequisites

You need the following installed and available in your $PATH:

After cloning the project, you can build it from source with this command:

mvn package

Note! The templates are included in the library generated. If you want to modify the templates, you'll need to either repackage the library OR specify a path to your scripts

Samples, Getting Started, etc

Head over to the GitHub page for detailed documentation for now.

Compatibility

The Swagger Specification has undergone 3 revisions since initial creation in 2010. The swagger-codegen project has the following compatibilies with the swagger specification:

Swagger Codegen Version Release Date Swagger Spec compatibility Notes
2.1.2 2015-06-09 1.0, 1.1, 1.2, 2.0 master
2.0.17 2014-08-22 1.1, 1.2 tag v2.0.17
1.0.4 2012-04-12 1.0, 1.1 tag v1.0.4

View Source on GitHub