Stefan Tilkov's Random Stuff

ServiceReg -- Getting Rid of RESTful Properties via GET

This may seem like a good idea at first sight -- a service that turns

http://servicereg.com/verb/{user:password@}domain/noun{/id?params}

into a corresponding GET, PUT, POST or DELETE against a RESTful Rails app.

Unfortunately, it has two major problems:

  • It defeats the whole purpose of RESTful design, which is to use the HTTP verbs according to their meaning
  • It basically assumes "RESTful service" equals the way Rails does them, which is one, but definitely not the only way

Comments

On April 10, 2008 8:31 AM, Various Artists Author Profile Page said:

Actually, it seemed like a bad idea at first sight :)

On April 10, 2008 11:56 AM, Arjen Poutsma said:
It basically assumes “RESTful service” equals the way REST does them

I think you mean:

It basically assumes “RESTful service” equals the way RoR does them.

On April 10, 2008 12:13 PM, Stefan Tilkov Author Profile Page said:

Thanks - fixed.

On April 10, 2008 7:08 PM, Mike Davison said:

Why would I ever even contemplate doing something like this? Am I missing something obvious? Bad indeed…