
Rather than our freeform way of listing response codes in our api-ref, we should be using the os-api-ref extension option to get nicely formatted response code listings. https://docs.openstack.org/os-api-ref/latest/usage.html#rest-status-code Change-Id: Iee21f54fe7cf0ea28258966e2d0f8fa2849c83f2
36 lines
479 B
ReStructuredText
36 lines
479 B
ReStructuredText
.. -*- rst -*-
|
|
|
|
List Api Versions
|
|
=================
|
|
|
|
.. rest_method:: GET /
|
|
|
|
Lists information for all Block Storage API versions.
|
|
|
|
Response codes
|
|
~~~~~~~~~~~~~~
|
|
|
|
.. rest_status_code:: success ../status.yaml
|
|
|
|
- 200
|
|
- 300
|
|
|
|
.. rest_status_code:: error ../status.yaml
|
|
|
|
- 400
|
|
- 401
|
|
- 403
|
|
- 404
|
|
- 405
|
|
- 500
|
|
- 503
|
|
|
|
Response
|
|
~~~~~~~~
|
|
|
|
**Example List Api Versions: JSON request**
|
|
|
|
|
|
.. literalinclude:: ./samples/versions-response.json
|
|
:language: javascript
|