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
55 lines
706 B
ReStructuredText
55 lines
706 B
ReStructuredText
.. -*- rst -*-
|
|
|
|
============
|
|
API versions
|
|
============
|
|
|
|
Lists information about API versions.
|
|
|
|
|
|
Show API v1 details
|
|
===================
|
|
|
|
.. rest_method:: GET /v1
|
|
|
|
Shows Block Storage API v1 details.
|
|
|
|
|
|
Normal response codes: 200
|
|
Error response codes:203,
|
|
|
|
|
|
Request
|
|
-------
|
|
|
|
|
|
Response Example
|
|
----------------
|
|
|
|
.. literalinclude:: ./samples/version-show-response.json
|
|
:language: javascript
|
|
|
|
|
|
List API versions
|
|
=================
|
|
|
|
.. rest_method:: GET /
|
|
|
|
Lists information about all Block Storage API versions.
|
|
|
|
|
|
Normal response codes: 200
|
|
Error response codes:300,
|
|
|
|
|
|
Request
|
|
-------
|
|
|
|
|
|
|
|
Response Example
|
|
----------------
|
|
|
|
.. literalinclude:: ./samples/versions-list-response.json
|
|
:language: javascript
|