8659ff0ef5
This patch is for converting API Reference to RST and host it in the Cinder tree. This patch contains all the RST for cinder to bring over to their repos to begin building API reference information from within. This contains .inc files which have all the contents of the .rst files but are grouped together for easier editing This is the results of the RST conversion from WADL. It creates a single index plus a bunch of included files which represent sections of the API. Cleaning task will be done once this part is merged. As we have removed XML API support in Newton release, we need to remove XML from API reference as well. But we still have installations which are using XML. So implementation plan is to first merge this patch in Newton release keeping XML for now, then I will backport same to stable branches. After that I will remove same from Newton release to match API reference with actual API implementation. Implements: bp api-reference-to-rst Change-Id: I865ac922538bfa5bd45c24eb4bc49f5e966dc811
33 lines
602 B
ReStructuredText
33 lines
602 B
ReStructuredText
.. -*- rst -*-
|
|
|
|
List Api Versions
|
|
=================
|
|
|
|
.. rest_method:: GET /
|
|
|
|
Lists information for all Block Storage API versions.
|
|
|
|
|
|
Normal response codes: 200,300
|
|
|
|
Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),
|
|
unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404)
|
|
|
|
Request
|
|
-------
|
|
|
|
Response
|
|
--------
|
|
|
|
**Example List Api Versions: JSON request**
|
|
|
|
|
|
.. literalinclude:: ./samples/versions-resp.json
|
|
:language: javascript
|
|
|
|
**Example List Api Versions: XML request**
|
|
|
|
|
|
.. literalinclude:: ./samples/versions-response.xml
|
|
:language: javascript
|