diff options
author | tengqm <tengqim@cn.ibm.com> | 2016-08-21 23:15:25 -0400 |
---|---|---|
committer | Qiming Teng <tengqim@cn.ibm.com> | 2016-08-22 06:59:26 +0000 |
commit | cd04e9e7af7637af6d90fefd865e25fae260959d (patch) | |
tree | 9f2aaee6fb3c1fd21b41548aae264033027fa9be /api-ref/source | |
parent | 772c89770ff2581054909797cf6a0771270009ad (diff) | |
download | heat-cd04e9e7af7637af6d90fefd865e25fae260959d.tar.gz |
api-ref - software config status codes
This patch fixes the formatting of status codes returned from API calls.
This change is leveraging the new status_code stanza supported by new
version of os-api-ref library.
Change-Id: Ib108e04b08c88696eadabf7bc32b41f47c0ead80
Diffstat (limited to 'api-ref/source')
-rw-r--r-- | api-ref/source/v1/software-config.inc | 136 |
1 files changed, 118 insertions, 18 deletions
diff --git a/api-ref/source/v1/software-config.inc b/api-ref/source/v1/software-config.inc index 8ecf33c92..26f8b286a 100644 --- a/api-ref/source/v1/software-config.inc +++ b/api-ref/source/v1/software-config.inc @@ -11,9 +11,18 @@ Create configuration Creates a software configuration. -Normal response codes: 200 +Response Codes +-------------- -Error response codes:404,401,400, +.. rest_status_code:: success status.yaml + + - 200 + +.. rest_status_code:: error status.yaml + + - 400 + - 401 + - 404 Request Parameters ------------------ @@ -64,9 +73,19 @@ List configs Lists all available software configurations. -Normal response codes: 200 +Response Codes +-------------- + +.. rest_status_code:: success status.yaml -Error response codes: 404,500,401,400 + - 200 + +.. rest_status_code:: error status.yaml + + - 400 + - 401 + - 404 + - 500 Request Parameters ------------------ @@ -102,9 +121,18 @@ Show configuration details Shows details for a software configuration. -Normal response codes: 200 +Response Codes +-------------- + +.. rest_status_code:: success status.yaml + + - 200 -Error response codes: 404,401,400 +.. rest_status_code:: error status.yaml + + - 400 + - 401 + - 404 Request Parameters ------------------ @@ -145,7 +173,18 @@ Delete config Deletes a software configuration. -Normal response codes: 204 +Response Codes +-------------- + +.. rest_status_code:: success status.yaml + + - 204 + +.. rest_status_code:: error status.yaml + + - 400 + - 401 + - 404 Request Parameters ------------------ @@ -163,9 +202,18 @@ Create deployment Creates a software deployment. -Normal response codes: 200 +Response Codes +-------------- + +.. rest_status_code:: success status.yaml + + - 200 + +.. rest_status_code:: error status.yaml -Error response codes: + - 400 + - 401 + - 500 Request Parameters ------------------ @@ -218,9 +266,19 @@ List deployments Lists all available software deployments. -Normal response codes: 200 +Response Codes +-------------- -Error response codes: 404,500,401,400 +.. rest_status_code:: success status.yaml + + - 200 + +.. rest_status_code:: error status.yaml + + - 400 + - 401 + - 404 + - 500 Request Parameters ------------------ @@ -261,9 +319,19 @@ Show deployment details Shows details for a software deployment. -Normal response codes: 200 +Response Codes +-------------- + +.. rest_status_code:: success status.yaml -Error response codes: + - 200 + +.. rest_status_code:: error status.yaml + + - 400 + - 401 + - 404 + - 500 Request Parameters ------------------ @@ -304,9 +372,19 @@ Update deployment Updates a software deployment. -Normal response codes: 200 +Response Codes +-------------- + +.. rest_status_code:: success status.yaml + + - 200 -Error response codes: +.. rest_status_code:: error status.yaml + + - 400 + - 401 + - 404 + - 500 Request Parameters ------------------ @@ -358,7 +436,19 @@ Delete deployment Deletes a software deployment. -Normal response codes: 204 +Response Codes +-------------- + +.. rest_status_code:: success status.yaml + + - 204 + +.. rest_status_code:: error status.yaml + + - 400 + - 401 + - 404 + - 500 Request Parameters ------------------ @@ -378,9 +468,19 @@ Shows the deployment configuration metadata for a server. Use the ``group`` property to specify the configuration hook to which the pass the metadata item. -Normal response codes: 200 +Response Codes +-------------- + +.. rest_status_code:: success status.yaml + + - 200 + +.. rest_status_code:: error status.yaml -Error response codes: + - 400 + - 401 + - 404 + - 500 Request Parameters ------------------ |