POST /api/v1/tables/describe

Fetch the column list of a table.

Resource Information

Content-Type application/json

Parameters

table The name of the table.
database (optional) The name of the database.

Example Request

    >> POST /api/v1/tables/describe HTTP/1.1
    >> Content-Type: application/json
    >> Content-Length: ...
    >>
    >> {
    >>   "table": "my_sensor_table"
    >> }

Example Response

    << HTTP/1.1 200 OK
    << Content-Type: application/json
    << Content-Length: ...
    <<
    << {
    <<  "name": "",
    <<  "columns": [
    <<    {
    <<     "id": 1,
    <<      "name": "sensor_name",
    <<      "type": "STRING",
    <<      "type_size": 0,
    <<      "optional": true,
    <<      "repeated": false,
    <<      "encoding_hint": "NONE"
    <<    }
    <<  ]
    << }