Interface: ControllerSpec

Properties
Name Type Description
basePath

The base path on which the Controller API is served. If it is not included, the API is served directly under the host. The value MUST start with a leading slash (/).

definitions DefinitionsObject

JSON Schema definitions of models used by the controller

paths PathsObject

The available paths and operations for the API.

Interface: RestEndpoint

Data structure for REST related metadata

Properties
Name Type Description
path string

Data structure for REST related metadata

spec OperationObject

Data structure for REST related metadata

verb string

Data structure for REST related metadata

getControllerSpec(constructor: Function) : ControllerSpec

Get the controller spec for the given class

Arguments
Name Type Description
constructor Function

Controller class