Mailinglist Archive: yast-devel (233 mails)

< Previous Next >
[yast-devel] mail server rest API proposal
  • From: Jiří Suchomel <jsuchome@xxxxxxx>
  • Date: Thu, 8 Oct 2009 12:03:24 +0200
  • Message-id: <200910081203.24171.jsuchome@xxxxxxx>
Mail server module proposal (fate #307142)
---------------------------------------------

Tasks:
- configure the SMTP server used for sending mails:
- smtp server address
- authentication fields

Model

singleton class MailServer

attributes
string smtp_server
string login
string password
string tls

access to the system:
YaPI::MailServer
YaPI::SERVICES


Policies

org.opensuse.yast.modules.yapi.mailserver.read
org.opensuse.yast.modules.yapi.mailserver.write

API

URL: /mail

REST service pseudo-code:

# GET method
def show

read and return current settings

# PUT method
def update (params)

save new settings: smtp server address and credentials
if there was a change, reload of postfix service is needed

--
Jiri Suchomel

SUSE LINUX, s.r.o. e-mail: jsuchome@xxxxxxx
Lihovarská 1060/12 tel: +420 284 028 960
190 00 Praha 9, Czech Republic http://www.suse.cz
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups