Add REST request management for Image Service

This commit is contained in:
EoleDev 2016-02-10 18:09:44 +01:00
parent 10fb56b935
commit 7b9f17ba03
2 changed files with 12 additions and 0 deletions

View file

@ -35,6 +35,11 @@ class App{
$opt = $tokenClass->getOptions($service);
return $this->openstack->identityV3($opt);
break;
case "Image":
if($tokenPost == NULL) $tokenClass->genImageToken();
$opt = $tokenClass->getOptions($service);
return $this->$openstack->imagesV2($opt);
break;
}
}

View file

@ -27,5 +27,12 @@
$identityObject->action($action);
$App->show();
break;
case "image":
include_once("core/Image.php");
$imageObject = new image($App);
$imageObject->action($action);
$App->show();
break;
}