Get the full description of the database.
curl --request GET \
--url https://{host}/activeviam/database/rest/v10/discoveryimport requests
url = "https://{host}/activeviam/database/rest/v10/discovery"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{host}/activeviam/database/rest/v10/discovery', 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",
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"
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")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/activeviam/database/rest/v10/discovery")
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{
"branches": {
"master": {
"latestepoch": "75",
"owners": [
"ROLE_ADMIN"
],
"readers": [
"ROLE_ADMIN",
"ROLE_USER"
]
}
},
"joins": {
"CounterParty": {
"CounterpartyToCity": {
"fieldMappings": {
"City": "Name"
},
"targetTable": "City"
}
},
"Risk": {
"RiskToTrade": {
"fieldMappings": {
"TradeId": "Id"
},
"targetTable": "Trade"
}
}
},
"separator": "/",
"tables": {
"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": 3,
"name": "Rating",
"readOnly": false,
"type": "String"
},
{
"defaultValue": 0,
"hasParser": true,
"index": 4,
"name": "City",
"readOnly": false,
"type": "String"
}
],
"keyFields": [
0
]
},
"Forex": {
"canDelete": true,
"canEdit": true,
"canInsert": true,
"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 full description of the database.
Get the full description of the database : tables, joins and branches.
GET
/
activeviam
/
database
/
rest
/
v10
/
discovery
Get the full description of the database.
curl --request GET \
--url https://{host}/activeviam/database/rest/v10/discoveryimport requests
url = "https://{host}/activeviam/database/rest/v10/discovery"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{host}/activeviam/database/rest/v10/discovery', 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",
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"
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")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/activeviam/database/rest/v10/discovery")
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{
"branches": {
"master": {
"latestepoch": "75",
"owners": [
"ROLE_ADMIN"
],
"readers": [
"ROLE_ADMIN",
"ROLE_USER"
]
}
},
"joins": {
"CounterParty": {
"CounterpartyToCity": {
"fieldMappings": {
"City": "Name"
},
"targetTable": "City"
}
},
"Risk": {
"RiskToTrade": {
"fieldMappings": {
"TradeId": "Id"
},
"targetTable": "Trade"
}
}
},
"separator": "/",
"tables": {
"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": 3,
"name": "Rating",
"readOnly": false,
"type": "String"
},
{
"defaultValue": 0,
"hasParser": true,
"index": 4,
"name": "City",
"readOnly": false,
"type": "String"
}
],
"keyFields": [
0
]
},
"Forex": {
"canDelete": true,
"canEdit": true,
"canInsert": true,
"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
]
}
}
}Was this page helpful?