forked from loafle/openapi-generator-original
updated to match templates
This commit is contained in:
parent
5671bcf746
commit
ac9cff08d4
@ -2,7 +2,6 @@ package com.wordnik.swagger.app
|
|||||||
|
|
||||||
import com.wordnik.swagger.core.SwaggerSpec
|
import com.wordnik.swagger.core.SwaggerSpec
|
||||||
import org.scalatra.swagger.{JacksonSwaggerBase, Swagger}
|
import org.scalatra.swagger.{JacksonSwaggerBase, Swagger}
|
||||||
|
|
||||||
import org.scalatra.ScalatraServlet
|
import org.scalatra.ScalatraServlet
|
||||||
import org.json4s.{DefaultFormats, Formats}
|
import org.json4s.{DefaultFormats, Formats}
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ class PetApi (implicit val swagger: Swagger) extends ScalatraServlet with TypedP
|
|||||||
protected implicit val jsonFormats: Formats = DefaultFormats
|
protected implicit val jsonFormats: Formats = DefaultFormats
|
||||||
|
|
||||||
protected val applicationDescription: String = "PetApi"
|
protected val applicationDescription: String = "PetApi"
|
||||||
override protected val applicationName = Some("pet")
|
override protected val applicationName: Option[String] = Some("pet")
|
||||||
|
|
||||||
def swaggerToModel(cls: Class[_]) = {
|
def swaggerToModel(cls: Class[_]) = {
|
||||||
val docObj = ApiPropertiesReader.read(cls)
|
val docObj = ApiPropertiesReader.read(cls)
|
||||||
|
@ -15,7 +15,7 @@ class StoreApi (implicit val swagger: Swagger) extends ScalatraServlet with Type
|
|||||||
protected implicit val jsonFormats: Formats = DefaultFormats
|
protected implicit val jsonFormats: Formats = DefaultFormats
|
||||||
|
|
||||||
protected val applicationDescription: String = "StoreApi"
|
protected val applicationDescription: String = "StoreApi"
|
||||||
override protected val applicationName = Some("store")
|
override protected val applicationName: Option[String] = Some("store")
|
||||||
|
|
||||||
def swaggerToModel(cls: Class[_]) = {
|
def swaggerToModel(cls: Class[_]) = {
|
||||||
val docObj = ApiPropertiesReader.read(cls)
|
val docObj = ApiPropertiesReader.read(cls)
|
||||||
|
@ -15,7 +15,7 @@ class UserApi (implicit val swagger: Swagger) extends ScalatraServlet with Typed
|
|||||||
protected implicit val jsonFormats: Formats = DefaultFormats
|
protected implicit val jsonFormats: Formats = DefaultFormats
|
||||||
|
|
||||||
protected val applicationDescription: String = "UserApi"
|
protected val applicationDescription: String = "UserApi"
|
||||||
override protected val applicationName = Some("user")
|
override protected val applicationName: Option[String] = Some("user")
|
||||||
|
|
||||||
def swaggerToModel(cls: Class[_]) = {
|
def swaggerToModel(cls: Class[_]) = {
|
||||||
val docObj = ApiPropertiesReader.read(cls)
|
val docObj = ApiPropertiesReader.read(cls)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user