2014年5月27日

3,基于类的视图函数

摘要: We can also write our API views using class based views, rather than function based views. As we'll see this is a powerful pattern that allows us to r... 阅读全文

posted @ 2014-05-27 16:12 数学之道 阅读(335) 评论(0) 推荐(0) 编辑

2,请求和响应

摘要: From this point we're going to really start covering the core of REST framework. Let's introduce a couple of essential building blocks.从现在起,我们将开始接触 RE... 阅读全文

posted @ 2014-05-27 15:35 数学之道 阅读(406) 评论(0) 推荐(0) 编辑

1,序列化

摘要: 介绍该教程将会让你理解 REST 框架的各个组件是怎么工作的。该教程很深入,你可能需要取饼干和你喜欢的饮料。如果你想快速的浏览,你应该去看 quickstart 。注意:该教程对应的代码可以去GitHub看, tomchristie/rest-framework-tutorial 。完整的实现作为测... 阅读全文

posted @ 2014-05-27 13:40 数学之道 阅读(594) 评论(0) 推荐(0) 编辑

0,快速教程

摘要: QuickstartWe're going to create a simple API to allow admin users to view and edit the users and groups in the system.我们将建立一个简单的API例子,只有超级用户admin才能查看和... 阅读全文

posted @ 2014-05-27 10:40 数学之道 阅读(296) 评论(0) 推荐(0) 编辑

导航