So I have only recently began using ajax with jQuery. I am wondering if it is possible to limit or specify what you want back from the response.
So say I had the following, and I only wanted to get the first 3 people or the last 3 out of a 100 people.
$.ajax({
type: "GET",
url: "/people"
dataType: "json",
success: function(data) {
// Do some awesome stuff.
}
});
Now, I know you can pas and optional data object. Could this data object be used to limit or specify the response I want?
Thanks for any help!