I experimented and researched javascript clients for RESTful web services. Almost everything that I saw seems to be limited by the recreational definitions of the model in the client and does CRUD on simple (unrelated) models.
What i'm looking for
- The ability to dynamically create models (and / or proxies and / or storages) in the client, taking into account the URI for the JSONREST scheme provided by the server API
- The ability to process relationships initially (that is, without creating a bunch of user-defined functions or without overriding many of the built-in functions). I am talking about the ratios 1-> n, 1-> 1, n-> 1 and n-> m.
- The ability to work relatively well with a full-featured client infrastructure such as ExtJS or Dojo.
What i tried
- ExtJS 4.1: an excellent set of widgets that can fully program the layout, ajax / 'rest' proxies work from ready-made programs for simple models. There is no IRC or developer community that I can find, limited responsiveness on the GPL forums.
- Dojo [current]: requires an individual JsonRestStore override to work with base models. Great widgets, hardly manage to completely avoid html.
- I also looked at various jQuery-based tools and a bit on backbone.js (http://backbonejs.org is currently missing). The jquery stuff seems completely scattered to me. If there are good REST tools for jQuery, I'm open to them, I just need pointers to documentation on how to create consistent and managed applications with them.
the main goal
- Development of web client applications that persist over time and are DRY. That is, there is a small copy {param1: 'asdf', param2: 30, ...} in all related classes. Ideally, if it is defined on the server, the client should get it from the REST API. If defined in the client, other parts of the client should be able to inherit / extend this definition.
Another way of saying this is:
- Most JS Framework follow the MVC pattern. Which, for me, is stupid, since my "M" is already on the server along with some of the "C". I want my client to be โVcโ in order to recreate most of the server model, which is necessary for asynchronous operation, oriented on the presentation of the user interface and user action. This means that ideally none of the โMsโ in the โMVCโ would be hardcoded in the client.
Is there a full-fledged javascript REST client that someone can point me to. Thanks.
source share