Preview dos dados de uma tabela
curl --request GET \
--url https://api.example.com/catalog/previewimport requests
url = "https://api.example.com/catalog/preview"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/catalog/preview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/catalog/preview",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/catalog/preview"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/catalog/preview")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/catalog/preview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"columns": [
"<string>"
],
"rows": [
{}
],
"total_rows": 123,
"file": "<string>",
"schema": []
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}catalog
Preview dos dados de uma tabela
Retorna as primeiras linhas de uma tabela/modelo do data lake.
- Raw:
layer=raw&connector=google_drive&table=documents - Clean:
layer=clean&table=dim_clientes
GET
/
catalog
/
preview
Preview dos dados de uma tabela
curl --request GET \
--url https://api.example.com/catalog/previewimport requests
url = "https://api.example.com/catalog/preview"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/catalog/preview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/catalog/preview",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/catalog/preview"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/catalog/preview")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/catalog/preview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"columns": [
"<string>"
],
"rows": [
{}
],
"total_rows": 123,
"file": "<string>",
"schema": []
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Query Parameters
Camada: raw, clean ou enrichment
Pattern:
^(raw|clean|enrichment)$Nome da tabela ou modelo
Conector (obrigatório para layer=raw)
Full-text search (ILIKE) across all columns
Column to sort by (whitelisted against schema)
Pattern:
^(asc|desc|ASC|DESC)$Required range:
1 <= x <= 5000Required range:
x >= 0