On 12/31/06, Sean Davis <[EMAIL PROTECTED]> wrote:
REST gets a lot of press these days, it seems. However, I haven't found many examples of how it works in practice. It seems that put and delete methods need to be called via XMLHttpRequest (AJAX). That means changing the way that at least I think about web applications. No longer is it a matter of taking input from the user (client) and generating a new page, but parts of the page must be generated and/or updated separately. So, I'm just curious how other people would go about a simple application like an address book using RESTful design and AJAX, particularly from the point of view of dispatch, templating (and what form returned output takes)? I know this is a vague question, but I am just beginning to grasp some of these concepts and would appreciate if someone could provide some guidance/insight.
I think most people stick to GET and POST. Not all XMLHttpRequest implementations will even do PUT and DELETE properly. The important parts of REST from a practical standpoint are the URLs and the usage of GET for (only) idempotent requests. Pylons makes it pretty easy/obvious to do these right. -bob --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
