红联Linux门户
Linux帮助

Django的Web服务接口 Tastypie

发布时间:2013-12-15 21:28:34来源:红联作者:empast
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/

来自:开源中国社区
文章评论

共有 0 条评论