<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 02/12/2014 01:28 AM, Paulo Vital
wrote:<br>
</div>
<blockquote
cite="mid:1392139734-29464-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 | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/docs/API.md b/docs/API.md
index 580728c..eef107a 100644
--- a/docs/API.md
+++ b/docs/API.md
@@ -741,3 +741,33 @@ 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.
+
+### Collection: Host Packages Update
+
+**URI:** /host/packagesupdate
+
+Contains the information and action of packages update in the host.
+
+**Methods:**
+
+* **GET**: Retrieves a list of all packages to be updated in the host:
+
+* **POST**: *See Software Update Actions*
+
+**Actions (POST):**
+
+* update: Start the update of packages in background
+
+### Resource: Host Package Update
+
+**URI:** /host/packageupdate/*:name*</pre>
</blockquote>
I got:<br>
<br>
"reason":"Nothing matches the given URI",<br>
"code":"404 Not Found",<br>
<br>
when I GET some package.<br>
Should be:<br>
<pre wrap="">+**URI:** /host/package<b>s</b>update/*:name*</pre>
<blockquote
cite="mid:1392139734-29464-2-git-send-email-pvital@linux.vnet.ibm.com"
type="cite">
<pre wrap="">
+
+Contains the information for a specific package to be updated.
+
+**Methods:**
+
+* **GET**: Retrieves a full description of a package:
+ * package_name: 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
</pre>
</blockquote>
<br>
</body>
</html>