A starting template for handling simple object data and associations.
Retrieve a list from the server. The objects will be of type
limited by the optional
filter property. Filters include:
Example: retrieving all books
Example: retrieving books by Dan Brown ordered by rating
GET /book?author=Dan Brown&order=rating&direction=DSC
Stores an object as a given type.
Example: create a book
Update an object with a given type and id.
Example: update book with id of 7
DELETE an object with a given type and id.
Example: delete book with id of 7
Get all objects of type associated that are associated with object type type and id id
Example: get all reviews associated with book 7
Create an object of type associated and associate it with object type type and id id
Example: create a review for book 7
A simple AngularJS service to abstract Data.
Load array of data of type `type` matching `filter`.
Save `data` of type `type`.
Remove data of type `type` with id of `id`.