3

I was looking for an example where Marklogic Rest API is called using AJAX. GET OR POST METHOD using authentication. Any help is greatly appreciated. Thanks

Raj S
  • 31
  • 1
  • 1
    Please read the (quite good) documentation before asking for help. https://docs.marklogic.com/guide/rest-dev/intro – wst Mar 03 '15 at 16:59

1 Answers1

3

The example using jQuery at https://developer.marklogic.com/learn/semantic-infopanel is fairly complete. It lacks authentication, but http://api.jquery.com/jQuery.ajax/ explains how to add basic authentication and Is Digest authentication possible with jQuery? has some options for digest authentication.

Along with authentication there are other security issues to consider: CSRF and CORS for instance.

Community
  • 1
  • 1
mblakele
  • 7,782
  • 27
  • 45