magnum/magnum/api/controllers
yuntongjin 9e03afa242 Add support for API microversions
This patch adds support in the REST API to accept a new
X-OpenStack-Magnum-API-Version header. This header is also returned
to clients as a hint to improve client response handling.

Additionally, new Minimum-Version and Maximum-Version headers
are also now returned, so as to inform clients of the supported range.

The requested version is stashed in the pecan.request.version object.

For reference as to why this approach was chosen, see the Nova spec on
microversioning:
http://specs.openstack.org/openstack/nova-specs/specs/kilo/approved/api-microversions.html
Ironic:
https://review.openstack.org/#/c/150821

Implements: blueprint api-microversions
https://blueprints.launchpad.net/magnum/+spec/api-microversions

Co-Authored-By: ShaoHe Feng <shaohe.feng@intel.com>

Change-Id: I795f83cd829098e3d1f08d89ea33a8d986797d9f
2015-06-08 11:14:36 +08:00
..
v1 Add support for API microversions 2015-06-08 11:14:36 +08:00
__init__.py Initial commit from github (squashed) 2014-11-18 09:23:37 -05:00
base.py Add support for API microversions 2015-06-08 11:14:36 +08:00
link.py Add versioned object dependency modules 2014-12-02 02:25:40 -07:00
root.py Cleanup code and remove newly ignored hack rules 2015-02-06 22:40:23 -05:00