swagger-core 0,0,2,4,0,8,12,1 travis-ci

Examples and server integrations for generating the Swagger API Specification, which enables easy access to your REST API

2 years after

Swagger Core library

Build Status Maven Central PR Stats Issue Stats

Javadocs for annotations with the current release are available online.

The goal of Swagger™ is to define a standard, language-agnostic interface to REST APIs which allows both humans and computers to discover and understand the capabilities of the service without access to source code, documentation, or through network traffic inspection. When properly defined via Swagger, a consumer can understand and interact with the remote service with a minimal amount of implementation logic. Similar to what interfaces have done for lower-level programming, Swagger removes the guesswork in calling the service.

Swagger-core is the Java implementation of Swagger. Current version supports JAX-RS and plain servlets. Integration with the Play! framework has been moved to Swagger-Play.

Check out Swagger-Spec for additional information about the Swagger project, including additional libraries with support for SpringMVC, other languages and more.

Swagger Screenshot

See the Wiki!

The github wiki contains documentation, samples, contributions, etc. Start there.


The following methods are available to obtain support for Swagger:

  • The Swagger Google Group - This would normally be your first stop to get support for Swagger. Here you can find previously asked question, and ask new ones. When asking a question, please provide as much information as you can regarding the environment you use (development language, library, versions.
  • The Issues tab - Please open feature requests and bugs here. If you're not sure you encountered a bug, or if it's a general usage question, please use the Google Group mentioned above.
  • IRC! you can find us on freenode in the channel #Swagger. You can talk with us directly there.

Get started with Swagger!

See the guide on getting started with swagger to get started with adding swagger to your API.


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.14-SNAPSHOT 2.0 master Under Development
1.5.13 (current stable) 2017-03-17 2.0 tag v1.5.13 Supported
1.3.12 2014-12-23 1.2 tag v1.3.12 Supported
1.2.4 2013-06-19 1.1 tag swagger-project_2.10.0-1.2.4 Deprecated
1.0.0 2011-10-16 1.0 tag v1.0 Deprecated

Where is Scala support?

To allow independent development, scala support has been moved into a separate project. See the swagger-scala-module for details. Play! framework support has moved to swagger-play.


This is a project to build the swagger-core library, which is required for the Swagger implementation of the OpenAPI Spec.

Change History

If you're interested in the change history of swagger and the swagger-core framework, see here.


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

To build from source (currently 1.5.11)

# first time building locally
mvn -N

Subsequent builds:

mvn install

This will build the modules.

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.


Copyright 2016 SmartBear Software

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.

Related Repositories



Generates swagger-ui json files for Rails APIs with a simple DSL. ...



Swagger Spec for Clojure Web Apps ...



Swagger support for scala ...



A Swagger assertj test library which compares a contract-first Swagger YAML/JSON ...



Spring MVC integration for Swagger ...

Top Contributors

fehguy webron lugaru1234 frantuma olensmar Helmsdown rpidikiti tomtit ayush iushankin gaalandr elakito MarvGilb adrianbk t1 quilicicf vandeti deepak-michael akkie dastoikov Amyntas mkrogemann mbarbanson ePaul vjousse gobolt azhawkes danielwegener bchazalet johannbarbie


-   v1.5.10 zip tar
-   v1.5.9 zip tar
-   v1.5.8 zip tar
-   v1.5.7 zip tar
-   v1.5.6 zip tar
-   v1.5.5 zip tar
-   v1.5.4 zip tar
-   v1.5.3 zip tar
-   v1.5.3-M1 zip tar
-   v1.5.2 zip tar
-   v1.5.2-M2 zip tar
-   v1.5.2-M1 zip tar
-   v1.5.1 zip tar
-   v1.5.1-M2 zip tar
-   v1.5.1-M1 zip tar
-   v1.5.0 zip tar
-   v1.5.0-M2 zip tar
-   v1.5.0-M1 zip tar
-   v1.3.13_scala-2.11 zip tar
-   v1.3.13_scala-2.10 zip tar
-   v1.3.12 zip tar
-   v1.3.12_scala-2.11 zip tar
-   v1.3.11 zip tar
-   v1.3.11_scala-2.11 zip tar
-   v1.3.10 zip tar
-   v1.3.9 zip tar
-   v1.3.8 zip tar
-   v1.0 zip tar
-   swagger-project_2.10 zip tar
-   swagger-project_2.10 zip tar