Core
Guides v2.x
2

RequestInput #

KuzzleRequest input, normalizing a Kuzzle API call in JSON format.

This is the class used to build the input property of any KuzzleRequest object.

Technical information: github repository


Constructor #

new RequestInput(data);

ArgumentsTypeDescription
data
object
API request, in JSON format

data #

The data object can contain the following properties:

PropertiesTypeDescription
_id
string
Resource unique identifier
action
string
Invoked API controller's action
body
object
KuzzleRequest specific data (document content, search queries, ...)
collection
string
Collection
controller
string
Invoked API controller
index
string
Index
jwt
string
Authentication token
volatile
object
KuzzleRequest volatile data
...
*
Unrecognized properties are considered request specific, and stored in the args object property

Properties #

PropertiesTypeDescription
action
string
Invoked API controller's action
args
object
KuzzleRequest specific arguments
body
object
KuzzleRequest specific data
controller
string
Invoked API controller
jwt
string
Authentication token
resource
object
Stored resource target
volatile
object
KuzzleRequest volatile data

resource #

The resource property contains resources information:

PropertiesTypeDescription
_id
string
Resource unique identifier
collection
string
Collection
index
string
Index