Get the description of all the tables.
curl --request GET \
--url https://{host}/activeviam/database/rest/v10/discovery/tablesimport requests
url = "https://{host}/activeviam/database/rest/v10/discovery/tables"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{host}/activeviam/database/rest/v10/discovery/tables', 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://{host}/activeviam/database/rest/v10/discovery/tables",
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://{host}/activeviam/database/rest/v10/discovery/tables"
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://{host}/activeviam/database/rest/v10/discovery/tables")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/activeviam/database/rest/v10/discovery/tables")
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{
"CounterParty": {
"canDelete": true,
"canEdit": true,
"canInsert": true,
"fields": [
{
"defaultValue": 0,
"hasParser": true,
"index": 0,
"name": "CounterParty",
"readOnly": false,
"type": "String"
},
{
"defaultValue": "N/A",
"hasParser": true,
"index": 2,
"name": "Sector",
"readOnly": false,
"type": "String"
}
],
"keyFields": [
0
]
},
"Forex": {
"canDelete": false,
"canEdit": true,
"canInsert": false,
"fields": [
{
"defaultValue": 0,
"hasParser": true,
"index": 0,
"name": "Currency",
"readOnly": false,
"type": "String"
},
{
"defaultValue": 0,
"hasParser": true,
"index": 1,
"name": "TargetCurrency",
"readOnly": false,
"type": "String"
},
{
"defaultValue": 0,
"hasParser": true,
"index": 2,
"name": "Rate",
"readOnly": false,
"type": "double"
}
],
"keyFields": [
0,
1
]
}
}Get the description of all the tables.
Get the description of all the tables in the database visible to the current user.
GET
/
activeviam
/
database
/
rest
/
v10
/
discovery
/
tables
Get the description of all the tables.
curl --request GET \
--url https://{host}/activeviam/database/rest/v10/discovery/tablesimport requests
url = "https://{host}/activeviam/database/rest/v10/discovery/tables"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{host}/activeviam/database/rest/v10/discovery/tables', 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://{host}/activeviam/database/rest/v10/discovery/tables",
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://{host}/activeviam/database/rest/v10/discovery/tables"
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://{host}/activeviam/database/rest/v10/discovery/tables")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/activeviam/database/rest/v10/discovery/tables")
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{
"CounterParty": {
"canDelete": true,
"canEdit": true,
"canInsert": true,
"fields": [
{
"defaultValue": 0,
"hasParser": true,
"index": 0,
"name": "CounterParty",
"readOnly": false,
"type": "String"
},
{
"defaultValue": "N/A",
"hasParser": true,
"index": 2,
"name": "Sector",
"readOnly": false,
"type": "String"
}
],
"keyFields": [
0
]
},
"Forex": {
"canDelete": false,
"canEdit": true,
"canInsert": false,
"fields": [
{
"defaultValue": 0,
"hasParser": true,
"index": 0,
"name": "Currency",
"readOnly": false,
"type": "String"
},
{
"defaultValue": 0,
"hasParser": true,
"index": 1,
"name": "TargetCurrency",
"readOnly": false,
"type": "String"
},
{
"defaultValue": 0,
"hasParser": true,
"index": 2,
"name": "Rate",
"readOnly": false,
"type": "double"
}
],
"keyFields": [
0,
1
]
}
}Response
200 - application/json
All tables description returned successfully.
Map of table names to their descriptions
Was this page helpful?