Reputation: 103
Good day to all.
I'm new to Marklogic and was able to create a rest api locally on the machine. Based on the example, it uses curl to send/create document in the database.
My question is, how can i use/utilize the rest api accessing it from another machine or client via javascript (e.g. send data via ajax)? What is the best practice for client-server tier?
A sample code would be sufficient and appreciated.
Thank you.
Upvotes: 0
Views: 57
Reputation: 11214
Here's my first experience with the Node.js Client API and MarkLogic: http://www.tamas.io/2015/02/08/marklogic-and-node-js/ I hope you'll find this helpful as well.
Upvotes: 1
Reputation: 20414
It might be worth reading up on the Node.js Application Dev guide.
The MarkLogic Node.js Client API might also interest you.
HTH!
Upvotes: 0