Fix flavor-manage API ref

API ref for create/delete Flavor is not right.
It has wrong url, wrong status code, delete has request body etc.
http://developer.openstack.org/api-ref-compute-v2.1.html#create-flavors

This patch fix those.

Closes-Bug: #1522293

Change-Id: I8350034bac7bc6ce794bf711f7fb5d5b9510ae55
This commit is contained in:
Ghanshyam 2015-12-03 18:34:59 +09:00 committed by Diane Fleming
parent 46f975e776
commit 1796ed2ef3

View File

@ -20,14 +20,14 @@
<method href="#create-flavors"/>
<resource path="{flavor_id}" id="flavor_id">
&flavor_idTemplateParameter;
<method href="#delete-flavors"/>
<method href="#deleteFlavor"/>
</resource>
</resource>
</resource>
</resource>
</resource>
</resources>
<method name="POST" id="create-flavors">
<method name="POST" id="createFlavor">
<wadl:doc xml:lang="EN" title="Create flavor"
xmlns="http://docbook.org/ns/docbook">
<para role="shortdesc">Creates a flavor.</para>
@ -41,7 +41,7 @@
</wadl:doc>
</representation>
</request>
<response status="201">
<response status="200">
<representation mediaType="application/json">
<wadl:doc xml:lang="EN" xmlns="http://docbook.org/ns/docbook">
<xsdxt:code
@ -51,20 +51,11 @@
</representation>
</response>
</method>
<method name="DELETE" id="delete-flavors">
<method name="DELETE" id="deleteFlavor">
<wadl:doc xml:lang="EN" title="Delete flavor"
xmlns="http://docbook.org/ns/docbook">
<para role="shortdesc">Deletes a flavor.</para>
</wadl:doc>
<request>
<representation mediaType="application/json">
<wadl:doc xml:lang="EN" xmlns="http://docbook.org/ns/docbook">
<xsdxt:code
href="../api_samples/flavor-manage/flavor-create-post-req.json"
/>
</wadl:doc>
</representation>
</request>
<response status="204"/>
<response status="202"/>
</method>
</application>