RESTful APIs With Tastypie

Type:
Talk
Audience level:
Intermediate
Category:
Web Frameworks
March 10th 2:15 p.m. – 2:55 p.m.

Description

Providing full-featured REST APIs is an increasingly popular request. Tastypie allows you to easily implement a customizable REST API for your Python or Django applications.

Abstract

  • Who am I? (Primary author of Tastypie)
  • Why REST?
  • A touch of philosophy

    • Use HTTP the best we can
    • Flexible serialization (not everyone wants JSON)
    • What you can GET should be able to be POST/PUT
    • Should be reasonable by default but easy to extend
    • URIs Everywhere!
  • Why Tastypie?

    • Works with Django
    • Full GET/POST/PUT/DELETE/PATCH
    • Any data source (Not just ORM)
    • Designed to be extensible
    • Supports a variety of serialization formats (JSON/XML/YAML/bplist)
    • URIs everywhere by default
    • Lots of hooks for customization
  • Demonstrate a simple setup

    • Then explore the API based on that trivial setup
  • Demonstrate adding authentication/authorization

  • Demonstrate adding custom serialization
  • Demonstrate adding a different data source
  • Demonstrate adding a custom endpoint