On Oct 2, 10:56 pm, Nathan <
winder.nat...@gmail.com> wrote:
> I have been looking at REST and WebHooks a lot lately. One of the
> features of REST I find particularly interesting is the potential
> simplification of permissions. In SOA I would typically create
> permissions like "CanCreateUser", "CanViewOrder", etc. With REST and
> the "HTTP Interface" we can simply define permissions based on
> resources and the HTTP methods ( GET,POST,PUT,DELETE). You may be
> wondering what this has to do with WebHooks; we can use the same
> principle for WebHooks. Instead of creating hooks like "OnNewUser",
> "OnDeleteAccount" we can use RESTful resource URIs. Eg:
>
> POSThttp://
my.website.com/accounts/deleted-webhooks
> POSThttp://
my.website.com/accounts/myaccount/users/posted-webhooks
>
> DELETEhttp://
my.website.com/accounts/deleted-webhooks/myhandle