Where do you REST?
// will perform a GET to /blog/123
bed.$g('/blog/:Id', { Id: 123 }, function (result) {
// do something with result.content
$("#body").html(result.content);
});
// maps to /article/read?Id=456
bed.$g.articleRead({ Id: 456 }, function (result) {
// do something with result.content
$("#body").html(result.content);
});
- simplicity
- no external dependencies
- REST as JavaScript functions
- URL patterns