The ironic.api.controllers.base
Module¶
-
class
ironic.api.controllers.base.
Version
(headers, default_version, latest_version)[source]¶ Bases:
object
API Version object.
-
static
parse_headers
(headers, default_version, latest_version)[source]¶ Determine the API version requested based on the headers supplied.
Parameters: - headers – webob headers
- default_version – version to use if not specified in headers
- latest_version – version to use if latest is requested
Returns: a tuple of (major, minor) version numbers
Raises: webob.HTTPNotAcceptable
-
static