Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/drsounds/entity.js
- Owner: drsounds
- License: mit
- Created: 2015-03-09T11:58:07.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-03-09T12:37:51.000Z (over 9 years ago)
- Last Synced: 2024-04-14T11:43:10.445Z (7 months ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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