npm install
npm start
npm test
List results from offers, based on one or more specific quantity in the desired order (asc or desc).
-
URL Description /offer/:quantity/:sort?
-
Parameters
Required:
quantity=[float]
Optional:
sort=[string]
- Examples:
$.ajax({
url: "/offer/15000,30000/asc",
dataType: "json",
type : "GET",
success : function(r) {
console.log(r);
}
});
http://localhost:3000/offer/15000,30000/asc
$.ajax({
url: "/offer/53000/desc",
dataType: "json",
type : "GET",
success : function(r) {
console.log(r);
}
});