users@jersey.java.net

RE: [Jersey] confirmation URL ? GET ?

From: Markus KARG <markus.karg_at_gmx.net>
Date: Sat, 26 Sep 2009 16:19:23 +0200

Why not replacing clicking the link by just answering the email (reply-to)?

> -----Original Message-----
> From: Felipe Gaścho [mailto:fgaucho_at_gmail.com]
> Sent: Samstag, 26. September 2009 15:48
> To: rest-discuss_at_yahoogroups.com; users_at_jersey.dev.java.net
> Subject: [Jersey] confirmation URL ? GET ?
>
> 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 ?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net