Skip to content


Subversion checkout URL

You can clone with
Download ZIP

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.

Swagger Playframework Sample App


This is a java project to build a stand-alone server which implements the Swagger spec. You can find out more about both the spec and the framework at For more information about Wordnik's APIs, please visit There is an online version of this server at

To build from source

Please follow instructions to build the top-level swagger-core project

To run

The swagger-play2 module lives in a github repository, currently not in maven central. You'll have to add a dependency and a resolver to your Build.scala like this:

  val appDependencies: Seq[sbt.ModuleID] = Seq(
    /* your other dependencies */
    "com.wordnik" %% "swagger-play2" % "1.1.1")

  val main = PlayProject(appName, appVersion, appDependencies, mainLang = JAVA).settings(
    Resolver.url("swagger-core-github-repo", url(""))(Resolver.ivyStylePatterns),
    /* your other resolvers */

then you can run the sample app:

play run

The application will listen on port 9000 and respond to http://localhost:9000/resources.json


Note the following limitations (which will go away very, very soon):

  • - api_key filtering is not implemented
  • Something went wrong with that request. Please try again.