An AngularJS resource to interact with TastyPie REST APIs
1 person uses it
Author: 2c7f147cd353e482f47194f915a279e0? gsterjov


This AngularJS module is intended to be a lightweight handler for TastyPie's REST resources for Django. It tries to be similar to Angular's $resource in the ways it defines and retrieves resources.

TastyResource is written in CoffeeScript, but compiled versions will be included in the repository


TastyResource makes no attempt to be generic in its handling of REST interfaces. Its sole focus on TastyPie makes usage and configuration a snap.

Below is an example program that defines a resource and uses it in a controller.


TastyResource also takes advantage of certain TastyPie features. Below are some examples of these features being used.


Make use of the filter features on TastyPie by passing an object to the query function.


Although TastyResource doesn't attempt to stub out URIs in the return resources, it does understand when trying to retrieve and save resource URIs.

comments powered by Disqus
This page was last updated almost 5 years ago.