Json request
I would like to make a request to the Appery api using a $.getJSON request. I have attempted the following but get a:
{"code":"DBSQ002","description":"database id not specified"}
Although the database is specified in the request how is this acheived correctly using jquery?
code:
function restTest()
{
$.getJSON("https://api.appery.io/rest/1/db/colle...?",
{
'X-Appery-Database-Id': 'XXXXXXXe4b0747d4efdf493',
'type': 'get',
'dataType': 'json',
'contentType': 'application/json',
},
function(data) {
alert(data);
});
}