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:
parent
46f975e776
commit
1796ed2ef3
@ -20,14 +20,14 @@
|
|||||||
<method href="#create-flavors"/>
|
<method href="#create-flavors"/>
|
||||||
<resource path="{flavor_id}" id="flavor_id">
|
<resource path="{flavor_id}" id="flavor_id">
|
||||||
&flavor_idTemplateParameter;
|
&flavor_idTemplateParameter;
|
||||||
<method href="#delete-flavors"/>
|
<method href="#deleteFlavor"/>
|
||||||
</resource>
|
</resource>
|
||||||
</resource>
|
</resource>
|
||||||
</resource>
|
</resource>
|
||||||
</resource>
|
</resource>
|
||||||
</resource>
|
</resource>
|
||||||
</resources>
|
</resources>
|
||||||
<method name="POST" id="create-flavors">
|
<method name="POST" id="createFlavor">
|
||||||
<wadl:doc xml:lang="EN" title="Create flavor"
|
<wadl:doc xml:lang="EN" title="Create flavor"
|
||||||
xmlns="http://docbook.org/ns/docbook">
|
xmlns="http://docbook.org/ns/docbook">
|
||||||
<para role="shortdesc">Creates a flavor.</para>
|
<para role="shortdesc">Creates a flavor.</para>
|
||||||
@ -41,7 +41,7 @@
|
|||||||
</wadl:doc>
|
</wadl:doc>
|
||||||
</representation>
|
</representation>
|
||||||
</request>
|
</request>
|
||||||
<response status="201">
|
<response status="200">
|
||||||
<representation mediaType="application/json">
|
<representation mediaType="application/json">
|
||||||
<wadl:doc xml:lang="EN" xmlns="http://docbook.org/ns/docbook">
|
<wadl:doc xml:lang="EN" xmlns="http://docbook.org/ns/docbook">
|
||||||
<xsdxt:code
|
<xsdxt:code
|
||||||
@ -51,20 +51,11 @@
|
|||||||
</representation>
|
</representation>
|
||||||
</response>
|
</response>
|
||||||
</method>
|
</method>
|
||||||
<method name="DELETE" id="delete-flavors">
|
<method name="DELETE" id="deleteFlavor">
|
||||||
<wadl:doc xml:lang="EN" title="Delete flavor"
|
<wadl:doc xml:lang="EN" title="Delete flavor"
|
||||||
xmlns="http://docbook.org/ns/docbook">
|
xmlns="http://docbook.org/ns/docbook">
|
||||||
<para role="shortdesc">Deletes a flavor.</para>
|
<para role="shortdesc">Deletes a flavor.</para>
|
||||||
</wadl:doc>
|
</wadl:doc>
|
||||||
<request>
|
<response status="202"/>
|
||||||
<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"/>
|
|
||||||
</method>
|
</method>
|
||||||
</application>
|
</application>
|
||||||
|
Loading…
Reference in New Issue
Block a user