No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
project
src
.gitignore
README.md
build.sbt

README.md

raml2play

raml2play is a sbt plugin for play framework 2.4, which replaces the default routes definition syntax used in conf/routes with RAML 0.8. This plugin inspired by sbt-play-raml.

Usage

  • add the following lines to your sbt plugins file project/plugins.sbt:

      addSbtPlugin("bavadim" % "raml2play" % "0.0.1")
      resolvers += Resolver.url("bavadim", url("https://dl.bintray.com/bavadim/sbt-raml-plugins"))(Resolver.ivyStylePatterns)
    
  • create your RAML routes file in conf/api.raml

  • add controller reference in first row of HTTP method description:

      /:
        get:
          description: |
            @controllers.Application.index