On Monday 21 September 2009 00:03:28 Duncan Mac-Vicar P. wrote:
> > > Run Registration:
> > > ---------------------------------
> > >
> > > * /registration
> >
> > As Josef already mentioned, you might want to rename this to
> > /registration/register. This way the url names the action ('register')
> > and also matches Rails controller/action pattern for urls.
>
> Well Daniel is correct that a REST API should be a name and not a verb,
> because a POST should "create a registration" and not "register", so the
> right thing would be to post to /somenamespace/registrations.
>
> Or?In this case I'd say /registration/registration is the right path. Honestly. But - a registration is not created, thats where the model differs from the real world. A registration gets run. But it only exists on NCC - until somebody changes it there. The target system will never know about that. Nor can it say that it 'is' registered. It can only repeat its registration run. Ciao, Daniel -- J. Daniel Schmidt <[email protected]> SUSE Linux Products GmbH Research & Development Maxfeldstr. 5 GF: Markus Rex, HRB 16746 (AG Nürnberg) D-90409 Nürnberg -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
