Using the REST api in a SharePoint-hosted App

This week-end, I’ve written a small “static class” in JavaScript (it works a bit like a List Generic Dao) to help me make CRUD operations on my lists in Sharepoint-hosted Apps.

Using the code above, it is now easier for me to create/read/update/delete items in any lists.

You’ll find a few samples below :

I know there is still place for improvement but it’s a start !