Remote storage (The M Project 1.x) - mwaylabs/The-M-Project GitHub Wiki

Introduction

HTML5 LocalStorage and WebSQL are great technologies when it comes to persisting the applications data on the client. But often it is required to receive data from remote data sources, such as RESTful web services. This is where the M.RemoteStorageProvider enters the stage. With this data provider it is possible to easily connect models with external RESTful data sources for remote persistence and data retrieving.

REST in a tiny nutshell

Thanks to the rise of the Ruby on Rails web framework and their strict decision to use kick SOAP for REST, the REST pattern came to (late) fame. Nowadays, nearly every new web app, community or web service offers an API and yet more often a REST API. What is REST? REST stands for Representational State Transfer and defines a pattern to design web services around resources, their URL and the HTTP protocol, respectively the used HTTP method. Resources can be created, read, updated or deleted (the classical CRUD methods).