@@ -44,7 +44,7 @@ async function getSchema() {
4444### TerminusDB Client API
4545
4646### Connect
47- #### woqlClient.connect([ params ] ) ⇒ <code >Promise</code >
47+ #### woqlClient.connect() ⇒ <code >Promise</code >
4848Connect to a Terminus server at the given URI with an API key
4949Stores the system: ServerCapability document returned
5050in the connection register which stores, the url, key, capabilities,
@@ -53,14 +53,9 @@ this.connectionConfig.server will be used if present,
5353or the promise will be rejected.
5454
5555** Returns** : <code >Promise</code > - the connection capabilities response object or an error object
56-
57- | Param | Type | Description |
58- | --- | --- | --- |
59- | [ params] | <code >typedef.ParamsObj</code > | TerminusDB Server connection parameters |
60-
6156** Example**
6257``` js
63- client .connect ({key : " mykey " ,user : " admin " } )
58+ client .connect ()
6459```
6560
6661### Create Database
@@ -301,6 +296,16 @@ Retrieve the URL of the server’s API base that we are currently connected to
301296let api_url = client .api ()
302297` ` `
303298
299+ ### apiInfo
300+ #### woqlClient.apiInfo() ⇒ <code>string</code>
301+ Retrieve the URL of the server’s Info API that we are currently connected to
302+
303+ **Returns**: <code>string</code> - the URL of the TerminusDB server info api endpoint we are connected to (typically server() + “api/info”)
304+ **Example**
305+ ` ` ` js
306+ let api_url = client .apiInfo ()
307+ ` ` `
308+
304309### organization
305310#### woqlClient.organization([orgId]) ⇒ <code>string</code> \| <code>boolean</code>
306311Gets/Sets the client’s internal organization context value
0 commit comments