Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/drsounds/entity.js

An REST proxy object for JavaScript
https://github.com/drsounds/entity.js

Last synced: 6 days ago
JSON representation

An REST proxy object for JavaScript

Awesome Lists containing this project

README

        

# entity.js
An REST proxy object for JavaScript that can make web applications independent across REST API.

MAny web mashup are today querying different Web API. Entity JS is a project to create an abstraction layer between web apps and REST bridge,
so switching between vendor API is easier.

For example, an mashup that finds a song, could support different music services or an car lookup mashup could easy switch between car registry.

## Usage of an entity (with a resolver)

```JavaScript
var track = new Entity('track');
track.request('GET', {'title': 'Aquasphere', 'album': 'Aquasphere', 'artist': 'Dr. Sounds'}, null).then(function (result) {
console.log(result);
});

```

## Resolver

```JavaScript