Get preview result for a specific database table

GET {{baseUrl}}/api/datasources/:id/catalog/namespaces/:namespaceId/tables/:tableId/result?includeRowCount=false&fields=Excepteur Lorem

Get preview result for a specific database table. You obtain the authorization token needed to execute the request using POST /auth/login; You pass the authorization token in the request header. You specify the datasource ID, namespace ID and table ID in the path of the request; You obtain the preview result using GET /datasources/{id}/catalog/namespaces/{namespaceId}/tables/{tableId}/result.

Request Params

KeyDatatypeRequiredDescription
includeRowCountbooleanInclude table row count
fieldsstringComma separated top-level field whitelist. This allows client to selectively retrieve part of the response model. If specified, extra filtering will be applied, and for top-level object (if root model is an array, each array element), only the listed fields will be kept in the response. e.g. "id,elements" means to keep only the "id" field and the whole "elements" array field, omitting all other fields of top-level response model.

HEADERS

KeyDatatypeRequiredDescription
X-MSTR-AuthTokenstring(Required) Authorization token
X-MSTR-ProjectIDstring(Required) Project ID

RESPONSES

status: OK

{"columns":[{"name":"occaecat fugiat ","dataType":{"type":"time_stamp","scale":-60341045,"precision":-15816750}},{"name":"officia sit Lorem eu","dataType":{"type":"double_double","scale":41775405,"precision":-56972210}}],"totalRowCount":-83208113,"data":[[],[]],"name":"reprehenderit id","id":"mollit commodo veniam voluptate sed"}