From: Richard Berger <richardlan...@gmail.com>
Date: Thu, 12 Apr 2012 22:08:12 -0700 (PDT)
Local: Fri, Apr 13 2012 1:08 am
Subject: Re: To Verb or Not To Verb - that is the question (today)...
The action/event approach would work well in my model - so I will
shift gears and go with that. This situation reminds me of my earliest days as a programmer (back
Thanks all!
On Apr 10, 5:38 pm, landlessness <br...@apigee.com> wrote:
> +1 what Greg wrote.
> i often model resources as state machines and include event & state params.
> PATCH /invitations/{id}?event=accept
> GET /invitations/{id}
> when i build stuff with Rails, i use the state_machine gem with most of my
> -b
> On Tuesday, April 10, 2012 8:24:06 PM UTC-4, Greg Brail wrote:
> > What about the "action" pattern that I've seen on a few APIs, combined
> > GET /invitations/{id} : Read the invite
> > With this pattern, "/invitations/{id}" unambiguously refers to a single
> > You could also use PATCH for that if you wanted to be fancy.
> > On Tue, Apr 10, 2012 at 3:47 PM, Richard Berger <richardlan...@gmail.com>wrote:
> >> Thank you to everyone for taking the time to provide some guidance. I
> >> Also the suggestion of If-Match header to make sure that the act is
> >> Again, thanks to all, I am set for now.
> >> On Apr 10, 2:51 pm, Daniel Roop <dan...@danielroop.com> wrote:
> >> > I think some people are starting to accept that some verbs in URLs are
> >> > I tend to think about verbs as a bad smell and a habit that needs to be
> >> > The other way to tackle this is to provide a collection that represents
> >> > For instance imagine you had an invitation that could be approved or
> >> > You could have
> >> > /invitations/<id>
> >> > Or you could have
> >> > /invitations/<id>/
> >> > Where to the bottom two collections you post the URL or ID of the
> >> > Another thing to consider is that if you are using links, either one of
> >> > Daniel Roop
> >> > On Mon, Apr 9, 2012 at 5:43 PM, Mike Kelly <mikekelly...@gmail.com>
> >> > > Cheers,
> >> > > On Mon, Apr 9, 2012 at 9:33 PM, Mike Schinkel <m...@newclarity.net>
> >> > > > It seems that the standard solution to this is to update the state
> >> > > > BUT, in my case it seems that I wouldn't want the client developer
> >> > > > What about this?
> >> > > > PUT /supertask/id/status
> >> > > > <body>: agree
> > --
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||