placement: Document request headers in api-ref
Briefly document in the Placement API reference: a) the use of Content-Type: application/json b) how to use microversion headers, including a link to the main Microversions reference. Change-Id: I60d7b9dfe4f1c50fc50eaf07a04848c220ffcf62
This commit is contained in:
parent
57bf7f49cf
commit
44b77d887a
@ -8,6 +8,10 @@ This is a reference for the Openstack Placement API. To learn more about
|
||||
Openstack Placement API concepts, please refer to the
|
||||
`Placement Introduction <https://docs.openstack.org/nova/latest/user/placement.html>`_.
|
||||
|
||||
The Placement API uses JSON for data exchange. As such, the ``Content-Type``
|
||||
header for APIs sending data payloads in the request body (i.e. ``PUT`` and
|
||||
``POST``) must be set to ``application/json`` unless otherwise noted.
|
||||
|
||||
.. rest_expand_all::
|
||||
|
||||
.. include:: root.inc
|
||||
|
@ -1,6 +1,23 @@
|
||||
========
|
||||
Versions
|
||||
========
|
||||
============
|
||||
API Versions
|
||||
============
|
||||
|
||||
In order to bring new features to users over time, the Placement API
|
||||
supports microversioning. Microversions allow use of certain features on a
|
||||
per-request basis via the ``OpenStack-API-Version`` header. For example, to
|
||||
request microversion 1.10, specify the header::
|
||||
|
||||
Openstack-API-Version: placement 1.10
|
||||
|
||||
For more details about Microversions, please reference:
|
||||
`Microversions
|
||||
<https://developer.openstack.org/api-guide/compute/microversions.html>`_
|
||||
|
||||
.. note:: The maximum microversion supported by each release varies.
|
||||
Please reference:
|
||||
`REST API Version History
|
||||
<https://docs.openstack.org/nova/latest/user/placement.html#rest-api-version-history>`__
|
||||
for API microversion history details.
|
||||
|
||||
List Versions
|
||||
=============
|
||||
|
Loading…
Reference in New Issue
Block a user