@@ -43,6 +43,7 @@ Download the terminus-client.min.js file from the /dist directory and save it to
43
43
```
44
44
45
45
## Usage
46
+ For the [ full Documentation] ( https://terminusdb.com/docs/client_api )
46
47
47
48
``` javascript
48
49
//
@@ -290,7 +291,7 @@ const doc={
290
291
// opts.terminus:encoding defines which format is requested (jsonld/frame)
291
292
const opts = {terminus: encoding: " jsonld" }
292
293
293
- client .createDocument (" doc: chess" ,doc,opts).then ((response )=> {
294
+ client .createDocument (" chess" ,doc,opts).then ((response )=> {
294
295
console .log (response)
295
296
}).catch ((err )=> {
296
297
console .log (err)
339
340
// get the document chess from current server and current terminusDB
340
341
const opts = {terminus: encoding: " terminus:frame" }
341
342
342
- client .getDocument (" doc: chess" ,opts).then ((response )=> {
343
+ client .getDocument (" chess" ,opts).then ((response )=> {
343
344
console .log (response)
344
345
}).catch ((err )=> {
345
346
console .log (err)
@@ -411,7 +412,7 @@ const doc={
411
412
// opts.terminus:encoding defines which format is requested (jsonld/frame)
412
413
const opts = {terminus: encoding: " jsonld" }
413
414
414
- client .updateDocument (" doc: chess" ,doc,opts).then ((response )=> {
415
+ client .updateDocument (" chess" ,doc,opts).then ((response )=> {
415
416
console .log (response)
416
417
}).catch ((err )=> {
417
418
console .log (err)
@@ -442,7 +443,7 @@ Delete a document from the specified TerminusDb
442
443
docurl TerminusDB document full URL or a valid TerminusDB document Id
443
444
444
445
``` js
445
- client .deleteDocument (" doc: chess" ,opts).then ((response )=> {
446
+ client .deleteDocument (" chess" ,opts).then ((response )=> {
446
447
console .log (response)
447
448
}).catch ((err )=> {
448
449
console .log (err)
0 commit comments