Core
API v2.x
2

smembers #

Returns the members of a set of unique values.

[Redis documentation]


Query Syntax #

HTTP #

URL: http://kuzzle:7512/ms/_smembers/<_id>
Method: GET

Other protocols #

{
  "controller": "ms",
  "action": "smembers",
  "_id": "<key>"
}

Argument #

  • _id: set key identifier

Response #

Returns the list of the set's members.

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