[lxc-devel] [lxd/master] doc: Fix rest-api for PATCH addition

stgraber on Github lxc-bot at linuxcontainers.org
Thu Sep 22 21:28:30 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 354 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160922/ba6fe5a0/attachment.bin>
-------------- next part --------------
From 140ad4cbe85f618219d59df7d6970c966a2245b6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Thu, 22 Sep 2016 17:27:22 -0400
Subject: [PATCH] doc: Fix rest-api for PATCH addition
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 doc/rest-api.md | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/doc/rest-api.md b/doc/rest-api.md
index a49ea94..307729a 100644
--- a/doc/rest-api.md
+++ b/doc/rest-api.md
@@ -273,6 +273,7 @@ Input (replaces any existing config with the provided one):
 
 ### PATCH (ETag supported)
  * Description: Updates the server configuration or other properties
+ * Introduced: with API extension "patch"
  * Authentication: trusted
  * Operation: sync
  * Return: standard return value or standard error
@@ -605,8 +606,9 @@ Input (restore snapshot):
         "restore": "snapshot-name"
     }
 
-### PATCH
+### PATCH (ETag supported)
  * Description: update container configuration
+ * Introduced: with API extension "patch"
  * Authentication: trusted
  * Operation: sync
  * Return: standard return value or standard error
@@ -1283,8 +1285,9 @@ Input:
         "public": true,
     }
 
-### PATCH
+### PATCH (ETag supported)
  * Description: Updates the image properties, update information and visibility
+ * Introduced: with API extension "patch"
  * Authentication: trusted
  * Operation: sync
  * Return: standard return value or standard error
@@ -1396,8 +1399,9 @@ Input:
         "target": "54c8caac1f61901ed86c68f24af5f5d3672bdc62c71d04f06df3a59e95684473"
     }
 
-### PATCH
+### PATCH (ETag supported)
  * Description: Updates the alias target or description
+ * Introduced: with API extension "patch"
  * Authentication: trusted
  * Operation: sync
  * Return: standard return value or standard error
@@ -1620,8 +1624,9 @@ Input:
 Same dict as used for initial creation and coming from GET. The name
 property can't be changed (see POST for that).
 
-### PATCH
+### PATCH (ETag supported)
  * Description: update the profile information
+ * Introduced: with API extension "patch"
  * Authentication: trusted
  * Operation: sync
  * Return: standard return value or standard error


More information about the lxc-devel mailing list