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 by default
Well-tested & well-documented
开始使用:
Install using Pip: pip install django-tastypie
Add to installed apps: INSTALLED_APPS += ['tastypie']
Syncdb: ./manage.py syncdb
Create your resource(s)
Hook them up in the URLconf
项目主页:http://tastypieapi.org/
来自:开源中国社区

