As the table shows, our todos only include a primary key (id), a title, and a status bit to indicate whether or not they are complete. A REST API Our web application needs access to this database, so we’ll provide a standard REST interface. The API follows Ruby conventions, but can be easily implemented by any server technology. In particular: GET api/todos returns a JSON-encoded array of all rows
![Unit Testing Backbone.js Applications — SitePoint](https://cdn-ak-scissors.b.st-hatena.com/image/square/26e92c2ab218940101f2567d3b0c5ad322d10307/height=288;version=1;width=512/https%3A%2F%2Fwww.sitepoint.com%2Fwp-content%2Fthemes%2Fsitepoint%2Fassets%2Fimages%2Ficon.javascript.png)