To filter data, a query string needs to be added in the following format:
/api/[entity]?filter=([field]=[value])
Multiple filters can be specified:
/api/[entity]?filter=([field]=[value])and([field]=[value])
Example
The following example is in javascript, using jQuery:
function getData(){
$.ajax({
type: "GET",
url: 'https://[subdomain].manageworkonline.com/awt/api/[entity]?filter=([field]=[value])',
crossDomain: true,
xhrFields: { withCredentials: true },
success: function(response){
if(response.Success){
if(response.Data.length > 0) alert(response.Data[0].Id);
else alert("No data found");
} else {
alert(response.ErrorMessage);
}
},
dataType: "json"
});
}
For further information view Entities
Post your comment on this topic.