Type definitions
the GET document interface query parameters
Properties
Name | Type | Description |
---|---|---|
[query] | object |
object that descrive the document query |
[graph_type] | GraphType |
instance |
[type] | string |
only documents of the given type are returned. |
[id] | string |
only the document with the given ID is returned. |
[prefixed] | boolean |
default is true, return IRIs using a prefixed notation wherever possible. If false, full IRIs are used. |
[minimized] | boolean |
default is false, return the documents with very little whitespace. Each json document will be on its own line. |
[unfold] | boolean |
default is false, any subdocuments contained in the returned document are returned too. If false, these are referred to by their ID instead. |
[skip] | number |
default is 0, How many results to skip |
[count] | number |
count - How many results to return. If this option is absent, all results are returned. |
[as_list] | boolean |
default is false, If true, don't return a stream of json objects, but a json list. |
[graph_type] | string |
instance |
the POST document interface query parameters
Properties
Name | Type | Description |
---|---|---|
[raw_json] | boolean |
default is false, If true, the input documents are treated as raw JSON, inserted as type sys:JSONDocument and are not subject to schema restrictions. |
[graph_type] | GraphType |
default is instance instance |
[full_replace] | boolean |
default is false, If true, all existing documents are deleted before inserting the posted documents. This allows the full replacement of the contents of a database. This is especially useful for replacing the schema. |
the PUT document interface query parameters
Properties
Name | Type | Description |
---|---|---|
[raw_json] | boolean |
default is false, If true, the input documents are treated as raw JSON, inserted as type sys:JSONDocument and are not subject to schema restrictions. |
[graph_type] | GraphType |
default is instance, instance |
the DELETE document interface query parameters
Properties
Name | Type | Description |
---|---|---|
[graph_type] | GraphType |
default is instance, instance |
id | string | array |
a single id or a list of ids to delete. |
[nuke] | booleam |
default is false, If true, delete everything at this resource location (dangerous!). |
(export/import)
Properties
Name | Type | Description |
---|---|---|
[type] | "csv" | "turtle" |
the format type |
[format_header] | string |
header format type |
Properties
Name | Type | Description |
---|---|---|
type | 'basic' | 'jwt' | 'apikey' |
the authorization type of an TerminusDB connection |
[user] | string | boolean |
the user id |
key | string |
the connection key |
ActionType: 'graph'
| 'db'
| 'clone'
| 'triples'
| 'woql'
| 'fetch'
| 'pull'
| 'rebase'
| 'branch'
| 'reset'
| 'push'
| 'squash'
Properties
Name | Type | Description |
---|---|---|
[key] | string |
api key for basic auth |
[jwt] | string |
jwt token to connect with terminusX server |
[user] | string |
the user id, we use this for basic authentication and for identify the commits author |
[organization] | string |
set organization to this id |
[db] | string |
set cursor to this db |
[repo] | RepoType | string |
set cursor to this repo |
[branch] | string |
set branch to this id |
[ref] | string |
set commit ref |
[default_branch_id] | string |
set the default branch id |
[token] | string |
Api token to connect with TerminusX |
Properties
Name | Type | Description |
---|---|---|
agent_name | string |
the Authorization connection's type |
[database_name] | string |
the user id |
[organization_name] | string |
the connection key |
[actions] | array |
list of roles |
[invitation] | string |
- |
Properties
Name | Type | Description |
---|---|---|
label | string |
"Textual DB Name" |
[comment] | string |
"Text description of DB" |
[public] | boolean |
- |
[schema] | boolean |
if set to true, a schema graph will be created |
Properties
Name | Type | Description |
---|---|---|
id | string |
"Database ID" |
[label] | string |
"Textual DB Name" |
[comment] | string |
"Text description of DB" |
[organization] | string |
"Organization to which the db belongs" |
[public] | boolean |
- |
[schema] | boolean |
if set to true, a schema graph will be created |
{remote: "origin", "remote_branch": "main", "author": "admin","message": "message"}
Properties
Name | Type | Description |
---|---|---|
[remote] | string |
remote server url |
remote_branch | string |
remote branch name |
[author] | string |
if it is undefined it get the current author |
[message] | string |
the update commit message |
Properties
Name | Type | Description |
---|---|---|
remote_url | string |
the remote db source url |
[label] | string |
|
[comment] | string |
the manage capability command type
[ACTIONS.CREATE_DATABASE | ACTIONS.DELETE_DATABASE]