Hi,
Can anyone tell me or provide a short example on how I can perform a REST service query whereby I pass a several parameters ideally in the body of a Json object.
Examples I have found so far all seem to use a single identifier like employeeId.
I did find this example below by Chris Muir where an employeeId:3 is in the parameters of the EmpModelDef, I wondered if this example could be expanded with additional parameters?
var findEmp = new self.EmpModelDef({employeeId:3}, employees);
var emp = findEmp.fetch({
success: function(model, response, options) {
// model = fetched object
console.log("employee.fetch success");
},
error: function(model, xhr, options) {
console.log("employee.fetch error");
}});
I’m relatively new to Jet and am trying to figure out the best practices in achieving the functionality needed for my project. Any pointers would be much appreciated.
Regards
G Cannell