swagger-core is a set of java libraries for generating and consuming Swagger definitions built around JAX-RS - head over to GitHub for the source-code and examples on how to start using it.
You need the following installed and available in your $PATH:
- Java 7 (http://java.oracle.com)
- Apache maven 3.0.4 or greater (http://maven.apache.org/)
- Jackson 2.4.5 or greater
To build from source (currently 1.5.9-SNAPSHOT)
# first time building locally mvn -N
This will build the modules. To build sample apps, activate the
mvn install -Psamples
Of course if you don't want to build locally you can grab artifacts from maven central:
Sample Apps - UPDATED
The samples have moved to a new repository and contain various integrations and configurations.
The OpenAPI Specification has undergone 3 revisions since initial creation in 2010. The swagger-core project has the following compatibilities with the OpenAPI Specification:
|Swagger core Version||Release Date||OpenAPI Spec compatibility||Notes||Status|
|1.5.8 (current stable)||2016-03-11||2.0||tag v1.5.8||Supported|