Ticket #1996 (closed enhancement: fixed)
[PATCH] Support for dispatching based on HTTP method for REST APIs
| Reported by: | PeterRussell | Owned by: | faide |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.1b2 |
| Component: | TurboGears | Version: | 1.0.7 |
| Severity: | normal | Keywords: | needs review |
| Cc: |
Description
As requested in the comments to the post here: http://blog.pythonisito.com/2008/07/restfulness-in-turbogears.html I've attached a patch with containing support for dispatching on HTTP method, and tests for it.
Attachments
Change History
comment:2 Changed 5 years ago by faide
- Summary changed from Support for dispatching based on HTTP method for REST APIs to [PATCH] Support for dispatching based on HTTP method for REST APIs
comment:3 Changed 5 years ago by PeterRussell
Would it be helpful if I refactored the tests to use webtest ala TG 1.1?
comment:4 Changed 5 years ago by faide
Since the milestone _is_ 1.1 this patch would be applied to 1.1, so the tests should use our new 1.1 (webtest) system.
Thanks for the effort!
Changed 5 years ago by PeterRussell
-
attachment
rest_method2.patch
added
Updated patch that uses webtest
comment:6 Changed 5 years ago by faide
Your paste patch seems flawed as the first line you change adds a digit in front of the comment line...
and as for the testing framework: you're right :) I love this evolution! It brings TG to a new level.