Invalid query parameter value in MCS API
Summary
Invalid query parameter value in MCS APIContent
Hi,
I am calling rest connector from API. Below is my code for calling rest connector.
service.get('/mobile/custom/BranchAPI/BranchList', function(req,res) {
var sdk = req.oracleMobile;
var statusCode = 200;
var optionsList= {};
optionsList.uri = "/mobile/connector/BranchConnector"+"/queryResults/?query=select id,branch_code,branch_name,branch_name_ara from ABC.Branch";
sdk.rest.get(optionsList,function(errConn, resConn,bodyConn){
if(errConn){
res.send(resConn.statusCode, errConn.message);
}else{
var bodyObject = JSON.parse(bodyConn);
//var currentObservation = bodyObject.items[0].rows;
var currentObservation = bodyObject;
res.send(statusCode, currentObservation);
}
})
});
When I test it, it trows error below.