Tastypie Tutorial for BangPypers meetup October '14.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
api
core
quotr
.gitignore
LICENSE
README.md
manage.py
requirements.txt

README.md

Delicious REST APIs with Django and Tastypie

By @sanketsaurav.

Tastypie is a webservice API framework for Django. It provides a convenient, yet powerful and highly customizable, abstraction for creating REST-style interfaces. The slide deck can be found here.

Agenda

  • Brief introduction to RESTful API interfaces, CRUD, and why you should consider having an API

  • Creating your first API

  • Tastypie configuration and design features

  • Understanding the lifetime of an API request

  • Deeper look into ModelResource - general and relationship fields

  • Authorization, Authentication and Caching

  • Advanced data preparation

  • Nested resources

  • Testing

Requirements

  • Python v2.7.x. If you don't have it already, you can grab it here.

  • SQLite. Any recent version would do.

  • Your favorite text editor. Mine's ST3.

  • Google Chrome with Advanced REST Client extension for interacting with APIs.

Installation

  1. Clone this repository in your workspace.
git clone git@github.com:sanketsaurav/tastypie-tutorial.git
  1. Install virtualenvwrapper. Instructions specific to your OS can be found here.

  2. Create a new virtualenv, and install the requirements of this project.

cd tastypie-tutorial
pip install -r requirements.txt
  1. Start your Django dev server.
python manage.py runserver
  1. Follow along!