Mailinglist Archive: yast-devel (163 mails)

< Previous Next >
Re: [yast-devel] Registration Rest Api
  • From: josef reidinger <jreidinger@xxxxxxx>
  • Date: Fri, 18 Sep 2009 01:50:57 +0200
  • Message-id: <4AB2CB61.3040402@xxxxxxx>
J. Daniel Schmidt napsal(a):
Hi hackers,

I want to share my current thoughts about the Rest Api for the registration.
Please have a look and feel free to comment and ask.

Registration Configuration:
* /registration/config
get registration server



Hi, just few notes.
Why get doesn't get certificate? Maybe someone find usefull to check
server certificate

set new registration server
the certificate is inclueded as well

post data:

VQQGEwJERTEPMA0 ......... 60QTef32lxeuVH9Kve8gGZiMwDqcJfl

return value is the same as for GET

Run Registration:

* /registration

I am not sure if you don't have problems run registration as controller
and have registration/config for configuration. Maybe you should use
another subdirectory for registration?

run registration and return the/a result

post data:




<message>Some text to display</message>

<!-- in case of missing arguments -->

I think that missing argument should be reported as error, also another
controller handle it as error (I plan add specific exception for
arguments missing/invalid). Do you have any reason to respond it as
success response? Also status error is not good I think...thats reason
why status code exist, just report problem in status code and explain
problem in response. Don't mix success registration and problematic.

To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups