code | type | title |
---|---|---|
true |
page |
lpop |
Removes and returns the first element of a list.
URL: http://kuzzle:7512/ms/_lpop/<_id>
Method: POST
{
"controller": "ms",
"action": "lpop",
"_id": "<key>"
}
_id
: list key identifier
Returns the removed value.
{
"requestId": "<unique request identifier>",
"status": 200,
"error": null,
"controller": "ms",
"action": "lpop",
"collection": null,
"index": null,
"result": "foo"
}