trait SwaggerSupportSyntax extends Initializable with CorsSupport
- Self Type
- SwaggerSupportSyntax with ScalatraBase with SwaggerSupportBase
- Alphabetic
- By Inheritance
- SwaggerSupportSyntax
- CorsSupport
- Handler
- Initializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
trait
Config extends AnyRef
- Definition Classes
- Initializable
-
abstract
type
ConfigT
- Definition Classes
- Initializable
- implicit class ResponseMessageWithModel extends AnyRef
Abstract Value Members
-
abstract
def
apiOperation[T](nickname: String)(implicit arg0: Manifest[T], arg1: NotNothing[T]): OperationBuilder
- Attributes
- protected
-
abstract
def
applicationDescription: String
- Attributes
- protected
-
implicit abstract
def
configWrapper(config: (SwaggerSupportSyntax.this)#ConfigT): (SwaggerSupportSyntax.this)#Config
- Attributes
- protected
- Definition Classes
- Initializable
-
implicit abstract
def
swagger: SwaggerEngine
- Attributes
- protected
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
augmentSimpleRequest(): Unit
- Attributes
- protected
- Definition Classes
- CorsSupport
-
def
bodyParam(name: String, model: Model): ModelParameterBuilder
- Attributes
- protected
-
def
bodyParam[T](name: String)(implicit arg0: Manifest[T], arg1: NotNothing[T]): ParameterBuilder[T]
- Attributes
- protected
-
def
bodyParam(model: Model): ModelParameterBuilder
- Attributes
- protected
-
def
bodyParam[T](implicit arg0: Manifest[T], arg1: NotNothing[T]): ParameterBuilder[T]
- Attributes
- protected
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- implicit def dataType2string(dt: DataType): String
-
def
description(f: PartialFunction[String, String]): Unit
- Attributes
- protected
-
def
endpoint(value: String): RouteTransformer
- Attributes
- protected
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formParam(name: String, model: Model): ModelParameterBuilder
- Attributes
- protected
-
def
formParam[T](name: String)(implicit arg0: Manifest[T], arg1: NotNothing[T]): ParameterBuilder[T]
- Attributes
- protected
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
handle(req: HttpServletRequest, res: HttpServletResponse): Unit
Handles a request and writes to the response.
Handles a request and writes to the response.
- Definition Classes
- CorsSupport → Handler
-
def
handlePreflightRequest(): Unit
- Attributes
- protected
- Definition Classes
- CorsSupport
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
headerParam(name: String, model: Model): ModelParameterBuilder
- Attributes
- protected
-
def
headerParam[T](name: String)(implicit arg0: Manifest[T], arg1: NotNothing[T]): ParameterBuilder[T]
- Attributes
- protected
-
def
inferSwaggerEndpoint(route: Route): String
- Attributes
- protected
-
def
initialize(config: (SwaggerSupportSyntax.this)#ConfigT): Unit
Initializes the kernel.
Initializes the kernel. Used to provide context that is unavailable when the instance is constructed, for example the servlet lifecycle. Should set the
configvariable to the parameter.- config
the configuration.
- Definition Classes
- SwaggerSupportSyntax → CorsSupport → Initializable
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
models: Map[String, Model]
The currently registered model descriptions for swagger
The currently registered model descriptions for swagger
- returns
a map of swagger models
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
operation(op: Operation): RouteTransformer
- Attributes
- protected
- implicit def parameterBuilder2parameter(pmb: SwaggerParameterBuilder): Parameter
-
def
pathParam(name: String, model: Model): ModelParameterBuilder
- Attributes
- protected
-
def
pathParam[T](name: String)(implicit arg0: Manifest[T], arg1: NotNothing[T]): ParameterBuilder[T]
- Attributes
- protected
-
def
queryParam(name: String, model: Model): ModelParameterBuilder
- Attributes
- protected
-
def
queryParam[T](name: String)(implicit arg0: Manifest[T], arg1: NotNothing[T]): ParameterBuilder[T]
- Attributes
- protected
-
def
registerModel[T]()(implicit arg0: Manifest[T], arg1: NotNothing[T]): Unit
Registers a model for swagger, this method reflects over the class and collects all non-primitive classes and adds those to the swagger defintion
Registers a model for swagger, this method reflects over the class and collects all non-primitive classes and adds those to the swagger defintion
- T
the class of the model to register
- Attributes
- protected
-
def
registerModel(model: Model): Unit
Registers a model for swagger
Registers a model for swagger
- model
the model to add to the swagger definition
- Attributes
- protected
-
def
shutdown(): Unit
A hook to shutdown the class.
A hook to shutdown the class. Bridges the gap between servlet's destroy and filter's destroy.
- Attributes
- protected
- Definition Classes
- Initializable
-
def
swaggerAuthorizations: List[String]
- Attributes
- protected
-
def
swaggerConsumes: List[String]
- Attributes
- protected
-
def
swaggerDefaultMessages: List[ResponseMessage]
- Attributes
- protected
-
def
swaggerEndpointEntries(extract: (Route, HttpMethod) ⇒ Operation): Iterable[Entry]
- Attributes
- protected
-
def
swaggerMeta(s: Symbol, v: Any): RouteTransformer
- Attributes
- protected
-
def
swaggerProduces: List[String]
- Attributes
- protected
-
def
swaggerProtocols: List[String]
- Attributes
- protected
-
def
swaggerTag: Option[String]
- Attributes
- protected
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()