Hello everyone, hope you are all doing well.
I am a beginner in Marklogic and recently managed to set up a rest api on my local machine. Following the given example, I used curl to send/create documents in the database.
Now, my query is how can I access/utilize this rest api from another machine or client using JavaScript (for instance, sending data via ajax)? What would be considered the best practice for the client-server tier?
If anyone could provide a sample code, it would be greatly appreciated.
Thank you so much.