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.
-
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
-
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.
- Clone this repository in your workspace.
git clone [email protected]:sanketsaurav/tastypie-tutorial.git
-
Install virtualenvwrapper. Instructions specific to your OS can be found here.
-
Create a new virtualenv, and install the requirements of this project.
cd tastypie-tutorial
pip install -r requirements.txt
- Start your Django dev server.
python manage.py runserver
- Follow along!