Source

DjangoCon 2011 Notes / docs / building_web_apis_in_django_with_tastypie.rst

Full commit

Building Web APIs in Django with Tastypie

Slides: http://bit.ly/nwfYvI

Demo: http://bit.ly/oKcCWM

Code: http://bit.ly/mTs5Yw

Why Tastypie?

  • Makes sense
  • Well-tested
  • HATEOAS
  • Good features and support, fits well into existing ORM thinking
  • Totally extensible
  • Works well with Javascript
  • Cool stuff is coming out of the community

Why not Tastypie?

  • You know better than your users (functional API instead of REST API)
  • RESTish is enough

Serialization Methods

  • JSON
  • XML
  • YAML
  • Binary plist

Authentication Classes

  • NO-OP
  • API key
  • HTTP Basic Auth & Digest

Authorization Classes

  • ReadOnly
  • Default Authorized
  • Django Authorization

It's Python, class-based, extensible.