O'Reilly logo

Rapid Web Applications with TurboGears: Using Python to Create Ajax-Powered Sites by Gigi Sayfan, Kevin Dangoor, Mark Ramm

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 17.7. RESTful Resources in TurboGears

REST is an architectural style, or a way of thinking about application development, first described by Roy Fielding in 2000. Roy was one of the principal authors of HTTP, and REST is a distillation of why he thinks the web works so well in allowing people to create reusable resources.

Here are a few key principles of the REST way of thinking:

  • There should be a universal locator syntax for published resources.

  • Every request/response cycle should be truly atomic, no state memory allowed.

  • The resource should have a set of well-defined operations that apply to every resource in the system.

In HTTP, the URL provides the universal resource identification syntax, Get and Post provide the initial set of well-defined ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required