Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 813 Bytes

README.md

File metadata and controls

44 lines (31 loc) · 813 Bytes

datasource.js

The ultimate way to interact with RESTFull backends from javascript clients.

Install

You can install this package with bower.

bower

bower install datasourcejs

Import the js library to your page:

<script src="bower-components/datasourcejs/dist/datasource.js"></script>

Then you can use datasource diretive to handle RESTFull requests:

<datasource 
    name="Users" 
    entity="http://jsonplaceholder.typicode.com/users" 
    keys="id" 
    rows-per-page="-1">
</datasource>

The datasource diretive will handle the following actions

Request Url
GET /entity
POST /entity
PUT /entity/{ID}
DELETE /entity{ID}

Roadmap

  • Support for secure requests
  • Unit test case