From b9a89c97a87e40b692f052d4cd78c309ad0bd72d Mon Sep 17 00:00:00 2001 From: Kevin_Zheng Date: Tue, 19 Apr 2016 21:12:29 +0800 Subject: [PATCH] Fix api ref for os-hosts, os-quota-sets and os-fping This patch fix API ref for correct sample files and status code for below APIs - os-hosts - os-quota-sets - os-fping Part of bp:api-ref-in-rst Change-Id: I7ecfe5adf4d8f1e9c767bac9194d9160f09fbee9 --- api-ref/source/os-fping.inc | 4 ++-- api-ref/source/os-hosts.inc | 12 ++++++------ api-ref/source/os-quota-sets.inc | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/api-ref/source/os-fping.inc b/api-ref/source/os-fping.inc index c44fb8cd38..dd9841f679 100644 --- a/api-ref/source/os-fping.inc +++ b/api-ref/source/os-fping.inc @@ -45,7 +45,7 @@ Response **Example Ping Instances: JSON request** -.. literalinclude:: ../../doc/api_samples/os-fping/fping-instances-list-resp.json +.. literalinclude:: ../../doc/api_samples/os-fping/fping-get-resp.json :language: javascript Ping An Instance @@ -75,6 +75,6 @@ Response **Example Ping An Instance: JSON request** -.. literalinclude:: ../../doc/api_samples/os-fping/fping-instance-show-resp.json +.. literalinclude:: ../../doc/api_samples/os-fping/fping-get-details-resp.json :language: javascript diff --git a/api-ref/source/os-hosts.inc b/api-ref/source/os-hosts.inc index 9674913906..e2a9541031 100644 --- a/api-ref/source/os-hosts.inc +++ b/api-ref/source/os-hosts.inc @@ -57,7 +57,7 @@ Request **Example Enable Host: JSON request** -.. literalinclude:: ../../doc/api_samples/os-hosts/host-update-maintenance-req.json +.. literalinclude:: ../../doc/api_samples/os-hosts/host-put-maintenance-req.json :language: javascript Response @@ -65,7 +65,7 @@ Response **Example Enable Host: JSON request** -.. literalinclude:: ../../doc/api_samples/os-hosts/host-update-maintenance-resp.json +.. literalinclude:: ../../doc/api_samples/os-hosts/host-put-maintenance-resp.json :language: javascript Show Host Details @@ -93,7 +93,7 @@ Response **Example Show Host Details: JSON request** -.. literalinclude:: ../../doc/api_samples/os-hosts/host-show-resp.json +.. literalinclude:: ../../doc/api_samples/os-hosts/host-get-resp.json :language: javascript Reboot Host @@ -121,7 +121,7 @@ Response **Example Reboot Host: JSON request** -.. literalinclude:: ../../doc/api_samples/os-hosts/host-reboot-resp.json +.. literalinclude:: ../../doc/api_samples/os-hosts/host-get-reboot.json :language: javascript Shut Down Host @@ -149,7 +149,7 @@ Response **Example Shut Down Host: JSON request** -.. literalinclude:: ../../doc/api_samples/os-hosts/host-shutdown-resp.json +.. literalinclude:: ../../doc/api_samples/os-hosts/host-get-shutdown.json :language: javascript Start Host @@ -177,6 +177,6 @@ Response **Example Start Host: JSON request** -.. literalinclude:: ../../doc/api_samples/os-hosts/host-start-resp.json +.. literalinclude:: ../../doc/api_samples/os-hosts/host-get-startup.json :language: javascript diff --git a/api-ref/source/os-quota-sets.inc b/api-ref/source/os-quota-sets.inc index 9ea34008fa..cf9e5d8ef8 100644 --- a/api-ref/source/os-quota-sets.inc +++ b/api-ref/source/os-quota-sets.inc @@ -60,7 +60,7 @@ Query Parameters **Example Update Quotas: JSON request** -.. literalinclude:: ../../doc/api_samples/os-quota-sets/quota-update-req.json +.. literalinclude:: ../../doc/api_samples/os-quota-sets/quota-update-post-req.json :language: javascript Response @@ -87,7 +87,7 @@ Response **Example Update Quotas: JSON request** -.. literalinclude:: ../../doc/api_samples/os-quota-sets/quota-update-resp.json +.. literalinclude:: ../../doc/api_samples/os-quota-sets/quota-update-post-resp.json :language: javascript Revert Quotas To Defaults @@ -170,7 +170,7 @@ Response **Example Show A Quota: JSON request** -.. literalinclude:: ../../doc/api_samples/os-quota-sets/user-quotas-show-get-.json +.. literalinclude:: ../../doc/api_samples/os-quota-sets/user-quotas-show-get-resp.json :language: javascript List Default Quotas For Tenant @@ -219,6 +219,6 @@ Response **Example List Default Quotas For Tenant: JSON request** -.. literalinclude:: ../../doc/api_samples/os-quota-sets/quotas-default-list-resp.json +.. literalinclude:: ../../doc/api_samples/os-quota-sets/quotas-show-defaults-get-resp.json :language: javascript