Specific fields for data can be specified if not all the values are required. This helps to increase performance in requests.
/api/[entity]?fields=[field]
Multiple fields can be specified:
/api/[entity]?fields=[field],[field2]
Example
The following example is in javascript, using jQuery:
function getData(){
$.ajax({
type: "GET",
url: 'https://[subdomain].manageworkonline.com/awt/api/[entity]?fields=[field]',
crossDomain: true,
xhrFields: { withCredentials: true },
success: function(response){
if(response.Success){
alert(JSON.stringify(response.Data));
} else {
alert(response.ErrorMessage);
}
},
dataType: "json"
});
}
For further information view Entities
Post your comment on this topic.