Add sample curl command to interactive with iRedAdmin-Pro RESTful API.

This commit is contained in:
Zhang Huangbin 2020-01-29 15:04:44 +08:00
parent efe1c9bde9
commit c31269235f
2 changed files with 14 additions and 0 deletions

View File

@ -46,6 +46,13 @@ curl -X DELETE -i -b cookie.txt https://<server>/iredadmin/api/user/<mail>
#
curl -X PUT -i -b cookie.txt -d "cn=John Smith&mailQuota=2048" https://<server>/iredadmin/api/user/<mail>
# If name contains non-ascii characters, please use `--data-urlencode` instead
# of `-d`, curl will encode it before submitting, so that you can correctly
# preserve non-ascii characters.
#
# In this example, it contains a Norwegian char `ø`.
curl -X PUT -i -b cookie.txt --data-urlencode "cn=Jørn" https://<server>/iredadmin/api/user/<mail>
#
# Create mail alias (POST)
#

View File

@ -63,6 +63,13 @@ curl -X DELETE -i -b cookie.txt https://&lt;server&gt;/iredadmin/api/user/&lt;ma
#
curl -X PUT -i -b cookie.txt -d &quot;cn=John Smith&amp;mailQuota=2048&quot; https://&lt;server&gt;/iredadmin/api/user/&lt;mail&gt;
# If name contains non-ascii characters, please use `--data-urlencode` instead
# of `-d`, curl will encode it before submitting, so that you can correctly
# preserve non-ascii characters.
#
# In this example, it contains a Norwegian char `ø`.
curl -X PUT -i -b cookie.txt --data-urlencode &quot;cn=Jørn&quot; https://&lt;server&gt;/iredadmin/api/user/&lt;mail&gt;
#
# Create mail alias (POST)
#