Sources this appliance can reach, described from metadata alone
const url = 'http://localhost:11044/api/v1/learn/sources';const options = {method: 'GET', headers: {'X-Embabel-Api-Key': '<X-Embabel-Api-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:11044/api/v1/learn/sources \ --header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
The sources this appliance can reach and could learn, answered by GET /learn/sources
object
Every detected source, reachable or not, described from metadata alone
One source this appliance can reach, with the evidence that makes it worth learning and what has been learned from it so far
object
What a store of this kind asserts itself, e.g. foreign-key edges and column types for SQL
How much a person must confirm before a realm learned from this kind is fit to query: LOW, MEDIUM or HIGH
True when the user connected it, so it may be edited or disconnected; false for one a realm declares
The structured evidence behind summary, by name, for a client that renders more than a sentence
object
What learning has to infer for a store of this kind, beyond what it asserts
Directory name of the provisional realm installed from it (auto-<source>); null when none is installed
What kind of store it is: GRAPHQL, SQL, OPENAPI, ELASTICSEARCH or TABULAR
The kind in words, e.g. relational database
False for kinds this appliance can detect but not yet learn
The handle the learning endpoints take as {name}: for SQL the registered datasource name, for an API its gateway namespace
Loaded realms that name this source as a SQL datasource, sorted; every one of them stops answering if it is disconnected. Always empty for an API, which realms do not name this way
The id of the caller’s latest review still held for it (GET /learn/{id}), so a client can resume without keeping the id; null when none is held
Names of the realms promoted from it, sorted; empty when none
False when detection found the source but could not reach it
One line to show verbatim: what was found, and what about it suggests it is worth learning
Example generated
{ "sources": [ { "asserts": "example", "confirmation": "example", "connected": true, "evidence": { "additionalProperty": "example" }, "inferred": "example", "installedRealm": "example", "kind": "example", "label": "example", "learnable": true, "name": "example", "neededBy": [ "example" ], "pendingReview": "example", "promotedRealms": [ "example" ], "reachable": true, "summary": "example" } ]}
