I have a custom entity and have given permission through portal manager. Now I want to retrieve record from that custom entity using web api like following:
webapi.safeAjax({
type: "GET",
url: "/_api/custom_configurations",
contentType: "application/json",
success: function (res, status, xhr) {
console.log(res);
}
});
but I'm getting 406 status code as response.
I need to access records from my angular app. How to do it in portal environment?