ActionDispatcher
Controller
ControllerMetaclass
DictSerializer
Fault
JSONDeserializer
JSONDictSerializer
OverLimitFault
Request
Request.best_match_content_type()
Request.best_match_language()
Request.cache_db_backup()
Request.cache_db_backups()
Request.cache_db_items()
Request.cache_db_snapshot()
Request.cache_db_snapshots()
Request.cache_db_volume()
Request.cache_db_volume_type()
Request.cache_db_volume_types()
Request.cache_db_volumes()
Request.cache_resource()
Request.cached_resource()
Request.cached_resource_by_id()
Request.get_content_type()
Request.get_db_backup()
Request.get_db_backups()
Request.get_db_item()
Request.get_db_items()
Request.get_db_snapshot()
Request.get_db_snapshots()
Request.get_db_volume()
Request.get_db_volume_type()
Request.get_db_volume_types()
Request.get_db_volumes()
Request.set_api_version_request()
Resource
ResourceExceptionHandler
ResponseObject
TextDeserializer
action()
action_peek_json()
deserializers()
extends()
response()
serializers()
WSGI middleware for OpenStack API controllers.
Bases: Mapper
Create and connect a new Route to the Mapper.
Usage:
m = Mapper()
m.connect(':controller/:action/:id')
m.connect('date/:year/:month/:day', controller="blog",
action="view")
m.connect('archives/:page', controller="blog", action="by_page",
requirements = { 'page':'\d{1,2}' })
m.connect('category_list', 'archives/category/:section',
controller='blog', action='category',
section='home', type='list')
m.connect('home', '', controller='blog', action='view',
section='home')
Match a URL against against one of the routes contained.
Will return None if no valid match is found, otherwise a result dict and a route object is returned.
resultdict, route_obj = m.match('/joe/sixpack')
Bases: Router
Routes requests on the API to the appropriate controller and method.
Simple paste factory, cinder.wsgi.Router
doesn’t have.
Bases: APIMapper
Base resource path handler
This method is compatible with resource paths that include a project_id and those that don’t. Including project_id in the URLs was a legacy API requirement; and making API requests against such endpoints won’t work for users that don’t belong to a particular project.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.