You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ManiKanta G <go...@gmail.com> on 2009/02/26 14:08:27 UTC

S2 REST plugin URL mapping convention

Hi,

In S2 REST plugin, the url mapping convention is POST for create, PUT for
update (as with the Rails style).

But from Sun tuts (
http://java.sun.com/developer/technicalArticles/WebServices/restful/) I see
POST for update, PUT for create.
I observed similar behavior in lot many frameworks/applications (ex: Orbeon
forms, on which I m currently working).

Which convention is correct or at least meaningful?

Thanks,
ManiKanta G
Twitter/manikantag <http://www.twitter.com/manikantag>

Re: S2 REST plugin URL mapping convention

Posted by ManiKanta G <go...@gmail.com>.
Hmm... I found this two different behaviors in the S2 documentation itself.
POST -> create , PUT -> update:
http://struts.apache.org/2.x/docs/rest-plugin.html

PUT -> create, POST -> update:
http://cwiki.apache.org/S2PLUGINS/restful-crud-for-html-methods.html

which one to choose? confused!

Thanks,
ManiKanta G
Twitter/manikantag <http://www.twitter.com/manikantag>