romastyi / sbt-play-boilerplate

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

GitHub

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. Generated server- and client-side code is compatible with 2.6.x, 2.5.x, 2.4.x, 2.3.x Play! Framework versions.

Install

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

addSbtPlugin("com.github.romastyi" % "sbt-play-boilerplate" % "0.1.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:

This project: