summaryrefslogtreecommitdiff
path: root/api-ref/source/flavors.inc
diff options
context:
space:
mode:
authorGhanshyam Mann <gmann@ghanshyammann.com>2019-06-26 17:30:46 +0000
committerEric Fried <openstack@fried.cc>2019-08-12 08:52:38 -0500
commitb26bc7fd7a2e66e7659704d902bf6f8af902cfd8 (patch)
treea035e461b284ae20d7dfbf5ae5b8124400357704 /api-ref/source/flavors.inc
parent52b9359d6c6f387b8b9728c723c9a2501136d605 (diff)
downloadnova-b26bc7fd7a2e66e7659704d902bf6f8af902cfd8.tar.gz
Multiple API cleanup changes
This microversion implements below API cleanups: 1. 400 for unknown param for query param and for request body. 2. Making server representation always consistent among all APIs returning the complete server representation. 3. Change the default return value of ``swap`` field from the empty string to 0 (integer) in flavor APIs. 4. Return ``servers`` field always in the response of GET hypervisors API even there are no servers on hypervisor Details: https://specs.openstack.org/openstack/nova-specs/specs/train/approved/api-consistency-cleanup.html Partial-Implements: blueprint api-consistency-cleanup Change-Id: I9d257a003d315b84b937dcef91f3cb41f3e24b53
Diffstat (limited to 'api-ref/source/flavors.inc')
-rw-r--r--api-ref/source/flavors.inc16
1 files changed, 8 insertions, 8 deletions
diff --git a/api-ref/source/flavors.inc b/api-ref/source/flavors.inc
index dab61b2a97..0216ce2983 100644
--- a/api-ref/source/flavors.inc
+++ b/api-ref/source/flavors.inc
@@ -108,9 +108,9 @@ Response
- extra_specs: extra_specs_2_61
-**Example Create Flavor (v2.61)**
+**Example Create Flavor (v2.75)**
-.. literalinclude:: ../../doc/api_samples/flavor-manage/v2.61/flavor-create-post-resp.json
+.. literalinclude:: ../../doc/api_samples/flavor-manage/v2.75/flavor-create-post-resp.json
:language: javascript
List Flavors With Details
@@ -158,9 +158,9 @@ Response
- os-flavor-access:is_public: flavor_is_public
- extra_specs: extra_specs_2_61
-**Example List Flavors With Details (v2.61)**
+**Example List Flavors With Details (v2.75)**
-.. literalinclude:: ../../doc/api_samples/flavors/v2.61/flavors-detail-resp.json
+.. literalinclude:: ../../doc/api_samples/flavors/v2.75/flavors-detail-resp.json
:language: javascript
Show Flavor Details
@@ -201,9 +201,9 @@ Response
- os-flavor-access:is_public: flavor_is_public
- extra_specs: extra_specs_2_61
-**Example Show Flavor Details (v2.61)**
+**Example Show Flavor Details (v2.75)**
-.. literalinclude:: ../../doc/api_samples/flavors/v2.61/flavor-get-resp.json
+.. literalinclude:: ../../doc/api_samples/flavors/v2.75/flavor-get-resp.json
:language: javascript
Update Flavor Description
@@ -258,9 +258,9 @@ Response
- extra_specs: extra_specs_2_61
-**Example Update Flavor Description (v2.61)**
+**Example Update Flavor Description (v2.75)**
-.. literalinclude:: ../../doc/api_samples/flavor-manage/v2.61/flavor-update-resp.json
+.. literalinclude:: ../../doc/api_samples/flavor-manage/v2.75/flavor-update-resp.json
:language: javascript
Delete Flavor