RESTful services

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
piccoloprincipe
Forum Newbie
Posts: 12
Joined: Wed Jan 16, 2008 4:11 pm

RESTful services

Post by piccoloprincipe »

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...
Post Reply