angular-tasty-resource

An AngularJS resource to interact with TastyPie REST APIs
Homepage:
1 person uses it
Author: 2c7f147cd353e482f47194f915a279e0?d=https%3a%2f%2fidenticons.github.com%2f22f2c9052dce41e3a9b84d59ee018971 gsterjov

TastyResource

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

Usage

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.

Features

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

Filters

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

Relationships

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 about 4 years ago.