Mailinglist Archive: yast-devel (163 mails)

< Previous Next >
Re: [yast-devel] Registration Rest Api
  • From: "J. Daniel Schmidt" <jdsn@xxxxxxx>
  • Date: Mon, 21 Sep 2009 17:19:00 +0200
  • Message-id: <200909211719.00792.jdsn@xxxxxxx>
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.


In this case I'd say /registration/registration is the right path.

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.


J. Daniel Schmidt <jdsn@xxxxxxx> SUSE Linux Products GmbH
Research & Development Maxfeldstr. 5
GF: Markus Rex, HRB 16746 (AG Nürnberg) D-90409 Nürnberg
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >