romastyi / sbt-play-boilerplate   0.2.7

Apache License 2.0 GitHub

SBT plugin for Scala code generation for Play! Framework using Swagger 2.0 specs

Scala versions: 2.12 2.11 2.10
sbt plugins: 1.x 0.13

Sonatype Nexus (Snapshots) Maven Central

SBT plugin for Scala code generation for Play! Framework using Swagger 2.0 specs

N.B.

This project is based on sbt-swagger-codegen by UniCredit S.p.A., but provides more complete Swagger 2.0 specification support.

Overview

Like the official swagger-codegen this project aims to generate Scala source code from Swagger 2.0 specification compliant API descriptions. Moreover, you can do it directly within an sbt project.

Compatibility

This code generator is designed specifically for Swagger 2.0 specification. Moreover, it relies on Play! Framework for Json marshalling/unmarshalling, server- and client-side code.

Plugin version Play 2.3.x Play 2.4.x Play 2.5.x Play 2.6.x Play 2.7.x
0.1.x
0.2.x ✔ *

*) Experimental support.

Install

Enable it inside your project\plugins.sbt like this:

addSbtPlugin("com.github.romastyi" % "sbt-play-boilerplate" % "latest version in badge")

Enable it in your build.sbt like this:

enablePlugins(PlayBoilerplatePlugin)

Quick start

For a super fast hands-on tutorial refer to the related examples and check out sbt-play-boilerplate-examples.

Authors:

Original sbt-swagger-codegen project authors:

This project: