updated to match templates

This commit is contained in:
Tony Tam 2012-09-23 20:13:05 -07:00
parent 5671bcf746
commit ac9cff08d4
4 changed files with 3 additions and 4 deletions

View File

@ -2,7 +2,6 @@ package com.wordnik.swagger.app
import com.wordnik.swagger.core.SwaggerSpec
import org.scalatra.swagger.{JacksonSwaggerBase, Swagger}
import org.scalatra.ScalatraServlet
import org.json4s.{DefaultFormats, Formats}

View File

@ -15,7 +15,7 @@ class PetApi (implicit val swagger: Swagger) extends ScalatraServlet with TypedP
protected implicit val jsonFormats: Formats = DefaultFormats
protected val applicationDescription: String = "PetApi"
override protected val applicationName = Some("pet")
override protected val applicationName: Option[String] = Some("pet")
def swaggerToModel(cls: Class[_]) = {
val docObj = ApiPropertiesReader.read(cls)

View File

@ -15,7 +15,7 @@ class StoreApi (implicit val swagger: Swagger) extends ScalatraServlet with Type
protected implicit val jsonFormats: Formats = DefaultFormats
protected val applicationDescription: String = "StoreApi"
override protected val applicationName = Some("store")
override protected val applicationName: Option[String] = Some("store")
def swaggerToModel(cls: Class[_]) = {
val docObj = ApiPropertiesReader.read(cls)

View File

@ -15,7 +15,7 @@ class UserApi (implicit val swagger: Swagger) extends ScalatraServlet with Typed
protected implicit val jsonFormats: Formats = DefaultFormats
protected val applicationDescription: String = "UserApi"
override protected val applicationName = Some("user")
override protected val applicationName: Option[String] = Some("user")
def swaggerToModel(cls: Class[_]) = {
val docObj = ApiPropertiesReader.read(cls)