by moozeek · 14y ago · 0 comments
Would this be the exception to the rule or is this problem totally unrelated to REST?
BTW: I'm not debating, I really wanna know.
Sure, just wanted to make my point. In reality you move the subscriber from "subscribed" to "unsuscribed" or something like this...
"Should not" used in the rfc2119 definition. There are always exceptions.
If the link is in an email, a form probably won't work. Email clients are still worse than browsers when it comes to styling buttons to look like links. In that case, you can use a real link, but add the _method=DELETE to the url parameters. You service can then look for _method on GET requests too. But it's bad and hacky to change a GET into a DELETE, so you really should just use the link to display a web page, then delete with a DELETE or POST from there. That's what most unsubscribe links in emails do anyway.