prime

Primes a response for a given query for a particular node

Changed on
post/prime/{clusterId}/{dataCenterId}/{nodeId}

Request

  • Base URL
    / (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    none declared

Path parameters

clusterIdstring required

Id or name of the cluster

dataCenterIdstring required

Id or name of the datacenter

nodeIdstring required

Id or name of the node

Request body

Example request

{
  "when": {
    "query": "SELECT * FROM tbl"
  },
  "then": {
    "result": "success",
    "rows": [
      {
        "key": 0,
        "description": "Important dates",
        "dates": {
          "independence day": "1776-07-04",
          "washington's birthday": "1732-02-22"
        }
      },
      {
        "key": 1,
        "description": "Other fun dates",
        "dates": {
          "new years day": "2017-01-01",
          "leap day": "2020-02-29",
          "end of mayan calendar": "2012-12-21"
        }
      }
    ],
    "column_types": {
      "key": "bigint",
      "description": "ascii",
      "dates": "map<ascii,date>"
    }
  }
}

Response

PrimedQuery

Example response

{
  "when": {
    "query": "SELECT * FROM tbl"
  },
  "then": {
    "result": "success",
    "rows": [
      {
        "key": 0,
        "description": "Important dates",
        "dates": {
          "independence day": "1776-07-04",
          "washington's birthday": "1732-02-22"
        }
      },
      {
        "key": 1,
        "description": "Other fun dates",
        "dates": {
          "new years day": "2017-01-01",
          "leap day": "2020-02-29",
          "end of mayan calendar": "2012-12-21"
        }
      }
    ],
    "column_types": {
      "key": "bigint",
      "description": "ascii",
      "dates": "map<ascii,date>"
    }
  }
}

Changes