Faking the API

If you're building a web application and you want to follow the single-page app design pattern - because, let's face it, this is the new hotness in web design - you will probably end up with an API whose primary responsibility is to grab data from the database, possibly manipulate »