Core
API v2.x
2

smembers #

Returns the members of a set of unique values.

[Redis documentation]


Query Syntax #

HTTP #

Copied to clipboard!
URL: http://kuzzle:7512/ms/_smembers/<_id>
Method: GET

Other protocols #

Copied to clipboard!
{
  "controller": "ms",
  "action": "smembers",
  "_id": "<key>"
}

Argument #

  • _id: set key identifier

Response #

Returns the list of the set's members.

Copied to clipboard!
{
  "requestId": "<unique request identifier>",
  "status": 200,
  "error": null,
  "controller": "ms",
  "action": "smembers",
  "collection": null,
  "index": null,
  "result": [
    "member1",
    "member2",
    "..."
  ]
}