users@jersey.java.net

confirmation URL ? GET ?

From: Felipe Gaścho <fgaucho_at_gmail.com>
Date: Sat, 26 Sep 2009 15:48:26 +0200

Hi there,

my first email here...

question: I have a registration flow that includes the following steps:

1) client send a POST with the new user's data.
2) the server sends an email to the new user containing a "Confirmation URL"
3) the user clicks on the URL, confirming his registration request...

So far so good, the basics of a registration use case.

Now the question:

The URL in the email should be a GET, right ? (otherwise I am not sure
how it can work from an email.. )

but, if I use GET to transform the state of a resource in the server I
am abusing the rest protocol - (GET not-idempotent since the status of
the user will change from NEW to ACTIVE)

So, what is the alternative ?