RESTful services
Posted: Tue Mar 04, 2008 7:25 am
I am managing my URIs in a way like forum/thread-name/, forum/add, forum/thread-name/edit, forum/thread-name/delete.
In a RESTful approach I have to use GET, POST, PUT and DELETE requests to forum/ and forum/thread-name.
But is a browser capable of doing PUT and DELETE request? I think I have to use javascript... What about degradation? Is a good idea to be "restful compliant"? I know REST is better without browsers, but I am looking for a way to mantain a uniform controller and to switch presentation mode to json, xml, xhtml depending on http headers that identify browser request, browser javascript request or other applications...
In a RESTful approach I have to use GET, POST, PUT and DELETE requests to forum/ and forum/thread-name.
But is a browser capable of doing PUT and DELETE request? I think I have to use javascript... What about degradation? Is a good idea to be "restful compliant"? I know REST is better without browsers, but I am looking for a way to mantain a uniform controller and to switch presentation mode to json, xml, xhtml depending on http headers that identify browser request, browser javascript request or other applications...