Files
nova/api-ref/source/versions.rst
Sean Dague 329898ffbc Add sample API content
This adds sample API content for versions and servers resources,
including the parameters.yaml that is needed in both of these cases.

It also makes a new tox.ini target 'api-ref' for building these docs,
which will be used as part of the publishing pipeline.

Change-Id: I310ed352dc5dd81d01f2fd5f1a2fab662c29f0dc
2016-03-29 16:35:33 -04:00

54 lines
1.0 KiB
ReStructuredText

==============
API Versions
==============
Concepts
========
In order to bring new features to users over time, the Nova API
supports versioning. There are 2 kinds of versions in Nova ''major
versions'' as defined by dedicated urls. There are also
''microversions'' which can be requested through use of the
``OpenStack-API-Version`` header.
List All Major Versions
=======================
.. rest_method:: GET /
Normal Response Codes: 200 300
Response Parameters
-------------------
.. rest_parameters:: parameters.yaml
- x-openstack-request-id: request_id
Response Example
~~~~~~~~~~~~~~~~
.. literalinclude:: /../../doc/api_samples/versions/versions-get-resp.json
:language: javascript
Show Details of 2.1 API
=======================
.. rest_method:: GET /v2.1
Normal Response Codes: 200 300
Response Parameters
-------------------
.. rest_parameters:: parameters.yaml
- x-openstack-request-id: request_id
Response Example
~~~~~~~~~~~~~~~~
.. literalinclude:: /../../doc/api_samples/versions/v21-version-get-resp.json
:language: javascript