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" % "0.2.2")
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:
- Andrea Peruffo: https://github.com/andreaTP
- Francesco Montecuccoli Degli Erri https://github.com/fralken
- Marco Firrincieli: https://github.com/mfirry
This project:
- Puchka Roman: https://github.com/romastyi