Skip to content

Commit 6bacedf

Browse files
committed
update readme
1 parent 1b07b9a commit 6bacedf

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Readme.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ Download the terminus-client.min.js file from the /dist directory and save it to
4343
```
4444

4545
## Usage
46+
For the [full Documentation](https://terminusdb.com/docs/client_api)
4647

4748
```javascript
4849
//
@@ -290,7 +291,7 @@ const doc={
290291
// opts.terminus:encoding defines which format is requested (jsonld/frame)
291292
const opts={terminus:encoding: "jsonld"}
292293

293-
client.createDocument("doc:chess",doc,opts).then((response)=>{
294+
client.createDocument("chess",doc,opts).then((response)=>{
294295
console.log(response)
295296
}).catch((err)=>{
296297
console.log(err)
@@ -339,7 +340,7 @@ or
339340
//get the document chess from current server and current terminusDB
340341
const opts={terminus:encoding: "terminus:frame"}
341342

342-
client.getDocument("doc:chess",opts).then((response)=>{
343+
client.getDocument("chess",opts).then((response)=>{
343344
console.log(response)
344345
}).catch((err)=>{
345346
console.log(err)
@@ -411,7 +412,7 @@ const doc={
411412
// opts.terminus:encoding defines which format is requested (jsonld/frame)
412413
const opts={terminus:encoding: "jsonld"}
413414

414-
client.updateDocument("doc:chess",doc,opts).then((response)=>{
415+
client.updateDocument("chess",doc,opts).then((response)=>{
415416
console.log(response)
416417
}).catch((err)=>{
417418
console.log(err)
@@ -442,7 +443,7 @@ Delete a document from the specified TerminusDb
442443
docurl TerminusDB document full URL or a valid TerminusDB document Id
443444

444445
```js
445-
client.deleteDocument("doc:chess",opts).then((response)=>{
446+
client.deleteDocument("chess",opts).then((response)=>{
446447
console.log(response)
447448
}).catch((err)=>{
448449
console.log(err)

0 commit comments

Comments
 (0)