Quantcast
Viewing all articles
Browse latest Browse all 49217

Basic JQuery for call to node.index using REST server

Hi Everyone,

I am looking for a really simple example of how to make a call to the node index action in the latest REST server.

This is what I have so far - but I am getting a 406 (Not Acceptable) returned. I assume this is because I am not passing the correct arguments - so the better question might be - how do I find the correct arguments/parameters to send to a services call?

$.ajax({
type: "POST",
dataType: 'json',
url: "http://localhost/api/node.json",
data: 'sessid=' + $('#sessid').val(),
success: function (msg) {
console.log("node.list:");
console.log(msg);
}
});

Thanks in advance for your time and expertise.

GJ


Viewing all articles
Browse latest Browse all 49217

Trending Articles