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 ...
Get Rapid Web Applications with TurboGears: Using Python to Create Ajax-Powered Sites now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.