Tastypie - Django的Web服务接口


BSD
跨平台
Python

软件简介

Tastypie 是为 Django 框架提供的 Web 服务
API,提供了常规的、强大以及高可定制的、抽象的创建 RESTful 风格接口的工具。

特性:

 Full `GET/POST/PUT/DELETE/PATCH` support 
 Reasonable defaults 
 Designed to be extended at every turn 
 A variety of serialization formats (JSON/XML/YAML/bplist) 
 [HATEOAS](http://en.wikipedia.org/wiki/HATEOAS) by default 
 Well-tested & well-documented

开始使用:

  1. Install using Pip: pip install django-tastypie
  2. Add to installed apps: INSTALLED_APPS += ['tastypie']
  3. Syncdb: ./manage.py syncdb
  4. Create your resource(s)
  5. Hook them up in the URLconf