Exemple #1
0
 def _flavor_router(self, mapper):
     flavor_resource = FlavorController().create_resource()
     mapper.connect("/{tenant_id}/flavors",
                    controller=flavor_resource,
                    action="index",
                    conditions={'method': ['GET']})
     mapper.connect("/{tenant_id}/flavors/{id}",
                    controller=flavor_resource,
                    action="show",
                    conditions={'method': ['GET']})
Exemple #2
0
 def _flavor_router(self, mapper):
     flavor_resource = FlavorController().create_resource()
     path = "/{tenant_id}/flavors"
     mapper.resource("flavor", path, controller=flavor_resource)