<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Just a minor comment below <br>
<br>
On 02/10/2014 10:50 AM, Paulo Vital wrote:<br>
</div>
<blockquote
cite="mid:1392000641-32639-2-git-send-email-pvital@linux.vnet.ibm.com"
type="cite">
<pre wrap="">Define get and POST action update API for software update resource.
Signed-off-by: Paulo Vital <a class="moz-txt-link-rfc2396E" href="mailto:pvital@linux.vnet.ibm.com"><pvital@linux.vnet.ibm.com></a>
Signed-off-by: Ramon Medeiros <a class="moz-txt-link-rfc2396E" href="mailto:ramonn@linux.vnet.ibm.com"><ramonn@linux.vnet.ibm.com></a>
---
docs/API.md | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/docs/API.md b/docs/API.md
index 580728c..d45298e 100644
--- a/docs/API.md
+++ b/docs/API.md
@@ -741,3 +741,24 @@ Contains the host sample data.
* size: The total size of the partition, in bytes
* mountpoint: If the partition is mounted, represents the mountpoint.
Otherwise blank.
+
+### Resource: Host Package Update
+
+**URI:** /host/packageupdate
+
+Contains the information and action of package/software update in the host.
+
+**Methods:**
+
+* **GET**: Retrieves a list of all packages to be updated in the host.
+ * packages to be updated in the format:</pre>
</blockquote>
IMO, the indent is not right?<br>
Not sure the format of the above sentence is what you want.<br>
<br>
<br>
I covert it to html as follow:<br>
<p><strong>Methods:</strong></p>
<p><strong>GET</strong>: Retrieves a list of all packages to be
updated in the host.</p>
<ul>
<li>packages to be updated in the format:</li>
<li>package: The name of the package to be updated</li>
<li>arch: The architecture of the package</li>
<li>version: The new version of the package</li>
<li>repository: The repository name from where package will be
downloaded</li>
</ul>
<blockquote
cite="mid:1392000641-32639-2-git-send-email-pvital@linux.vnet.ibm.com"
type="cite">
<pre wrap="">
+ * package: The name of the package to be updated
+ * arch: The architecture of the package
+ * version: The new version of the package
+ * repository: The repository name from where package will be downloaded
+
+* **POST**: *See Software Update Actions*
+
+**Actions (POST):**
+
+* update: Start the update of packages in background
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Thanks and best regards!
Sheldon Feng(冯少合)<a class="moz-txt-link-rfc2396E" href="mailto:shaohef@linux.vnet.ibm.com"><shaohef@linux.vnet.ibm.com></a>
IBM Linux Technology Center</pre>
</body>
</html>