Typo in iRedAdmin-Pro api doc.

This commit is contained in:
Zhang Huangbin 2017-08-22 15:36:09 +08:00
parent 569b3e451e
commit 280c345beb
2 changed files with 2 additions and 6 deletions

View File

@ -19,15 +19,13 @@ Sample `curl` commands to interact iRedAdmin-Pro RESTful API.
#
# Login
#
# Replace `<username>` by the real admin email address.
# Replace `<password>` by the real admin password.
# It will create a plain text file `cookie.txt` under current directory.
curl -X POST -c cookie.txt -d "username=<username>&password=<password>" https://<server>/iredadmin/api/login
#
# Create domain (POST)
#
# cn=ABC Inc. (display name: "ABC Inc."
# cn=ABC Inc. (display name: "ABC Inc.")
# quota=20480 (quota: 20 GB)
curl -X POST -i -b cookie.txt -d "cn=ABC Inc.&quota=20480" https://<server>/iredadmin/api/domain/<domain>

View File

@ -36,15 +36,13 @@
<pre><code>#
# Login
#
# Replace `&lt;username&gt;` by the real admin email address.
# Replace `&lt;password&gt;` by the real admin password.
# It will create a plain text file `cookie.txt` under current directory.
curl -X POST -c cookie.txt -d &quot;username=&lt;username&gt;&amp;password=&lt;password&gt;&quot; https://&lt;server&gt;/iredadmin/api/login
#
# Create domain (POST)
#
# cn=ABC Inc. (display name: &quot;ABC Inc.&quot;
# cn=ABC Inc. (display name: &quot;ABC Inc.&quot;)
# quota=20480 (quota: 20 GB)
curl -X POST -i -b cookie.txt -d &quot;cn=ABC Inc.&amp;quota=20480&quot; https://&lt;server&gt;/iredadmin/api/domain/&lt;domain&gt;