lindex #
Returns the element at the provided index in a list.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/ms/_lindex/<_id>/<index>
Method: GET
Other protocols #
{
"controller": "ms",
"action": "lindex",
"_id": "<key>",
"index": 3
}
Argument #
_id
: list key identifierindex
: index of the list. Lists are 0-indexed. If negative, it goes backward from the end of the list
Response #
Returns the stored value at the provided list index.
{
"requestId": "<unique request identifier>",
"status": 200,
"error": null,
"controller": "ms",
"action": "lindex",
"collection": null,
"index": null,
"result": "value"
}
Edit this page on Github(opens new window)