users@jersey.java.net

Re: [rest-discuss] confirmation URL ? GET ?

From: Jan Algermissen <algermissen1971_at_mac.com>
Date: Sun, 27 Sep 2009 14:33:05 +0200

Felipe,

On Sep 26, 2009, at 3:48 PM, Felipe Gaścho wrote:

> Hi there,
>
> my first email here...

welcome :-)

>
> 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)

Exactly.


>
> So, what is the alternative ?

Send a URL to an HTML page that includes a POST form with a button the
user clicks on to confirm.

(or send an HTML email with a form (not sure if the email client
supports the form submission though)).

Jan



>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
> <*> To visit your group on the web, go to:
> http://groups.yahoo.com/group/rest-discuss/
>
> <*> Your email settings:
> Individual Email | Traditional
>
> <*> To change settings online go to:
> http://groups.yahoo.com/group/rest-discuss/join
> (Yahoo! ID required)
>
> <*> To change settings via email:
> mailto:rest-discuss-digest_at_yahoogroups.com
> mailto:rest-discuss-fullfeatured_at_yahoogroups.com
>
> <*> To unsubscribe from this group, send an email to:
> rest-discuss-unsubscribe_at_yahoogroups.com
>
> <*> Your use of Yahoo! Groups is subject to:
> http://docs.yahoo.com/info/terms/
>

--------------------------------------
Jan Algermissen

Mail: algermissen_at_acm.org
Blog: http://algermissen.blogspot.com/
Home: http://www.jalgermissen.com
--------------------------------------