[Jersey] Re: Implement rest interface through browser

From: Tauren Mills <>
Date: Wed, 6 Apr 2011 01:43:22 -0700

Of course it depends on your use case, but in my situation I use client side
scripting to make the PUT call.

I've found the Backbone.JS framework to make doing REST from javascript
clients quite good:


On Wed, Apr 6, 2011 at 12:41 AM, John Lister <>wrote:

> Hi, just been following the thread about restful methods of calling an
> sproc, and got me thinking. I'd be grateful for your opinions on this
> question:
> What is the best way to offer a restful interface accessable by a web
> browser and also automated clients?
> For example say I want to add a resource, the restful way is to use PUT,
> which I have no problem with, but say I want to allow that from a html page
> which only offer GET/POST for form actions. How would you work around this,
> the alternatives seem to be:
> - ignore put and just use POST
> - implement both and have POST determine the correct action based on a
> parameter
> - use client side (ajax style) scripting to make a PUT call and process the
> result
> How would you do it?
> Thanks
> John