#1952: Backport RESTful dispatch from 2.0
------------------------+---------------------------------------------------
Reporter: kskuhlman | Owner: kskuhlman
Type: defect | Status: assigned
Priority: normal | Milestone: 1.5
Component: TurboGears | Version: 1.0.4.4
Severity: normal | Resolution:
Keywords: REST |
------------------------+---------------------------------------------------
Comment (by dbrattli):
Just wanted to mention that the !GearShift REST dispatch is much further
developed than the older CP proposal. Supports TG2 style GET_ONE() and
GET_ALL() in addition to GET(). You can also set ?_method=PUT or
?_method=DELETE when POSTing which makes it a lot easier to write (form
submit) clients. You can also request different formats by adding
extensions such as .xml or .json to the end of the identifier requested,
and it will be automatically be removed and converted to tg_format
parameter that you can match different exposes for. Thus GET
/phones/12.xml is identical to GET /phones/12?tg_format=xml
--
Ticket URL: <http://trac.turbogears.org/ticket/1952#comment:4>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---