From 2220decb2b32e11bfccc5ef553fb806b7c8136ec Mon Sep 17 00:00:00 2001 From: Zhang Huangbin Date: Thu, 25 Oct 2018 22:58:12 +0200 Subject: [PATCH] Sync iRedAdmin-Pro API document. --- .../0-iredadmin-pro.restful.api-new.md | 23 ++++++++- html/iredadmin-pro.restful.api-new.html | 51 ++++++++++++++++++- 2 files changed, 70 insertions(+), 4 deletions(-) diff --git a/en_US/iredadmin/0-iredadmin-pro.restful.api-new.md b/en_US/iredadmin/0-iredadmin-pro.restful.api-new.md index 23db4b3f..363e0dfc 100644 --- a/en_US/iredadmin/0-iredadmin-pro.restful.api-new.md +++ b/en_US/iredadmin/0-iredadmin-pro.restful.api-new.md @@ -4,7 +4,7 @@ !!! attention - * This document is applicable to `iRedAdmin-Pro-SQL-2.9.1` and + * This document is applicable to `iRedAdmin-Pro-SQL-3.0` and `iRedAdmin-Pro-LDAP-3.2`. If you're running an old release, please upgrade iRedAdmin-Pro to the latest release, or check [document for old releases](./iredadmin-pro.releases.html). @@ -409,7 +409,26 @@ Notes: it's implemented with [`mlmmj`](http://mlmmj.org) mailing list manager. * It's available for both SQL and LDAP backends. -!!! api "`GET`{: .get } `/api/ml/`{: .url } `Get profile of an existing mailing list account`{: .comment }" +!!! api "`GET`{: .get } `/api/mls/`{: .url } `Get profile of all mailing lists under given domain`{: .comment } `Parameters`{: .has_params}" + +
+ + Parameter | Sample Usage | Default Value | Comment + --- |--- |---|--- + `email_only` | `email_only=yes` | `no` | Return a list of mailing list email addresses instead of detailed profile. + +
+ +!!! api "`GET`{: .get } `/api/ml/`{: .url } `Get profile of an existing mailing list account`{: .comment } `Parameters`{: .has_params}" + +
+ + Parameter | Sample Usage | Default Value | Comment + --- |--- |---|--- + `with_subscribers` | `with_subscribers=yes` | `no` | Get subscribers of mailing list. + +
+ !!! api "`POST`{: .post } `/api/ml/`{: .url } `Create a new mailing list`{: .comment } `Parameters`{: .has_params }"
diff --git a/html/iredadmin-pro.restful.api-new.html b/html/iredadmin-pro.restful.api-new.html index 1cb69906..79161df5 100644 --- a/html/iredadmin-pro.restful.api-new.html +++ b/html/iredadmin-pro.restful.api-new.html @@ -53,7 +53,7 @@

Attention

    -
  • This document is applicable to iRedAdmin-Pro-SQL-2.9.1 and +
  • This document is applicable to iRedAdmin-Pro-SQL-3.0 and iRedAdmin-Pro-LDAP-3.2. If you're running an old release, please upgrade iRedAdmin-Pro to the latest release, or check document for old releases.
  • @@ -1127,7 +1127,54 @@ to be a domain admin.

-

GET /api/ml/<mail> Get profile of an existing mailing list account

+

GET /api/mls/<domain> Get profile of all mailing lists under given domain Parameters

+
+ + + + + + + + + + + + + + + + + + +
ParameterSample UsageDefault ValueComment
email_onlyemail_only=yesnoReturn a list of mailing list email addresses instead of detailed profile.
+
+ +
+
+

GET /api/ml/<mail> Get profile of an existing mailing list account Parameters

+
+ + + + + + + + + + + + + + + + + + +
ParameterSample UsageDefault ValueComment
with_subscriberswith_subscribers=yesnoGet subscribers of mailing list.
+
+

POST /api/ml/<mail> Create a new mailing list Parameters