SwaggerSupportSyntax

org.scalatra.swagger.SwaggerSupportSyntax
See theSwaggerSupportSyntax companion object
trait SwaggerSupportSyntax extends Initializable, CorsSupport

Attributes

Companion
object
Graph
Supertypes
trait CorsSupport
trait Handler
trait Initializable
class Object
trait Matchable
class Any
Show all
Known subtypes
Self type
ScalatraBase & SwaggerSupportBase

Members list

Type members

Classlikes

implicit class ResponseMessageWithModel(message: ResponseMessage)

Attributes

Supertypes
class Object
trait Matchable
class Any

Inherited classlikes

trait Config

Attributes

Inherited from:
Initializable
Supertypes
class Object
trait Matchable
class Any

Inherited types

type ConfigT

Attributes

Inherited from:
Initializable

Value members

Concrete methods

def initialize(config: ConfigT): Unit

Initializes the kernel. Used to provide context that is unavailable when the instance is constructed, for example the servlet lifecycle. Should set the config variable to the parameter.

Initializes the kernel. Used to provide context that is unavailable when the instance is constructed, for example the servlet lifecycle. Should set the config variable to the parameter.

Value parameters

config

the configuration.

Attributes

def models: Map[String, Model]

The currently registered model descriptions for swagger

The currently registered model descriptions for swagger

Attributes

Returns

a map of swagger models

Inherited methods

def handle(req: HttpServletRequest, res: HttpServletResponse): Unit

Handles a request and writes to the response.

Handles a request and writes to the response.

Attributes

Inherited from:
CorsSupport
protected def shutdown(): Unit

A hook to shutdown the class. Bridges the gap between servlet's destroy and filter's destroy.

A hook to shutdown the class. Bridges the gap between servlet's destroy and filter's destroy.

Attributes

Inherited from:
Initializable

Implicits

Inherited implicits

implicit protected def configWrapper(config: ConfigT): Config

Attributes

Inherited from:
Initializable