I have app in Backand that I'm building and I'm trying to use filter parameters. When calling my API using $http
I get 406 error
in the http request.
This would be the API call, passing the filter object:
function getUserAttractions(userId) {
return $http({
method: 'GET',
url: Backand.getApiUrl() + '/1/objects/attractions',
params: {
sort: [{
"fieldName": "date",
"order": "asc"
}],
filter: [{
"fieldName": "user_id",
"operand": "contains",
"value": "1"
}]
}
});
}