Core
API v1.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

getbit #

Returns the bit value at the provided offset, in the string value stored in a key.

[Redis documentation]


Query Syntax #

HTTP #

URL: http://kuzzle:7512/ms/_getbit/<_id>?offset=<offset>
Method: GET

Other protocols #

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

Arguments #

  • _id: key containing the geopoints to fetch
  • offset: bit offset to return

Response #

Returns the bit at the provided offset. The returned value can be either 0 or 1.

{
  "requestId": "<unique request identifier>",
  "status": 200,
  "error": null,
  "controller": "ms",
  "action": "getbit",
  "collection": null,
  "index": null,
  "result": 0
}