cinder/api-ref/source/v3/api-versions.inc
Ken'ichi Ohmichi 8564ac6cbd Fix status_code of "list versions" API
The status code of "list versions" API is 300 because the API method
is decorated with MULTIPLE_CHOICES[1] and the unit test[2] expects the
code. In addition, the corresponding Tempest test[3] also verifies 300
as the code. So it is not necessary to write the other status codes on
the api-ref.

[1]: http://git.openstack.org/cgit/openstack/cinder/tree/cinder/api/versions.py?id=a4a5fac7564503a09751db98d2a4f8be3766577a#n123
[2]: http://git.openstack.org/cgit/openstack/cinder/tree/cinder/tests/unit/api/test_versions.py?id=a4a5fac7564503a09751db98d2a4f8be3766577a#n66
[3]: Id5791665d8435fac7552733b0c1126cee4359d00

Change-Id: Id28e26fca0adbdcfb0d905f52ca697a74db3be75
2017-03-22 10:08:40 -07:00

27 lines
502 B
ReStructuredText

.. -*- rst -*-
List All Api Versions
=====================
.. rest_method:: GET /
Lists information for all Block Storage API versions.
Normal response codes: 300
Error response codes: computeFault(400, 500), serviceUnavailable(503), badRequest(400),
unauthorized(401), forbidden(403), badMethod(405), itemNotFound(404), conflict(409)
Request
~~~~~~~
Response
~~~~~~~~
**Example List Api Versions: JSON request**
.. literalinclude:: ./samples/versions-response.json
:language: javascript