ruchi mishra
ruchi mishra

Reputation: 21

How do i call Marklogic REST API Extension from the NodeJs application

How do call Marklogic REST API Extension from the NodeJs Application?

As right now I am creating the nodejs application and wanted to use the rest api extension which I have already created earlier.

Upvotes: 1

Views: 56

Answers (1)

grtjn
grtjn

Reputation: 20414

It comes down to doing something like:

db.extension.get('my-rest-extension')

I recommend reading up on 'Working with Resource Service Extensions' in the node-dev guide:

https://docs.marklogic.com/guide/node-dev/extensions#id_44792

HTH!

Upvotes: 1

Related Questions