Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 2.19 KB

File metadata and controls

45 lines (29 loc) · 2.19 KB
code type title description
false
page
Properties | Framework | Core
Controller abstract class properties

Controller

The Controller abstract class is the base class used to declare new controllers. Those controllers instances are meant to be used with the BackendController.use method.

See also the API Controllers guide.

app

Type Description
Backend
Reference to the instantiated Backend class

sdk

This property is an instance of the EmbeddedSDK class that allows to interact with the Kuzzle API.

Type Description
EmbeddedSDK
EmbeddedSDK instance

See also the Embedded SDK guide.

name

Type Description
string
Optional controller name. It will be inferred from the class name if not set

definition

This property is an instance of the BackendStorage class that allows to interact directly with Elasticsearch.

Type Description
ControllerDefinition
A valid ControllerDefinition object defining the controller actions list.